/* Elzem Matches — Site CSS (standalone)
   Header, footer, menus, poster, logo, pages, breadcrumbs
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.elzem-page {
    background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #1a0000 100%);
    background-attachment: fixed;
    color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: #00eaff; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff6b6b; }

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.elzem-site-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff1717;
    box-shadow: 0 4px 20px rgba(255, 23, 23, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.elzem-topbar {
    width: 100%;
}

.elzem-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.elzem-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.elzem-brand:hover { color: #ff1717; }

.elzem-brand-logo {
    border-radius: 6px;
    flex-shrink: 0;
}

.elzem-brand-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ff1717, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.elzem-brand-slogan {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
    margin-left: 4px;
}

/* ===== MAIN NAV ===== */
.elzem-main-nav {
    display: flex;
    align-items: center;
    position: relative; /* needed for absolute mobile menu */
}

.elzem-nav-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.elzem-nav-menu li a {
    display: block;
    padding: 8px 16px;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.elzem-nav-menu li a:hover,
.elzem-nav-menu li a.active {
    background: linear-gradient(135deg, #ff1717, #cc0000);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 23, 23, 0.4);
}

.elzem-nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.elzem-nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.elzem-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.elzem-nav-toggle.active span:nth-child(2) { opacity: 0; }
.elzem-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HEADER POSTER ===== */
.elzem-header-poster {
    overflow: hidden;
    background: #000;
}

.elzem-header-poster img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.elzem-header-poster:hover img {
    transform: scale(1.02);
}

.elzem-poster-link {
    display: block;
}

/* ===== MAIN CONTENT ===== */
.elzem-main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 60vh;
}

.elzem-page-container {
    width: 100%;
}

.elzem-page-title {
    color: #fff;
    font-size: 32px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff1717;
    font-weight: 800;
}

.elzem-page-intro {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 24px;
}

.elzem-static-page {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.elzem-page-content {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
}

.elzem-page-content h1,
.elzem-page-content h2,
.elzem-page-content h3 {
    color: #ff6b6b;
    margin: 24px 0 12px;
    font-weight: 700;
}

.elzem-page-content h1 { font-size: 26px; }
.elzem-page-content h2 { font-size: 22px; }
.elzem-page-content h3 { font-size: 18px; }

.elzem-page-content p { margin-bottom: 14px; }

.elzem-page-content ul,
.elzem-page-content ol {
    margin: 14px 0 14px 24px;
}

.elzem-page-content li { margin-bottom: 8px; }

.elzem-page-content a {
    color: #00eaff;
    text-decoration: underline;
}

.elzem-page-content a:hover {
    color: #ff6b6b;
}

/* ===== HOMEPAGE ===== */
.elzem-homepage { color: #e0e0e0; }

.elzem-home-hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(255, 23, 23, 0.1), rgba(0, 234, 255, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(255, 23, 23, 0.3);
}

.elzem-home-hero h1 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.elzem-home-lead {
    font-size: 17px;
    color: #ccc;
    max-width: 900px;
    margin: 0 auto 20px;
}

.elzem-home-hero-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.elzem-home-section {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}

.elzem-home-section h2 {
    color: #ff6b6b;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.elzem-home-section p { margin-bottom: 14px; color: #ddd; }

.elzem-home-section ul,
.elzem-home-section ol { margin: 14px 0 14px 24px; }

.elzem-home-section li { margin-bottom: 8px; color: #ddd; }

.elzem-home-section strong { color: #fff; }

.elzem-home-cta {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.elzem-home-cta h2 {
    color: #ff6b6b;
    margin-bottom: 24px;
    font-size: 24px;
}

.elzem-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.elzem-cta-card {
    display: block;
    background: linear-gradient(135deg, rgba(255, 23, 23, 0.15), rgba(0, 0, 0, 0.4));
    border: 1px solid #ff1717;
    border-radius: 10px;
    padding: 28px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.elzem-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 23, 23, 0.3);
    color: #fff;
}

.elzem-cta-card i {
    font-size: 36px;
    color: #ff6b6b;
    margin-bottom: 12px;
    display: block;
}

.elzem-cta-card h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.elzem-cta-card p {
    color: #aaa;
    font-size: 13px;
    margin: 0;
}

/* ===== SCHEDULE PAGE ===== */
.elzem-schedule-page .matches-container {
    background: rgba(10, 10, 10, 0.6);
    border-radius: 8px;
    padding: 20px;
}

.elzem-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    background: rgba(20, 20, 20, 0.4);
    border-radius: 8px;
}

/* ===== BREADCRUMB ===== */
.elzem-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0;
}

.breadcrumb-item {
    color: #aaa;
}

.breadcrumb-item::after {
    content: '/';
    margin-left: 8px;
    color: #555;
}

.breadcrumb-item:last-child::after { content: ''; }

.breadcrumb-item a {
    color: #00eaff;
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.elzem-site-footer {
    background: rgba(0, 0, 0, 0.95);
    border-top: 2px solid #ff1717;
    padding: 30px 20px;
    margin-top: 40px;
}

.elzem-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.elzem-footer-nav ul.elzem-footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    padding: 0;
    margin: 0;
}

.elzem-footer-menu li a {
    color: #ccc;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
}

.elzem-footer-menu li a:hover {
    color: #ff6b6b;
}

.elzem-social {
    display: flex;
    gap: 12px;
}

.elzem-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.8);
    color: #fff;
    font-size: 16px;
    transition: all 0.25s;
}

.elzem-social-link:hover {
    background: linear-gradient(135deg, #ff1717, #cc0000);
    color: #fff;
    transform: translateY(-2px);
}

.elzem-footer-copyright {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid #222;
    width: 100%;
}

.elzem-footer-copyright a {
    color: #ff6b6b;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .elzem-nav-toggle {
        display: flex !important;
    }
    .elzem-nav-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        border: 1px solid #333 !important;
        border-top: 2px solid #ff1717 !important;
        border-radius: 0 0 8px 8px !important;
        min-width: 200px !important;
        /* Hidden state: use display:none instead of max-height (more reliable) */
        display: none !important;
        z-index: 1100 !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
    }
    .elzem-nav-menu.open {
        display: flex !important;
    }
    .elzem-nav-menu li {
        width: 100% !important;
    }
    .elzem-nav-menu li a {
        display: block !important;
        padding: 12px 20px !important;
        border-radius: 0 !important;
        font-size: 15px !important;
    }
    .elzem-topbar-inner {
        padding: 10px 14px !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    .elzem-brand {
        flex: 1 !important;
        min-width: 0 !important;
    }
    .elzem-brand-name {
        font-size: 17px !important;
    }
    .elzem-main-content {
        padding: 16px 10px !important;
    }
    .elzem-page-title {
        font-size: 22px !important;
    }
    .elzem-home-hero {
        padding: 24px 14px !important;
    }
    .elzem-home-hero h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    .elzem-home-lead {
        font-size: 14px !important;
    }
    .elzem-home-section {
        padding: 16px !important;
    }
    .elzem-home-section h2 {
        font-size: 18px !important;
    }
    .elzem-home-section p {
        font-size: 14px !important;
    }
    .elzem-static-page {
        padding: 16px !important;
    }
    .elzem-page-content {
        font-size: 14px !important;
    }
    .elzem-page-content h1 { font-size: 20px !important; }
    .elzem-page-content h2 { font-size: 18px !important; }
    .elzem-page-content h3 { font-size: 16px !important; }
    .elzem-footer-menu {
        gap: 6px 10px !important;
    }
    .elzem-footer-menu li a {
        font-size: 12px !important;
        padding: 3px 6px !important;
    }
    .elzem-cta-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .elzem-brand-slogan {
        display: none !important;
    }
    .elzem-brand-logo {
        width: 32px !important;
        height: 32px !important;
    }
    .elzem-brand-name {
        font-size: 15px !important;
    }
    .elzem-home-hero h1 {
        font-size: 20px !important;
    }
    .elzem-page-title {
        font-size: 18px !important;
    }
    .elzem-home-section {
        padding: 12px !important;
    }
    .elzem-static-page {
        padding: 12px !important;
    }
}
