/* =========================================
   POKROČILÝ RESPONSIVNÍ DESIGN (FLUID UI)
   ========================================= */

:root {
    /* Hlavní barvy - snadná úprava na jednom místě */
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --secondary-color: #008cba;
    --secondary-hover: #007399;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --input-bg: #2c2c2c;
    --error-color: #ff4d4d;
    --jackpot-color: #ffd700;
    --transition-speed: 0.3s;
}

* { 
    box-sizing: border-box; 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
}

body { 
    background-color: var(--bg-color); 
    background-image: radial-gradient(circle at top, #1a1a2e 0%, var(--bg-color) 100%);
    color: var(--text-main); 
    display: flex; 
    flex-direction: column; /* <-- TOTO PŘIDEJ */
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    margin: 0; 
    padding: 2vw; /* Změněno z 4vw na 2vw */
}
/* ... (styly pro body nahoře) ... */

/* ================== LOGO ================== */
.main-logo {
    display: block;
    /* Fluidní velikost loga: min 150px, ideálně 30vw, max 250px */
    max-width: clamp(150px, 30vw, 250px); 
    height: auto; /* Zachovat poměr stran */
    /* Centrovat a přidat dynamický margin spodní (min 15px, max 25px) */
    margin: 0 auto clamp(15px, 3vw, 25px); 
}

/* ================== KONTEJNERY ================== */
/* ... (zbytek CSS) ... */

/* ================== KONTEJNERY ================== */
.container { 
    background-color: var(--container-bg); 
    /* clamp() zajistí plynulou změnu paddingu mezi mobilem a PC (min 20px, max 40px) */
    padding: clamp(20px, 5vw, 40px); 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05); 
    text-align: center; 
    width: 100%; 
    max-width: 450px; 
    border: 1px solid rgba(255,255,255,0.05);
}
.promo-container { max-width: 650px; }

/* ================== TYPOGRAFIE ================== */
h1 { 
    margin-top: 0; 
    /* Text se zmenší na mobilu a zvětší na PC */
    font-size: clamp(22px, 5vw, 30px); 
    color: var(--primary-color); 
    margin-bottom: 15px; 
    line-height: 1.2;
}
p { 
    color: var(--text-muted); 
    font-size: clamp(14px, 3vw, 16px); 
    margin-bottom: 25px; 
    line-height: 1.5; 
}

/* ================== FORMULÁŘE ================== */
input[type="text"], input[type="email"], input[type="number"], .custom-select { 
    width: 100%; 
    padding: 14px 16px; 
    margin-bottom: 20px; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    background-color: var(--input-bg); 
    color: var(--text-main); 
    font-size: 16px; 
    transition: all var(--transition-speed) ease; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
input[type="text"] { text-align: center; text-transform: uppercase; letter-spacing: 1px; }
input[type="email"] { text-align: left; }
input[type="number"] { text-align: center; }

input:focus, .custom-select:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background-color: #333;
}

.custom-select { 
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); 
    background-repeat: no-repeat; 
    background-position: right 1rem center; 
    background-size: 1em; 
    padding-right: 2.5rem; 
    cursor: pointer;
}
.custom-select option { background-color: var(--container-bg); color: var(--text-main); }

/* ================== TLAČÍTKA ================== */
button, .btn-link { 
    display: block; 
    width: 100%; 
    padding: 16px; 
    background-color: var(--primary-color); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all var(--transition-speed); 
    text-decoration: none; 
    text-align: center; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    box-sizing: border-box;
}
button:hover, .btn-link:hover { 
    background-color: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.3); 
}
button:active, .btn-link:active { transform: translateY(0); }
button:disabled { background-color: #555; color: #888; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary { background-color: var(--secondary-color); margin-bottom: 15px; }
.btn-secondary:hover { background-color: var(--secondary-hover); }

.back-link { display: inline-block; color: var(--text-muted); text-decoration: none; margin-bottom: 20px; font-size: 14px; transition: color var(--transition-speed); padding: 5px 0; }
.back-link:hover { color: var(--text-main); }

/* ================== BOXY A HLÁŠKY ================== */
#messageBox, .success, .error { margin-top: 20px; padding: clamp(15px, 4vw, 20px); border-radius: 8px; font-weight: bold; word-break: break-word; animation: fadeIn 0.4s ease; }
.hidden { display: none !important; }
.error { background-color: rgba(255, 77, 77, 0.1); color: var(--error-color); border: 1px solid rgba(255, 77, 77, 0.3); font-size: 15px; }
.success { background-color: rgba(76, 175, 80, 0.1); color: var(--primary-color); border: 1px solid rgba(76, 175, 80, 0.3); font-size: 18px; line-height: 1.4; }
.jackpot-success { background-color: rgba(255, 215, 0, 0.1); color: var(--jackpot-color); border: 1px solid rgba(255, 215, 0, 0.3); font-size: 18px; line-height: 1.4; }

/* Promo Boxy */
.jackpot-box { background: linear-gradient(145deg, #2a2a00, #1a1a00); border: 2px solid var(--jackpot-color); padding: clamp(15px, 5vw, 25px); border-radius: 12px; margin: 30px 0; box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1); }
.jackpot-box h3 { color: var(--jackpot-color); margin-top: 0; font-size: clamp(18px, 4vw, 22px); }
.jackpot-box p { color: #fff; margin-bottom: 0; font-size: clamp(14px, 3.5vw, 16px); }

.trust-box { background-color: #161616; border-left: 4px solid var(--primary-color); padding: clamp(15px, 4vw, 20px); margin: 20px 0 30px 0; border-radius: 0 8px 8px 0; font-size: clamp(12px, 3vw, 14px); color: #bbb; text-align: left; line-height: 1.6; }
.trust-box strong { color: #fff; font-size: 1.1em; }
.trust-box a { color: var(--primary-color); text-decoration: none; font-weight: bold; transition: color var(--transition-speed); }
.trust-box a:hover { color: #81c784; text-decoration: underline; }

/* Status Odznak */
.status-badge { display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); padding: 8px 16px; border-radius: 30px; font-size: clamp(12px, 3vw, 14px); font-weight: bold; margin-bottom: 25px; border: 1px solid var(--border-color); transition: all var(--transition-speed) ease; backdrop-filter: blur(5px); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; flex-shrink: 0; }
.status-badge.active { border-color: rgba(76, 175, 80, 0.5); color: #81c784; background-color: rgba(76, 175, 80, 0.1); }
.status-badge.active .status-dot { background-color: var(--primary-color); box-shadow: 0 0 8px var(--primary-color); animation: pulse-green 2s infinite; }
.status-badge.empty { border-color: rgba(255, 77, 77, 0.5); color: #ff8a80; background-color: rgba(255, 77, 77, 0.1); }
.status-badge.empty .status-dot { background-color: var(--error-color); box-shadow: 0 0 8px var(--error-color); animation: pulse-red 2s infinite; }

/* ================== GRID FORMULÁŘ (Objednávka) ================== */
.form-wrapper { text-align: left; background: rgba(0,0,0,0.2); padding: clamp(20px, 5vw, 30px); border-radius: 12px; margin-top: 25px; border: 1px solid rgba(255,255,255,0.05); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }

/* CSS Grid - na PC vedle sebe, viz média pod tím */
.input-row { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.input-row .input-group { margin-bottom: 0; }

.price-summary { background: rgba(0,0,0,0.4); padding: 20px; border-radius: 8px; text-align: center; font-size: clamp(14px, 4vw, 16px); margin-bottom: 25px; border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.price-summary span { color: var(--primary-color); font-size: clamp(24px, 6vw, 32px); font-weight: bold; }
.form-disclaimer { font-size: 12px; margin-top: 25px; color: #666; text-align: center; line-height: 1.5; }

/* Animace */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(255, 77, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); } }

/* ================== MEDIA QUERIES (Mobilní telefony) ================== */
@media (max-width: 600px) {
    /* Formátování políček nad sebou pro malé displeje */
    .input-row { grid-template-columns: 1fr; gap: 15px; }
    .price-summary { flex-direction: row; gap: 15px; justify-content: space-between; padding: 15px; }
    .price-summary span { font-size: 22px; }
}
/* ================== FOOTER ================== */
.site-footer {
    margin-top: clamp(20px, 4vw, 30px);
    text-align: center;
    font-size: clamp(12px, 3vw, 13px);
    color: #777;
    width: 100%;
    max-width: 600px;
}
.site-footer p { margin: 0; font-size: inherit; color: inherit; }
.site-footer a { color: #aaa; text-decoration: none; transition: color var(--transition-speed); font-weight: bold; }
.site-footer a:hover { color: var(--primary-color); text-decoration: underline; }

/* ================== COOKIE BANNER ================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    color: #ccc;
    padding: clamp(10px, 3vw, 15px) clamp(15px, 5vw, 30px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    border-top: 1px solid #333;
    font-size: clamp(12px, 3vw, 14px);
    box-sizing: border-box;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
    animation: slideUp 0.5s ease;
}
.cookie-banner a { color: var(--primary-color); font-weight: bold; text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.btn-cookie {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: auto; /* Přepíše width: 100% z globálních tlačítek */
    font-size: 14px;
    box-shadow: none;
    white-space: nowrap;
}
.btn-cookie:hover { background: var(--primary-hover); transform: none; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; text-align: center; gap: 10px; }
    .btn-cookie { width: 100%; }
}
/* ================== GUARANTEES GRID (Garance kvality) ================== */
.guarantees-grid {
    display: grid;
    /* Automaticky vytvoří sloupce; na PC 2 vedle sebe, na úzkém mobilu nad sebou */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.guarantee-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(12px, 3.5vw, 14px);
    color: #cccccc;
    font-weight: 600;
    transition: transform var(--transition-speed), background var(--transition-speed);
}

.guarantee-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.guarantee-item .icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Zvýraznění Metacritic boxu a roztažení na celou šířku */
.guarantee-item.highlight {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #81c784;
    grid-column: 1 / -1; /* <-- TOTO JE TEN KOUZELNÝ ŘÁDEK */
}