/* --- AIdivky.cz - BOMBASTIC STYLE (FIXED MENU) --- */
:root {
    --bg-dark: #050507;
    --bg-glass: rgba(20, 20, 30, 0.6);
    --bg-glass-mobile: rgba(10, 10, 15, 0.95);
    --border-glass: rgba(255, 255, 255, 0.08);
    --accent: #ff3366;
    --accent-glow: rgba(255, 51, 102, 0.6);
    --gold: #ffd700;
    --text-main: #ffffff;
    --text-muted: #b3b3cc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: radial-gradient(circle at center, #1a1a2e, #000000, #16000a);
    background-size: 200% 200%;
    animation: bg-pan 15s ease infinite;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- ANIMACE --- */
@keyframes bg-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes zoom-in-slow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

a { text-decoration: none; color: inherit; }

/* --- SIDEBAR (OPRAVENO) --- */
.sidebar {
    width: 260px;
    background-color: var(--bg-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 100;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    overflow-y: auto; /* TOTO OPRAVUJE ROZPADLÉ MENU - Povolí scrollování */
}

/* Styl scrollování pro sidebar */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.sidebar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.6);
    flex-shrink: 0; /* Logo se nezmenší */
}

.logo span { color: var(--accent); }
.logo i { font-size: 20px; color: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); }

.menu-category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: 700;
    opacity: 0.8;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    font-weight: 500;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 51, 102, 0.2), transparent);
    color: var(--text-main);
    border-left: 3px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.nav-item i { width: 25px; margin-right: 10px; text-align: center; }

.credits-box {
    margin-top: auto; /* Tlačí box dolů */
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border-glass);
    text-align: center;
    flex-shrink: 0; /* Box se nesmí smrsknout */
}

.credits-count { 
    font-family: 'Rajdhani'; 
    font-size: 28px; 
    font-weight: 700; 
    color: var(--gold); 
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6); 
    margin: 5px 0 15px 0;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    padding: 30px;
    position: relative;
    width: 100%;
    overflow-y: auto;
    height: 100vh;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.search-bar {
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 10px 25px;
    flex: 1;
    max-width: 500px;
    color: white;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}
.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}
.search-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-family: 'Inter';
    padding: 5px;
    font-size: 15px;
}

/* --- TLAČÍTKA --- */
.create-btn {
    background: linear-gradient(45deg, var(--accent), #d63030, var(--accent));
    background-size: 200% 200%;
    animation: bg-pan 3s ease infinite;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 0 25px var(--accent-glow);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    font-family: 'Rajdhani';
    text-decoration: none;
    white-space: nowrap;
}
.create-btn:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 40px var(--accent-glow);
}

.action-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
    font-family: 'Rajdhani';
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}
.action-btn:hover { background: white; color: black; }
.action-btn.primary { background: var(--accent); border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.action-btn.primary:hover { background: #ff5c85; transform: translateY(-2px); }

/* --- HERO BANNER (PC) --- */
.hero-banner {
    width: 100%;
    height: 380px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid var(--border-glass);
    animation: float 6s ease-in-out infinite;
}

/* Pohyb pozadí v Hero - JEN PRO PC */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: inherit;
    background-size: 110%;
    background-repeat: no-repeat;
    animation: zoom-in-slow 20s linear infinite alternate;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #050507 5%, rgba(5,5,7,0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    z-index: 2;
}

.hero-tag { 
    background: var(--gold); 
    color: black; 
    padding: 6px 14px; 
    border-radius: 6px; 
    font-size: 13px; 
    font-weight: 800; 
    width: fit-content; 
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: float 4s ease-in-out infinite;
}

.hero-title { 
    font-family: 'Rajdhani'; 
    font-size: 64px; 
    font-weight: 800; 
    line-height: 0.9; 
    margin-bottom: 20px; 
    text-shadow: 0 5px 30px rgba(0,0,0,0.8);
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- FILTERS --- */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    align-items: center;
}
.filters::-webkit-scrollbar { height: 0px; }

.filter-tag {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}
.filter-tag:hover, .filter-tag.active {
    background: white;
    color: black;
    border-color: white;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* --- GRID SYSTEM --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding-bottom: 50px;
}

.card {
    background-color: var(--bg-glass);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(255, 51, 102, 0.2);
    z-index: 10;
}

.card-image-container {
    height: 360px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card:hover .card-image { transform: scale(1.15); }

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding-bottom: 30px;
    gap: 15px;
}
.card:hover .card-overlay { opacity: 1; }

.card-info { padding: 18px; background: rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.05); }
.card-title { font-weight: 700; margin-bottom: 6px; font-size: 19px; font-family: 'Rajdhani'; display: flex; justify-content: space-between; color: white; }
.card-meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }
.model-badge { background: rgba(255,51,102,0.15); color: var(--accent); padding: 4px 8px; border-radius: 6px; font-size: 10px; text-transform: uppercase; font-weight: 700; border: 1px solid rgba(255,51,102,0.3); }

/* --- PLANS --- */
.plans-preview-grid, .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    padding-bottom: 30px;
}
.plan-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}
.plan-card:hover { transform: translateY(-10px); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.plan-card.popular {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(255, 51, 102, 0.05) 0%, rgba(20, 20, 25, 0.8) 100%);
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.15);
}
.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: white; padding: 5px 15px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    box-shadow: 0 0 15px var(--accent-glow);
}
.plan-name { font-family: 'Rajdhani'; font-size: 32px; font-weight: 700; margin-bottom: 10px; color: white; }
.plan-price { font-family: 'Rajdhani'; font-size: 48px; font-weight: 700; color: var(--accent); margin: 20px 0; }
.plan-price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }

/* --- FORMULÁŘE --- */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.auth-box { width: 100%; max-width: 450px; background: var(--bg-glass); backdrop-filter: blur(25px); border: 1px solid var(--border-glass); padding: 40px; border-radius: 24px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.auth-title { font-family: 'Rajdhani'; font-size: 32px; font-weight: 700; margin-bottom: 10px; color: white; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; color: var(--text-muted); font-size: 12px; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.auth-input { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-glass); padding: 15px; border-radius: 12px; color: white; font-family: 'Inter'; font-size: 15px; outline: none; transition: 0.3s; }
.auth-input:focus { border-color: var(--accent); background: rgba(0, 0, 0, 0.5); }
.auth-footer { margin-top: 25px; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border-glass); padding-top: 20px; }
.auth-link { color: var(--accent); font-weight: 600; }

.banner-wrapper { display: flex; justify-content: center; width: 100%; margin: 40px 0; }
.banner-wrapper img { max-width: 100%; height: auto; border-radius: 10px; }

/* --- RESPONSIVITA (FIXED MOBILE MENU) --- */
@media (max-width: 900px) {
    body { height: auto; display: block; background-attachment: scroll; }
    
    .sidebar {
        position: fixed;
        left: -280px; top: 0; height: 100vh; width: 280px;
        background-color: var(--bg-glass-mobile);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto; /* DŮLEŽITÉ I PRO MOBIL */
    }
    .sidebar.open { left: 0; }
    .mobile-menu-btn { display: block; }
    
    .main-content { padding: 15px; width: 100%; overflow-y: visible; height: auto; }
    
    /* Hero Banner FIX pro Mobily */
    .hero-banner {
        height: 450px; 
        margin-bottom: 30px;
        border-radius: 15px;
    }
    
    /* VYPNOUT ANIMACI NA MOBILU (ODSTRANÍ DVOJITÝ OBRÁZEK) */
    .hero-banner::after {
        display: none; 
    }
    
    .hero-overlay {
        background: linear-gradient(to top, #050507 10%, rgba(5,5,7,0.9) 60%, transparent 100%);
        padding: 25px;
        justify-content: flex-end; 
        align-items: flex-start;
    }
    
    .hero-tag { font-size: 11px; padding: 5px 10px; margin-bottom: 10px; }
    .hero-title { font-size: 38px; line-height: 1.1; margin-bottom: 15px; }
    .hero-overlay p { font-size: 14px !important; line-height: 1.4 !important; margin-bottom: 20px !important; color: #ccc !important; }
    
    .filters { gap: 10px; margin-bottom: 20px; }
    .filter-tag { padding: 8px 16px; font-size: 13px; }
    
    .grid-container { grid-template-columns: 1fr; gap: 20px; }
    .card-image-container { height: 400px; }
    
    .search-bar { width: auto; flex: 1; }
    .create-btn span { display: none; }
    .create-btn { padding: 12px; width: 45px; height: 45px; justify-content: center; border-radius: 50%; }
}

@media (min-width: 901px) {
    .create-btn span { display: inline; }
}