/* ArenaTV News - Header & Top Bar Styles */

/* Top Bar - Barra laranja com ticker */
.top-bar {
    background: #f26522 !important;
    color: #fff;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    overflow: hidden;
    max-height: 45px;
}

.top-bar .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

/* Data sempre visível, inclusive no mobile */
.top-bar__date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    font-size: 0.7rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .top-bar__date {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}

.top-bar__ticker {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    display: flex;
    align-items: center;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: #f26522;
    padding: 0.3rem 0.75rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    white-space: nowrap;
    margin-right: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    animation: ticker-pulse 2s ease-in-out infinite;
}

.ticker-label svg {
    color: #f26522;
    animation: ticker-bolt 1.5s ease-in-out infinite;
}

@keyframes ticker-pulse {

    0%,
    100% {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }

    50% {
        box-shadow: 0 1px 8px rgba(255, 255, 255, 0.4);
    }
}

@keyframes ticker-bolt {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.ticker-content {
    flex: 1;
    position: relative;
    height: 1.5em;
    overflow: hidden;
}

.ticker-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-item a {
    color: #fff;
}

.ticker-item a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.dark-mode .site-header {
    background: #252525;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .main-navigation a,
body.dark-mode .main-navigation .menu-item a {
    color: #e0e0e0;
}

body.dark-mode .main-navigation a:hover {
    color: var(--secondary);
}

body.dark-mode .mobile-menu a {
    color: #e0e0e0;
}

body.dark-mode .mobile-menu a:hover {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .search-toggle,
body.dark-mode .menu-toggle,
body.dark-mode .dark-mode-toggle {
    color: #e0e0e0;
}

body.dark-mode .social-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

body.dark-mode .social-icon:hover {
    background: var(--secondary);
    color: #fff;
}

body.dark-mode .search-bar input {
    background: #2a2a2a;
    border-color: #333;
    color: #e0e0e0;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-logo:hover {
    opacity: 0.9;
}

.site-logo__text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .site-logo__text {
        font-size: 1.875rem;
    }
}

.site-logo__text .arena {
    color: var(--primary);
}

body.dark-mode .site-logo__text .arena {
    color: #e0e0e0;
}

.site-logo__text .tv {
    color: var(--secondary);
}

.site-logo__text .news {
    color: var(--primary);
}

body.dark-mode .site-logo__text .news {
    color: #e0e0e0;
}

.site-logo img,
.site-logo__img {
    max-height: 45px;
    height: auto;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {

    .site-logo img,
    .site-logo__img {
        max-height: 55px;
    }
}

/* Navigation - Full-width bar below logo on desktop */
.main-navigation {
    display: none;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        border-top: 1px solid var(--border);
    }
}

body.dark-mode .main-navigation {
    border-top-color: #333;
}

.main-navigation a,
.main-navigation .menu-item a {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    padding: 0.4rem 0.65rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.3s ease;
}

@media (min-width: 1280px) {

    .main-navigation a,
    .main-navigation .menu-item a {
        font-size: 0.9rem;
        padding: 0.4rem 0.85rem;
    }
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover,
.main-navigation a.current-menu-item,
.main-navigation .current-menu-item>a,
.main-navigation .current-cat>a {
    color: var(--secondary);
}

.main-navigation a:hover::after,
.main-navigation a.current-menu-item::after {
    width: 100%;
}

/* WordPress generated menu list items */
.main-navigation li {
    list-style: none;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: center;
}

@media (min-width: 1280px) {
    .main-navigation ul {
        gap: 0.75rem;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.social-icons {
    display: none;
}

@media (min-width: 768px) {
    .social-icons {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--gray-100);
    color: #555;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

.dark-mode-toggle.active .icon-moon {
    display: none !important;
}

.dark-mode-toggle.active .icon-sun {
    display: block !important;
}

body.dark-mode .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: #ffd700;
}

.search-toggle,
.menu-toggle {
    padding: 0.4rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.search-toggle:hover,
.menu-toggle:hover {
    background: var(--gray-100);
    color: var(--secondary);
}

.menu-toggle {
    display: block;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

/* Search Bar */
.search-bar {
    display: none;
    padding: 0.75rem 0;
    animation: fadeInDown 0.3s ease;
}

.search-bar.active {
    display: block;
}

.search-bar form {
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.search-bar button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
}

.search-bar button:hover {
    color: var(--secondary);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    animation: fadeInDown 0.3s ease;
}

.mobile-menu.active {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--secondary);
    background: #f9fafb;
}

.mobile-menu .mobile-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    padding-left: 1rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}