/* =============================================
   THE ANIMALS DASHBOARD - STYLES
   ============================================= */

/* CSS Variables */
:root {
    --bg-primary: #D9D9D9;
    --bg-card: #ffffff;
    --bg-dark: #1a1a1a;
    --accent-orange: #ff4d00;
    --accent-red: #e63946;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-radius: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   NAVIGATION HEADER
   ============================================= */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #000000;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
}

.nav-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: 24px;
}

.nav-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
    z-index: -1;
    border-radius: 20px;
}

.nav-tab:hover::before,
.nav-tab.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-tab:hover {
    color: #ffffff;
}

.nav-tab.active {
    background: #000000;
    color: #ffffff;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modal-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-btn:active {
    transform: translateY(0);
}

/* Anomalies Login Modal */
.anomalies-modal {
    max-width: 380px;
    text-align: center;
}

.anomalies-modal .modal-title {
    font-size: 20px;
    letter-spacing: 0.5px;
}

.anomalies-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anomalies-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #f9f9f9;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.anomalies-input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.anomalies-input::placeholder {
    color: #999;
}

.anomalies-btn {
    width: 100%;
    margin-top: 4px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.moderators {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ffffff;
    font-style: italic;
}

.moderator-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.dot.orange {
    background: linear-gradient(135deg, #ffa500, #ff6b00);
}

.dot.purple {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

/* =============================================
   BRAND BAR
   ============================================= */
.brand-bar {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 16px 24px;
    background: var(--bg-card);
    margin: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    align-items: center;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.brand-bar:hover {
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.on-logo {
    width: 60px;
    height: 80px;
}

.on-logo-img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.brand-hero-wrapper {
    position: relative;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
}

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #000000;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-label:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.brand-marquee {
    position: absolute;
    bottom: 8px;
    left: 14%;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 20px;
    overflow: hidden;
    border-radius: 50px;
}

.brand-marquee::before,
.brand-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.brand-marquee::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), transparent);
    border-radius: 50px 0 0 50px;
}

.brand-marquee::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.85), transparent);
    border-radius: 0 50px 50px 0;
}

.marquee-track {
    display: flex;
    animation: marquee 25s linear infinite;
}

.marquee-text {
    color: white;
    font-size: 13px;
    white-space: nowrap;
}

.marquee-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    vertical-align: middle;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-clock {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 16px;
}

.clock-time-box {
    background: #d4d4d4;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clock-time {
    font-size: 42px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    color: #333;
}

.clock-zone {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    margin-top: 2px;
}

.clock-date-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.clock-day {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
}

.clock-date-num {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.clock-month {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =============================================
   CONTENT GRID
   ============================================= */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
        "news culture"
        "ground culture";
    gap: 16px;
    padding: 0 24px 16px;
}

.news-wire { grid-area: news; }
.culture-pulse { grid-area: culture; }
.on-the-ground { grid-area: ground; }

.bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 24px 24px;
}

.bottom-row section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.bottom-row section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "news"
            "culture"
            "ground";
    }

    .bottom-row {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width var(--transition-slow);
}

section:hover .section-title::after {
    width: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* =============================================
   NEWS WIRE
   ============================================= */
.news-wire {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    max-height: 400px;
    transition: box-shadow var(--transition-normal);
    position: relative;
    z-index: 10;
}

.news-wire:has(.news-item:hover) {
    z-index: 1000;
}

.news-wire:hover {
    box-shadow: var(--shadow-lg);
}

.news-wire .section-title {
    flex-shrink: 0;
}

.news-list-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    align-items: start;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    transform: translateY(0);
}

.news-item:hover {
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-item.new {
    animation: slideIn 0.5s ease;
    border-color: var(--accent-orange);
    background: #fff9f5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-time {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.3;
    font-style: italic;
}

.just-in-badge {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    font-style: normal;
}

.news-source {
    width: 60px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
}

.source-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

.news-content {
    min-width: 0;
}

.news-category {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.news-headline {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.news-author {
    font-size: 12px;
    color: #000000;
    font-weight: 600;
    font-style: italic;
    white-space: nowrap;
}

.news-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFD700;
    color: #000000;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-tooltip .news-thumb {
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.news-tooltip .news-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.news-tooltip p {
    margin: 0;
}

.news-item:hover {
    background: #FFFACD;
    border-color: #FFD700;
    z-index: 100;
}

.news-item:hover .news-tooltip {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   CULTURE PULSE
   ============================================= */
.culture-pulse {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-md);
    grid-row: span 2;
    transition: box-shadow var(--transition-normal);
}

.culture-pulse:hover {
    box-shadow: var(--shadow-lg);
}

.culture-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 8px;
}

.culture-item {
    border-radius: 8px;
    overflow: visible;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.culture-item:hover {
    transform: scale(1.01);
}

.culture-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    transition: box-shadow var(--transition-normal);
}

.culture-item:hover img {
    box-shadow: var(--shadow-md);
}

.culture-meta {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
}

/* Culture Pulse Filters */
.culture-pulse .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.culture-pulse .section-header .section-title {
    margin-bottom: 0;
}

.culture-filters {
    display: flex;
    gap: 6px;
}

.culture-filter {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    color: var(--text-secondary);
}

.culture-filter:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.culture-filter.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.culture-filter svg {
    width: 18px;
    height: 18px;
}

/* Platform-specific colors on hover/active */
.culture-filter[data-platform="tiktok"]:hover,
.culture-filter[data-platform="tiktok"].active {
    background: #000000;
    border-color: #000000;
    color: white;
}

.culture-filter[data-platform="reddit"]:hover,
.culture-filter[data-platform="reddit"].active {
    background: #FF4500;
    border-color: #FF4500;
    color: white;
}

.culture-filter[data-platform="instagram"]:hover,
.culture-filter[data-platform="instagram"].active {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
    color: white;
}

/* Culture item fade animation for filtering */
.culture-item {
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.culture-item.hidden {
    display: none;
}

/* =============================================
   ON THE GROUND
   ============================================= */
.on-the-ground {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-normal);
}

.on-the-ground:hover {
    box-shadow: var(--shadow-lg);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
}

@keyframes livePulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(230, 57, 70, 0);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.video-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.carousel-arrow:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: white;
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.video-container {
    flex: 1;
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.video-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.video-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.video-slide--short {
    background: #000;
}

.video-slide--short .video-thumbnail {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.video-slide--short iframe {
    width: auto;
    height: 100%;
    aspect-ratio: 9/16;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-container .video-thumbnail,
.video-slide .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    background: #ffffff;
}

.video-play-overlay:active {
    transform: translate(-50%, -50%) scale(1.05);
}

.video-info {
    padding-top: 8px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.video-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.read-more {
    color: var(--text-primary);
    text-decoration: underline;
}

/* =============================================
   DETERRENTS/DRIVERS
   ============================================= */
.deterrents-drivers {
    /* Inherits from .bottom-row section */
    position: relative;
}

.deterrents-drivers .section-title {
    margin-bottom: 4px;
}

.section-subtext {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.deterrents-drivers .tab-content {
    flex: 1;
}

.sources-count {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 6px;
}

.sources-count .count-main {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
}

.sources-count .count-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.sources-count .count-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tab:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.tab.active {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.tab:active {
    transform: translateY(0);
}

.tab-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.voice-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voice-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 8px;
    padding: 16px;
    min-height: 60px;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.voice-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-color: #eee;
    box-shadow: var(--shadow);
}

.voice-label {
    font-size: 10px;
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.voice-quote {
    font-size: 14px;
    font-weight: 500;
}

/* =============================================
   MEDIA PRESENCE - Two-tone Bar Chart
   ============================================= */
.media-presence {
    /* Inherits from .bottom-row section */
    position: relative;
}

.media-presence .section-title {
    margin-bottom: 4px;
}

.media-subtext {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.media-meta {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.bar-chart-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.bar-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
    padding-bottom: 28px;
}

.y-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-light);
    text-align: right;
    min-width: 28px;
}

.bar-chart-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    align-items: flex-end;
    height: 180px;
    padding-top: 28px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.bar-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-bottom: 4px;
}

.bar-stack {
    width: 100%;
    max-width: 40px;
    min-height: 4px;
    display: flex;
    flex-direction: column;
    border-radius: 2px 2px 0 0;
    overflow: hidden;
}

.bar-segment {
    width: 100%;
}

.bar-segment.dark {
    background: #1a1a1a;
}

.bar-segment.light {
    background: #c8c8c8;
}

.bar-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
}

/* Target label for items with targets */
.bar-target-label {
    font-size: 10px;
    font-weight: 500;
    color: #ff6b6b;
    white-space: nowrap;
    margin-bottom: 2px;
}

/* =============================================
   AI VISIBILITY
   ============================================= */
.ai-visibility {
    /* Inherits from .bottom-row section */
    position: relative;
}

.ai-visibility .section-title {
    margin-bottom: 4px;
}

.ai-header-meta {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ai-header-meta .live-badge {
    font-size: 12px;
}

.region-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.ai-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.ai-metric {
    text-align: left;
}

.ai-metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.ai-score-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-ring {
    transform: rotate(-90deg);
}

.score-ring-bg {
    stroke: #e8e8e8;
}

.score-ring-fill {
    stroke: #6366f1;
}

.ai-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.ai-metric-value.highlight-blue {
    color: #3b82f6;
}

.ai-metric-value.highlight-purple {
    color: #8b5cf6;
}

.ai-platform-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ai-platform-table .platform-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.ai-platform-table .platform-row:hover {
    background: #f0f0f0;
    transform: translateX(2px);
}

.platform-name {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-icon {
    flex-shrink: 0;
}

.platform-mentions {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    min-width: 45px;
    text-align: right;
}

.platform-cited {
    font-size: 13px;
    font-weight: 600;
    color: #8b5cf6;
    min-width: 45px;
    text-align: right;
}

/* =============================================
   SCROLLBAR STYLING
   ============================================= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.05);
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .culture-pulse {
        grid-row: auto;
    }
}

@media (max-width: 992px) {
    .brand-bar {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }

    .brand-clock {
        display: none;
    }

    .clock-time {
        font-size: 32px;
    }

    .clock-date-num {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-header {
        padding: 12px 16px;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .nav-tabs {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: #000000;
        padding: 80px 20px 20px;
        border-radius: 0;
        gap: 4px;
        z-index: 100;
        transition: right 0.3s ease;
    }

    .nav-tabs.active {
        right: 0;
    }

    .nav-tab {
        width: 100%;
        text-align: left;
        padding: 14px 20px;
        border-radius: 8px;
        font-size: 16px;
        color: #ffffff;
        background: transparent;
    }

    .nav-tab:hover,
    .nav-tab.active {
        background: #333333;
        color: #ffffff;
    }

    .nav-right {
        gap: 12px;
    }

    .moderators {
        display: none;
    }

    .user-name {
        display: none;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .logo-image {
        height: 32px;
    }

    /* Brand Bar */
    .brand-bar {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 12px 16px;
        padding: 16px;
    }

    .brand-logo {
        display: none;
    }

    .brand-hero-wrapper {
        height: 120px;
    }

    .hero-label {
        font-size: 12px;
        padding: 6px 14px;
        top: 8px;
        right: 8px;
    }

    .brand-marquee {
        left: 8px;
        right: 8px;
        padding: 8px 16px;
    }

    .marquee-text {
        font-size: 11px;
    }

    .brand-clock {
        display: none;
    }

    /* Content Grid */
    .content-grid {
        padding: 0 16px 16px;
        gap: 12px;
    }

    .bottom-row {
        padding: 0 16px 16px;
        gap: 12px;
    }

    /* News Wire */
    .news-wire {
        padding: 16px;
        max-height: 350px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .news-time {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .news-source {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .news-author {
        white-space: normal;
        font-size: 11px;
    }

    .news-headline {
        font-size: 12px;
        padding-right: 50px;
    }

    .news-tooltip {
        display: none;
    }

    /* Culture Pulse */
    .culture-pulse {
        padding: 16px;
    }

    .culture-pulse .section-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .culture-filters {
        gap: 4px;
    }

    .culture-filter {
        width: 32px;
        height: 32px;
    }

    .culture-filter svg {
        width: 16px;
        height: 16px;
    }

    .culture-grid {
        max-height: 400px;
        gap: 10px;
    }

    /* On The Ground */
    .on-the-ground {
        padding: 16px;
    }

    .video-carousel {
        gap: 8px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .video-play-overlay {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .video-title {
        font-size: 13px;
    }

    .video-description {
        font-size: 11px;
    }

    /* Deterrents/Drivers */
    .section-subtext {
        font-size: 8px;
        letter-spacing: 0.8px;
        margin-bottom: 10px;
    }

    .sources-count {
        top: 16px;
        right: 16px;
        padding: 5px 8px;
    }

    .sources-count .count-num {
        font-size: 14px;
    }

    .sources-count .count-label {
        font-size: 8px;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .tab-content {
        gap: 8px;
    }

    .voice-cards {
        gap: 8px;
    }

    .voice-card {
        padding: 12px;
        min-height: 50px;
    }

    .voice-quote {
        font-size: 13px;
    }

    /* Media Presence - Responsive */
    .media-subtext {
        font-size: 8px;
        letter-spacing: 0.8px;
    }

    .media-meta {
        top: 16px;
        right: 16px;
        gap: 8px;
    }

    .meta-item {
        font-size: 9px;
        gap: 3px;
    }

    .meta-item svg {
        width: 10px;
        height: 10px;
    }

    .bar-y-axis {
        height: 120px;
        padding-bottom: 24px;
    }

    .y-label {
        font-size: 9px;
        min-width: 24px;
    }

    .bar-chart-grid {
        gap: 6px;
        height: 150px;
        padding-top: 24px;
    }

    .bar-value {
        font-size: 9px;
    }

    .bar-stack {
        max-width: 32px;
    }

    .bar-label {
        font-size: 9px;
        margin-top: 6px;
    }

    .bar-target-label {
        font-size: 8px;
        margin-bottom: 1px;
    }

    .bottom-row section {
        min-height: 280px;
        padding: 16px;
    }

    /* AI Visibility */
    .ai-header-meta {
        top: 16px;
        right: 16px;
    }

    .ai-header-meta .live-badge {
        font-size: 11px;
    }

    .ai-metrics-grid {
        gap: 12px;
        margin-bottom: 12px;
    }

    .ai-metric-label {
        font-size: 11px;
    }

    .ai-metric-value {
        font-size: 22px;
    }

    .score-ring {
        width: 32px;
        height: 32px;
    }

    .ai-platform-table .platform-row {
        padding: 8px 10px;
        gap: 8px;
    }

    .platform-name {
        font-size: 12px;
        gap: 6px;
    }

    .platform-icon {
        width: 14px;
        height: 14px;
    }

    .platform-mentions,
    .platform-cited {
        font-size: 12px;
        min-width: 40px;
    }

    /* Section Titles */
    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    /* Modal */
    .modal {
        margin: 20px;
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nav-header {
        padding: 10px 12px;
    }

    .logo-image {
        height: 28px;
    }

    .brand-bar {
        margin: 10px 12px;
        padding: 12px;
    }

    .brand-hero-wrapper {
        height: 100px;
    }

    .hero-label {
        font-size: 10px;
        padding: 5px 10px;
    }

    .content-grid,
    .bottom-row {
        padding: 0 12px 12px;
    }

    .news-wire,
    .culture-pulse,
    .on-the-ground,
    .bottom-row section {
        padding: 12px;
        border-radius: 8px;
    }

    .news-item {
        padding: 8px;
    }

    .news-headline {
        font-size: 11px;
    }

    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .video-play-overlay {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Deterrents/Drivers - Small Mobile */
    .section-subtext {
        font-size: 7px;
        margin-bottom: 8px;
    }

    .sources-count {
        top: 12px;
        right: 12px;
        padding: 4px 6px;
    }

    .sources-count .count-num {
        font-size: 12px;
    }

    .sources-count .count-label {
        font-size: 7px;
    }

    /* Media Presence - Small Mobile */
    .media-meta {
        top: 12px;
        right: 12px;
        gap: 6px;
    }

    .meta-item {
        font-size: 8px;
        gap: 2px;
    }

    .meta-item svg {
        width: 9px;
        height: 9px;
    }

    .bar-y-axis {
        height: 90px;
        padding-bottom: 20px;
    }

    .y-label {
        font-size: 8px;
        min-width: 20px;
    }

    .bar-chart-grid {
        gap: 4px;
        height: 120px;
        padding-top: 20px;
    }

    .bar-value {
        font-size: 8px;
    }

    .bar-stack {
        max-width: 24px;
    }

    .bar-label {
        font-size: 8px;
        margin-top: 4px;
    }

    .bar-target-label {
        font-size: 7px;
        margin-bottom: 1px;
    }

    .bottom-row section {
        min-height: 240px;
        padding: 12px;
    }

    /* AI Visibility - Small Mobile */
    .ai-header-meta {
        top: 12px;
        right: 12px;
        gap: 2px;
    }

    .ai-header-meta .live-badge {
        font-size: 10px;
    }

    .ai-metrics-grid {
        gap: 8px;
        margin-bottom: 10px;
    }

    .ai-metric-label {
        font-size: 10px;
    }

    .ai-metric-value {
        font-size: 18px;
    }

    .score-ring {
        width: 28px;
        height: 28px;
    }

    .ai-platform-table {
        gap: 4px;
    }

    .ai-platform-table .platform-row {
        padding: 6px 8px;
        gap: 6px;
    }

    .platform-name {
        font-size: 11px;
        gap: 4px;
    }

    .platform-icon {
        width: 12px;
        height: 12px;
    }

    .platform-mentions,
    .platform-cited {
        font-size: 11px;
        min-width: 35px;
    }

    .tabs {
        justify-content: center;
    }

    .tab {
        padding: 5px 10px;
        font-size: 11px;
    }
}
