/* ============================================= */

/* SCORE.CO.ID - FOOTBALL NEWS HEADER STYLES */

/* ============================================= */

/* MOBILE LIVESCORE INDICATOR */

.mobile-livescore {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 20px;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulseSlow 2s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

.mobile-livescore:hover {
    background: rgba(220, 53, 69, 0.25);
    transform: scale(1.05);
}

.mobile-livescore::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 20px;
    animation: glowPulse 3s infinite ease-in-out;
}

.livescore-icon {
    font-size: 14px;
    color: #ff6b6b;
    animation: iconBlink 2.5s infinite ease-in-out;
}

.livescore-text {
    font-size: 11px;
    font-weight: 700;
    color: #ff6b6b;
    white-space: nowrap;
    letter-spacing: 0.5px;
    animation: textBlink 2s infinite ease-in-out;
}

@keyframes pulseSlow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes iconBlink {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes textBlink {
    0%,
    100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
    }
}

/* BASE HEADER STYLES */

.site-header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 3px solid #00A676;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(0, 166, 118, 0.2);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.site-branding {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* DESKTOP MENU */

.desktop-menu {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.primary-menu>li>a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.primary-menu>li>a:hover {
    background: #00A676;
    color: white;
}

.custom-liga-menu {
    display: inline-flex;
    list-style: none;
    margin: 0 0 0 0.5rem;
    padding: 0;
    align-items: center;
}

.custom-liga-menu>li {
    position: static;
    margin: 0 0.2rem;
}

.custom-liga-menu>li>a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.custom-liga-menu>li>a:hover {
    background: #00A676;
}

.custom-liga-menu .mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 750px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 166, 118, 0.2);
    z-index: 1000;
}

.custom-liga-menu>li:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-container.single-liga {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1.4fr;
    gap: 1.5rem;
}

.liga-col {
    min-width: 0;
}

.liga-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00A676;
}

.liga-header img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.liga-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.liga-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.liga-link {
    color: #ddd;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: all 0.2s ease;
    display: block;
}

.liga-link:hover {
    background: #00A676;
    color: white;
    transform: translateX(3px);
}

.liga-teams h4,
.liga-players h4 {
    color: #00A676;
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-item,
.player-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.team-item:hover,
.player-item:hover {
    background: rgba(0, 166, 118, 0.2);
    transform: translateX(5px);
}

.team-logo-mini {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
}

.player-photo-mini {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
}

.player-info-mini {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.player-team {
    font-size: 0.7rem;
    color: #aaa;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 20, 0.98);
    min-width: 250px;
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    margin: 0;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sub-menu a:hover {
    background: #00A676;
    color: white;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
    display: none;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    background: rgba(10, 10, 10, 0.98);
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: none;
}

.mobile-menu.is-open {
    right: 0;
    display: block;
}

.mobile-menu-list,
.mobile-menu-list>ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li,
.mobile-menu-list>ul li {
    margin: 0;
}

.mobile-menu-list a,
.mobile-menu-list>ul a {
    display: block;
    padding: 0.8rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.mobile-menu-list a:hover,
.mobile-menu-list>ul a:hover {
    background: rgba(0, 166, 118, 0.2);
}

.mobile-menu-list .menu-item-has-children>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0.5rem;
}

.mobile-menu .sub-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-menu .sub-menu.submenu-open {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    margin: 0.5rem 0;
}

.mobile-menu .sub-menu hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .primary-menu>li>a,
    .custom-liga-menu>li>a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .desktop-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .header-inner {
        padding: 0.8rem 0;
    }
    .logo img {
        height: 55px;
    }
    .mobile-livescore {
        display: flex;
        margin-right: auto;
        margin-left: 15px;
    }
}

@media (max-width: 767px) {
    .site-header {
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(12px) !important;
        border-bottom: 2px solid rgba(0, 166, 118, 0.6);
        min-height: 60px;
    }
    .header-inner {
        padding: 0.5rem 0 !important;
        min-height: 60px;
        gap: 10px;
    }
    .logo img {
        height: 45px !important;
    }
    .desktop-menu {
        display: none;
    }
    .hamburger {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 0.5rem;
        background: rgba(0, 166, 118, 0.15);
        border: 1px solid rgba(0, 166, 118, 0.3);
        border-radius: 8px;
        margin: 0;
    }
    .hamburger-line {
        width: 20px;
        height: 2px;
        background: white;
        margin: 0 auto;
    }
    .mobile-livescore {
        display: flex !important;
        margin-right: auto;
        margin-left: 10px;
        order: 2;
        animation: pulseSlow 2.5s infinite ease-in-out;
    }
    .livescore-icon {
        font-size: 13px;
        animation: iconBlink 3s infinite ease-in-out;
    }
    .livescore-text {
        font-size: 10px;
        animation: textBlink 2.5s infinite ease-in-out;
    }
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        max-height: 80vh;
        overflow-y: auto;
        border-bottom: 3px solid #00A676;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 999;
        padding: 1.5rem;
        right: -100%;
        transition: right 0.3s ease;
    }
    .mobile-menu.is-open {
        display: block;
        right: 0;
    }
    .mobile-menu-list>li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .mobile-menu-list>li>a {
        padding: 0.8rem 1rem;
        line-height: 1.2;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .mobile-menu-list .menu-item-has-children>a::after {
        content: '▼';
        font-size: 0.7rem;
        margin-left: auto;
        opacity: 0.6;
        transition: transform 0.3s ease;
    }
    .mobile-menu-list .menu-item-has-children>a.submenu-open::after {
        transform: rotate(180deg);
    }
    .mobile-menu .sub-menu a {
        padding: 0.6rem 1rem 0.6rem 2rem;
        min-height: 40px;
        display: flex;
        align-items: center;
        font-size: 0.85rem;
        gap: 8px;
    }
    .mobile-menu .sub-menu li:first-child a {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }
    .mobile-menu .sub-menu li:last-child a {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    .mobile-menu .sub-menu li:not(:last-child) a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .mobile-menu .sub-menu hr {
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0.5rem 0;
    }
    body.menu-open {
        overflow: hidden;
    }
    .mobile-menu .sub-menu li.divider {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin: 0.5rem 0;
        padding: 0;
        pointer-events: none;
    }
    .mobile-menu .sub-menu li.divider a {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px !important;
    }
    .hamburger {
        width: 40px;
        height: 40px;
    }
    .mobile-livescore {
        padding: 5px 10px;
        margin-left: 8px;
    }
    .livescore-icon {
        font-size: 12px;
    }
    .livescore-text {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu.is-open .mobile-menu-list>li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.mobile-menu.is-open .mobile-menu-list>li:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-menu.is-open .mobile-menu-list>li:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-menu.is-open .mobile-menu-list>li:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-menu.is-open .mobile-menu-list>li:nth-child(4) {
    animation-delay: 0.2s;
}

.mobile-menu.is-open .mobile-menu-list>li:nth-child(5) {
    animation-delay: 0.25s;
}

.mobile-menu.is-open .mobile-menu-list>li:nth-child(6) {
    animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-livescore,
    .livescore-icon,
    .livescore-text {
        animation: none !important;
    }
}

/* ============================================= */

/* BEST OF THE BEST MEGA DROPDOWN */

/* ============================================= */

.botb-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1.2rem;
    width: fit-content;
}

.botb-tab {
    padding: 0.45rem 1.1rem;
    background: transparent;
    border: none;
    color: #ddd;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.botb-tab.active,
.botb-tab:hover {
    background: #00A676;
    color: white;
}

.botb-tab-content {
    display: none;
}

.botb-tab-content.active {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .botb-tab-content {
        grid-template-columns: 1fr;
    }
}