@import url('../interface/module_base.css');

/* 1. HERO SECTION: SYNCED (Handled by global event-hero) */
.version-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px; /* Spacing for the new large title */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
}

/* Typography handled by global interface/style.css */

/* Shared logic with standard hero classes */

/* Shared logic with standard hero classes */

/* 2. PDF VIEWER SECTION (PAPER STYLE) */
.pdf-reader-section {
    padding: 40px 0 80px 0;
    background: #f1f5f9; /* Subtle gray background to make white paper pop */
}

/* ISOLATED CONTAINER for Rules content only (does not affect Header) */
.rules-reader-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Custom PDF Container for Paper Rendering */
#pdf-render-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.pdf-page-canvas {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 100%;
    height: auto !important;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.pdf-page-canvas:hover {
    transform: translateY(-5px);
}

/* Loading State */
.pdf-loading {
    text-align: center;
    padding: 50px;
    color: #64748b;
}

.pdf-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    color: #e11d48;
}

.pdf-footer-actions {
    margin-top: 40px;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

.download-link {
    color: #e11d48;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s;
}

.download-link:hover {
    color: #be123c;
}

/* 3. BUTTONS */
.btn-outline-white {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid white;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: white;
    color: #e11d48;
}

/* 4. MOBILE ADJUSTMENTS - Standardized 900px Switchpoints */
@media (max-width: 900px) {
    .rules-hero {
        padding: 30px 15px;
    }
    
    .hero-title {
        font-size: 0.9rem; /* Subtle on mobile */
    }

    #pdf-render-container {
        gap: 15px;
    }
    
    .version-note {
        font-size: 1.5rem; /* Prominent on mobile */
        font-weight: 800;
    }

    /* Synchronize Empty State Hero on Mobile - PIXEL PERFECT */
    .rules-hero.empty {
        padding: 60px 15px; /* Exact match with homepage-mobile-empty height */
    }

    .rules-hero.empty .hero-title {
        font-size: 1.8rem !important; /* Absolute parity */
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .rules-hero.empty .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5;
    }
}
