/* ==========================================
   ASFORT - STYLE STRONY DEMONSTRACYJNEJ (UTF-8)
   ========================================== */

:root {
    --primary: #1b5e20;
    --primary-light: #4c8c4a;
    --primary-dark: #0d3b10;
    --secondary: #FFD700;
    --secondary-hover: #ffea00;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.1);
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 50px; /* Miejsce na pasek ostrzegawczy */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- PASEK OSTRZEGAWCZY (ATRAPA) --- */
.demo-warning-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: #ff4444;
    color: white;
    text-align: center;
    padding: 10px 5px;
    font-weight: bold;
    z-index: 9999;
    font-family: sans-serif;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- PRZYCISK POWROTU --- */
.return-btn {
    position: absolute;
    top: 70px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: 0.3s;
    z-index: 500;
    backdrop-filter: blur(5px);
}

.return-btn:hover {
    background: var(--secondary);
    color: #111;
    border-color: var(--secondary);
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0,0,0,0.5) 100%),
                url('zd1.webp');
    background-size: cover;
    background-position: center top;
    min-height: 100vh;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.hero-content {
    margin: auto 0 auto 10%; 
    max-width: 800px;
    padding-bottom: 50px;
    text-align: center; 
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-top: 80px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content span {
    color: var(--secondary);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.6);
    font-weight: 400;
}

.highlight-text {
    display: block;
    margin-top: 15px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-main {
    display: inline-block;
    background: var(--secondary);
    color: #1a1a1a;
    padding: 20px 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

.btn-main:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* STYLE MODALA */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-content h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ================= SECTIONS GENERAL ================= */
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 50px; }

/* ================= ZASADY ================= */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 40px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow-sm); }
.icon { font-size: 3rem; margin-bottom: 20px; }

/* ================= LOTERIA ================= */
.lottery-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
}

.lottery-date-badge {
    display: inline-block;
    border: 2px solid var(--secondary);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 25px;
}

.lottery-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.prizes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.prize-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prize-circle {
    width: 170px; height: 170px;
    background: radial-gradient(circle, var(--primary-light) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.prize-item:hover .prize-circle { transform: scale(1.05); border-color: var(--secondary); }
.prize-icon { font-size: 4.5rem; }
.prize-desc { font-size: 1.2rem; text-transform: uppercase; font-weight: 500; }
.prize-desc strong { display: block; font-size: 1.8rem; color: var(--secondary); }

.btn-regulations {
    display: inline-block;
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 2px solid var(--secondary);
    font-weight: 700;
    padding-bottom: 5px;
}

/* ================= RANKING ================= */
.leaderboard { background-color: var(--white); }
.table-container { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow-md); overflow: hidden; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: var(--primary); color: var(--white); }
th, td { padding: 20px; }
tbody tr { border-bottom: 1px solid #eee; }
.rank-num { font-weight: 800; color: var(--primary); text-align: center; }
.player-cell { display: flex; align-items: center; gap: 10px; }
.xp-points { font-weight: 700; color: var(--primary); }

/* ================= KONTAKT ================= */
.contact-box {
    background: var(--white);
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.contact-link {
    display: block;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 15px;
}

/* ================= FOOTER ================= */
footer { padding: 40px 0; background: #111; color: #777; text-align: center; font-size: 0.9rem; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    body { padding-top: 80px; } /* Wiêcej miejsca pod paskiem na telefonie */

    .demo-warning-bar { font-size: 12px; }

    .return-btn {
        position: relative;
        top: 0; left: 0;
        display: block;
        text-align: center;
        margin: 10px auto 20px auto;
        width: 90%;
    }

    .hero-content {
        margin-left: 0;
        padding: 0 20px;
        text-align: center;
    }

    .hero-content h1 { font-size: 2.2rem; margin-top: 20px; }
    .hero-subtitle { font-size: 1.1rem; }
    .highlight-text { font-size: 1.2rem; }
}