/*
Theme Name: Score.co.id - Football News 2025
Version: 1.0.6
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header & Navigation */
.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: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.desktop-menu {
    flex-grow: 1;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-menu > li > a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.primary-menu > li > a:hover {
    background: #00A676;
    color: white;
}

.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);
}

.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 {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.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 {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    background: rgba(10, 10, 10, 0.98);
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.mobile-menu.is-open {
    right: 0;
    display: block;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list li {
    margin-bottom: 0.5rem;
}

.mobile-menu-list a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.mobile-menu-list a:hover {
    background: #00A676;
}

.mobile-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
    margin: 0.5rem 0;
}

/* Main Content Layout */
.main-content {
    padding: 1rem 0;
    margin-top: 80px;
    width: 100%;
}

@media (min-width: 1024px) {
    .main-content {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 3rem;
        padding: 2rem 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .main-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        padding: 1.5rem 0;
    }
}

@media (max-width: 767px) {
    .main-content {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin-top: 70px;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(to bottom, #000000, #0a0a0a);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00A676, #00A676, #00A676, transparent);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 166, 118, 0.1);
    backdrop-filter: blur(10px);
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: white;
    background: rgba(0, 166, 118, 0.15);
    transform: translateY(-2px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00A676;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 80%;
}

.separator {
    color: #444;
    font-size: 0.9rem;
    font-weight: 300;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.copyright {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid #222;
    position: relative;
}

.copyright::before {
    content: '⚽';
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: spin 20s infinite linear;
}

.copyright::after {
    content: '⚽';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: spin 20s infinite linear reverse;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.copyright {
    color: #888;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.9));
    padding: 1.5rem 4rem;
    border: 1px solid rgba(0, 166, 118, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(0, 166, 118, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(0, 166, 118, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.separator:nth-child(2) { animation-delay: 0.2s; }
.separator:nth-child(4) { animation-delay: 0.4s; }
.separator:nth-child(6) { animation-delay: 0.6s; }
.separator:nth-child(8) { animation-delay: 0.8s; }
.separator:nth-child(10) { animation-delay: 1s; }

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
    display: none !important;
}

/* Responsive Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.is-open {
        right: 0;
    }
    
    .header-inner {
        padding: 0.8rem 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.5rem 1rem;
    }
    
    .separator {
        display: none;
    }
    
    .footer-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-links a:hover {
        transform: translateX(5px);
    }
    
    .copyright {
        padding: 1.5rem 2rem 1.5rem 3.5rem;
    }
    
    .copyright::before,
    .copyright::after {
        display: none;
    }
    
    .site-footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-inner {
        padding: 0.8rem 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.is-open {
        right: 0;
    }
    
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-links {
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
    
    .copyright {
        font-size: 0.85rem;
        padding: 1rem;
        border-radius: 8px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .back-to-top {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .main-content {
        margin-top: 0;
        display: block !important;
    }
}