/* Live Blog Container */
.wp-live-blog-container {
    margin-top: 4rem;
    max-width: 100%;
    margin-bottom: 2rem;
    font-family: inherit;
    background: transparent;
}

/* Live Indicator Bar */
.live-blog-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    background: #d42424;
    color: white;
    padding: 2px 10px;
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite, flash 1s infinite;
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.info-bar-meta {
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-bar-meta.has-update {
    color: #d42424;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.info-bar-meta.has-update:hover {
    opacity: 0.8;
}

.info-bar-meta .dot {
    width: 8px;
    height: 8px;
    background: #d42424;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.info-bar-meta.has-update.refreshing .dot {
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 36, 36, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(212, 36, 36, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 36, 36, 0);
    }
}

/* Blog Header */
.blog-header {
    margin-bottom: 2rem;
}

.live-blog-title {
    display: none;
}

/* Main Layout */
.blog-content {
    width: 100%;
}

/* Updates Section */
.live-blog-main {
    width: 100%;
}

.live-blog-updates {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Individual Updates */
.live-update {
    position: relative;
    padding: 4rem 0;
    border-bottom: 1px solid #111;
    margin: 0;
}

.live-update:first-child {
    padding-top: 0;
}

.update-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.importance-label + span {
    margin-bottom: 10px;
}

.update-content {
    font-size: 1em;
    line-height: 1.5em;
    margin-bottom: 1rem;
    color: #212121;
    font-family: "Inter";
    letter-spacing: -0.15px;
}

/* Make videos responsive */
.update-content iframe,
.update-content embed,
.update-content object,
.update-content video {
    max-width: 100%;
    width: 100%;
}

/* Video embeds */
.update-content iframe:not(.instagram-media-rendered):not([id^="twitter-widget"]):not([src*="spotify.com"]) {
    aspect-ratio: 16 / 9;
    height: auto;
}

/* Instagram embeds */
.update-content iframe.instagram-media-rendered {
    min-width: 326px !important;
    width: calc(100% - 2px) !important;
    border-radius: 3px !important;
    border: 1px solid rgb(219, 219, 219) !important;
    box-shadow: none !important;
    margin: 1px !important;
}

/* Twitter embeds */
.update-content iframe[id^="twitter-widget"] {
    margin: 10px 0 !important;
    width: 100% !important;
}

/* Spotify embeds */
.update-content iframe[src*="spotify.com"] {
    width: 100% !important;
    margin: 10px auto !important;
}

/* Responsive video wrapper */
.update-content .wp-block-embed,
.update-content .wp-block-video {
    position: relative;
    width: 100%;
    margin: 1em 0;
}

.update-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.update-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Override the first paragraph styling for live blog entries */
.live-update .update-content p:first-of-type {
    font-size: 1em !important;
    line-height: 1.5em !important;
    font-family: "Inter" !important;
    margin-bottom: 20px !important;
}

.update-content p:last-child {
    margin-bottom: 0;
}

.importance-label {
    display: inline-flex;
    align-items: center;
    padding: 0px 10px;
    border-radius: 10px;
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom:10px;
}

.importance-label.important {
    color: #d42424;
    border: 1px solid #d42424;
    background: transparent;
}

.importance-label.breaking {
    background: #d42424;
    color: white;
    border: none;
}

/* Timeline Navigation */
.timeline-navigation {
    margin-bottom: 2rem;
    border-bottom: 1px solid #111;
    padding-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    overflow: hidden;
}

.timeline-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}

.timeline-scroll::-webkit-scrollbar {
    display: none;
}

.timeline-scroll-button {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f1f1f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 2;
    padding: 0;
}

.timeline-scroll-button:hover {
    background: #e1e1e1;
}

.timeline-scroll-button svg {
    fill: #333;
}

.timeline-scroll-button.prev {
    left: 0;
}

.timeline-scroll-button.next {
    right: 0;
}

.timeline-scroll-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeline-link {
    flex: 0 0 200px;
    min-height: 120px;
    height: auto;
    padding: 1rem;
    border-radius: 10px;
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background-color 0.2s;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.timeline-link.breaking {
    color: white;
    background: #d42424;
}

.timeline-link.important {
    color: #d42424;
    border: 1px solid #d42424;
}

.timeline-link .breaking-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-link .breaking-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.timeline-link .title {
    font-size: 0.9em;
    line-height: 1.3;
    flex-grow: 1;
    margin: 0.5rem 0;
}

.timeline-link .time-ago {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: auto;
}

/* Responsive Embeds */
.wp-live-blog-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin: 1rem 0;
}

.wp-live-blog-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pinned Updates */
.pinned-updates {
    margin-bottom: 2rem;
}

.pinned-update {
    border: 2px solid #d42424 !important;
    background: #fff;
    margin-bottom: 1rem;
    padding: 1.5rem;
    position: relative;
}

.pinned-update .pinned-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d42424;
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.pinned-update .pinned-indicator .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* WordPress Block Styles */
.wp-block-embed {
    margin: 1rem 0;
}

.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pinned-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #d42424;
    margin-bottom: 10px;
}

.pinned-indicator::before {
    content: '📌';  /* Unicode pin emoji */
    font-size: 1.4rem;
    line-height: 1;
    color: #d42424;
}

/* Remove any default padding/margin that might cause indentation */
.live-update.pinned {
    padding-left: 0;
    margin-left: 0;
}

.live-update.pinned .pinned-indicator {
    margin-left: 0;
    padding-left: 0;
}

.manual-refresh.importance-label {
    display: inline-flex;
    align-items: center;
    background: #d42424;
    color: white;
    padding: 2px 10px;
    font-family: "Roboto Mono", monospace;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    gap: 8px;
    margin: 0;
    height: 32px;
}

.manual-refresh .refresh-icon {
    width: 16px;
    height: 16px;
}

.manual-refresh.refreshing .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.refresh-notice {
    display: none; /* Initially hidden */
    color: #d42424;
    animation: fadeIn 0.3s ease-out;
}

.refresh-notice::before {
    content: '•';
    margin-right: 0.5em;
    animation: pulse 2s infinite;
}

.refresh-notice a {
    color: #d42424;
    text-decoration: underline;
    cursor: pointer;
}

.refresh-notice a:hover {
    color: #b01e1e;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-message {
    display: none;
}

@media (max-width: 768px) {
    .desktop-message {
        display: none;
    }
    
    .mobile-message {
        display: inline;
    }
}

/* Update the CSS rule to target the correct structure */
.wp-live-blog-container .wp-live-blog[data-is-live="false"] ~ .live-blog-info-bar,
.wp-live-blog-container .wp-live-blog[data-is-live="0"] ~ .live-blog-info-bar {
    display: none !important;
}