/* ==========================================================================
   1. SPOLEČNÉ PROMĚNNÉ A ZÁKLADNÍ NASTAVENÍ
   ========================================================================== */
:root {
    --primary-color: Aqua;
    --primary-hover: #00cccc;
    --bg-dark: #1c1e24;
    --bg-card: #2e2f31;
    --text-white: #fff;
    --text-gray: #ccc;
    --accent-red: #f00;
    --accent-red-hover: #cc0000;
}

/* --- VLASTNÍ SCROLLBAR --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* --- BARVA OZNAČENÉHO TEXTU --- */
::selection {
    background-color: var(--primary-color);
    color: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: "IBM Plex Sans", sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    animation: fadeIn 0.8s ease-in-out; /* Plynulé zobrazení stránky */
}

/* ==========================================================================
   2. TYPOGRAFIE A OBECNÉ TŘÍDY
   ========================================================================== */
.hlavni-nadpis {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
    width: 100%;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   3. NAVIGACE A HLAVIČKA
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: rgba(30, 31, 36, 0.9);
    height: 5rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.logo { 
    height: 150px; 
    width: auto;
    margin-top: 15px;
    margin-left: 15px;
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
}

nav ul li a {
    text-decoration: none;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

nav ul li a:hover { 
    color: var(--primary-color); 
}

/* Hamburger menu tlačítko (pro mobilní verzi - zapíná se v query.css) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

/* ==========================================================================
   4. TLAČÍTKA
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-detail {
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary { 
    padding: 15px 30px;
    background: var(--primary-color); 
    color: #111; 
}

.btn-primary:hover { 
    background: var(--primary-hover); 
    transform: translateY(-3px); 
}

.btn-secondary { 
    padding: 15px 30px;
    border: 2px solid white; 
    color: white; 
}

.btn-secondary:hover { 
    background: white; 
    color: #111; 
}

.btn-detail {
    padding: 10px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-detail:hover { 
    background: var(--primary-color); 
    color: #111; 
}

/* ==========================================================================
   5. SEKCE - HERO (Úvodní obrazovka)
   ========================================================================== */
.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(35%);
    z-index: -1;
    user-select: none; /* Zakáže označení obrázku */
    pointer-events: none; /* Zakáže tahání a klikání na obrázek */
}

.hero-content {
    z-index: 10;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: 15px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* ==========================================================================
   6. SEKCE - KARTY (Služby, FAQ, atd.)
   ========================================================================== */
.sluzby { 
    text-align: center; 
    padding-bottom: 100px; 
}

.sluzby h2 { 
    font-size: 2.5rem; 
    margin-bottom: 50px; 
}

.sluzby-container, .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.sluzba-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.sluzba-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary-color); 
}

.sluzba-card i { 
    color: var(--primary-color); 
    font-size: 3rem; 
    margin-bottom: 20px; 
}

.faq-kontakt {
    margin-top: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   7. SEKCE - O NÁS A HISTORIE (Cik-Cak design)
   ========================================================================== */
.o-nas-container { 
    display: flex; 
    gap: 50px; 
    align-items: center; 
    flex-wrap: wrap; 
    margin-bottom: 50px;
}

.o-nas-text { 
    flex: 1; 
    min-width: 300px; 
    background: var(--bg-card); 
    padding: 40px; 
    border-radius: 15px; 
    border-left: 3px solid var(--primary-color);
    border-top: 3px solid var(--primary-color);
}

.o-nas-text h2 { 
    color: var(--primary-color); 
    margin-bottom: 15px; 
}

.o-nas-images { 
    flex: 1; 
    min-width: 300px; 
}

.o-nas-images img { 
    width: 100%; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

/* Cik-Cak převrácení */
.o-nas-container.reverse { 
    flex-direction: row-reverse; 
}

.o-nas-container.reverse .o-nas-text {
    border-left: none;
    border-top: none;
    border-right: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.o-nas-outro {
    margin: 20px auto 0;
    max-width: 100%;
    text-align: center;
    border-left: 3px solid var(--primary-color);
    border-top: 3px solid var(--primary-color);
    border-right: none;
    border-bottom: none;
}

/* ==========================================================================
   8. KATALOG MODELŮ & KARTY AUT
   ========================================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
    margin: 40px auto;
}

.card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); 
}

.card-img-container { 
    height: 200px; 
    width: 100%; 
    overflow: hidden; 
}

.card-img-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.card .info { 
    padding: 20px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.card .info h3 { 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
    color: var(--primary-color); 
}

.car-badge { 
    background: #444; 
    padding: 3px 10px; 
    border-radius: 5px; 
    font-size: 0.8rem; 
    align-self: flex-start; 
    margin-bottom: 15px; 
}

.car-specs { 
    display: flex; 
    justify-content: space-between; 
    color: var(--text-gray); 
    margin-bottom: 20px; 
    font-size: 0.9rem; 
}

/* ==========================================================================
   9. FILTRY A HLEDÁNÍ
   ========================================================================== */
.filter-bar {
    background: #25262b;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.filter-form {
    display: flex; 
    align-items: flex-end; 
    gap: 20px; 
    flex-wrap: wrap; 
    justify-content: center;
}

.filter-group { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.filter-group label { 
    font-size: 0.85rem; 
    color: var(--primary-color); 
    font-weight: bold; 
    text-transform: uppercase; 
}

.input-group input:not([type="radio"]), 
.input-group select, 
.input-group textarea,
.filter-group input,
.filter-group select {
    padding: 12px 15px;
    background: #16171a; 
    border: 1px solid #444;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    width: 100%;
    display: block;
}

.input-group input:not([type="radio"]):focus, 
.input-group select:focus, 
.input-group textarea:focus,
.filter-group input:focus, 
.filter-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    background: #1c1e22;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

.btn-filter {
    background: var(--primary-color);
    color: #111;
    border: none;
    padding: 11px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px); 
}

.btn-clear {
    color: #00ffff !important; 
    text-decoration: underline;
    font-size: 0.95rem;
    padding-bottom: 10px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.btn-clear:hover { 
    opacity: 1; 
    color: white !important; 
}

.no-results {
    grid-column: 1 / -1; 
    text-align: center; 
    padding: 50px;
}

.no-results i {
    color: #444; 
    margin-bottom: 20px;
}

.no-results p {
    font-size: 1.2rem; 
    color: #aaa;
}

/* ==========================================================================
   10. ŽEBŘÍČEK OBLÍBENOSTI
   ========================================================================== */
.zebricek-container {
    max-width: 800px; 
    margin: 0 auto;
}

.gold-icon {
    color: gold;
}

.zebricek-container .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    margin-bottom: 20px;
    gap: 20px;
}

.zebricek-container .rank {
    font-size: 2rem; 
    font-weight: bold; 
    min-width: 50px; 
    text-align: center;
}

.zebricek-container img {
    width: 150px; 
    height: 90px; 
    object-fit: cover; 
    border-radius: 10px;
}

.zebricek-info {
    flex-grow: 1;
}

.zebricek-info h3 {
    margin: 0; 
    color: var(--primary-color);
}

.zebricek-info p {
    margin: 5px 0 0; 
    color: #aaa;
}

.btn-small {
    padding: 8px 15px !important;
}

.empty-state {
    text-align: center; 
    color: #aaa;
    font-size: 1.1rem;
    padding: 40px 0;
}

/* ==========================================================================
   11. FORMULÁŘE (Login, Register, Dotazník)
   ========================================================================== */
.form-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 120px 20px 60px; 
    min-height: calc(100vh - 100px); 
    width: 100%;
}

.form-container {
    background: linear-gradient(145deg, #2e2f31, #1c1e24);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    text-align: center;
}

.input-group { 
    margin-bottom: 20px; 
    text-align: left; 
    width: 100%; 
}

.input-group label { 
    display: block; 
    margin-bottom: 8px; 
    color: var(--text-gray); 
}

.input-group textarea { 
    resize: vertical; 
    min-height: 120px; 
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: #111;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn-submit:hover { 
    background: var(--primary-hover); 
}

.form-footer { 
    margin-top: 20px; 
    color: #aaa; 
    font-size: 0.95rem; 
}

.form-footer a { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: bold; 
}

.form-footer a:hover { 
    text-decoration: underline; 
}

/* Radio buttony v dotazníku */
.radio-group { 
    display: flex; 
    justify-content: space-around;
    align-items: center;
    background: #16171a; 
    padding: 15px; 
    border-radius: 10px; 
    border: 1px solid #444; 
    margin-top: 5px; 
}

.radio-group label { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    margin-bottom: 0 !important; 
    color: #fff;
}

.radio-group input[type="radio"] { 
    width: 18px !important; 
    height: 18px !important; 
    min-width: unset; 
    margin: 0; 
    cursor: pointer; 
    accent-color: var(--primary-color); 
}

/* ==========================================================================
   12. PROFIL UŽIVATELE A ALERTY
   ========================================================================== */
.profil-header { 
    background: var(--bg-card); 
    padding: 40px; 
    border-radius: 20px; 
    text-align: center; 
    margin-bottom: 30px; 
    border: 1px solid rgba(0, 255, 255, 0.1); 
}

.profil-header h1 { 
    color: var(--primary-color); 
    margin-bottom: 10px; 
}

.profil-grid { 
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 30px; 
}

.profil-info-sekce { 
    background: var(--bg-card); 
    padding: 30px; 
    border-radius: 20px; 
}

.garaz-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
}

.garaz-karta img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 10px; 
}

.login-prompt { 
    text-align: center; 
    padding: 60px 20px; 
    background: var(--bg-card); 
    border-radius: 20px; 
}

.alert-box { 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    font-weight: bold; 
    text-align: center; 
}

.alert-success { 
    background: rgba(0, 255, 0, 0.1); 
    border: 1px solid #00ff00; 
    color: #00ff00; 
}

.alert-error { 
    background: rgba(255, 0, 0, 0.1); 
    border: 1px solid #ff4444; 
    color: #ff4444; 
}

/* ==========================================================================
   13. PATIČKA
   ========================================================================== */
footer { 
    background: #0f1013; 
    padding: 40px; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}

/* ==========================================================================
   14. ANIMACE A EFEKTY (Spolupracuje s animations.js)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.sluzba-card:nth-child(2) { transition-delay: 0.2s; }
.sluzba-card:nth-child(3) { transition-delay: 0.4s; }

/* ==========================================================================
   SPECIFICKÉ STYLY PRO DOTAZNÍK (A hlášku o přihlášení)
   ========================================================================== */
.dotaznik-container {
    max-width: 600px;
}

.lock-icon {
    color: #555;
    margin-bottom: 20px;
    display: block;
}

.lock-title {
    margin-bottom: 10px;
}

.lock-text {
    margin-bottom: 25px;
}

/* --- Specifické prvky profilu --- */
.avatar-icon {
    color: var(--primary-color); 
    margin-bottom: 15px;
}

.sekce-nadpis {
    color: var(--primary-color); 
    margin-bottom: 20px;
}

.profil-divider {
    border: 0; 
    border-top: 1px solid #444; 
    margin: 25px 0;
}

.podnadpis {
    margin-bottom: 15px;
}

/* --- Preference a Citát --- */
.preference-list {
    list-style: none; 
    color: #ccc; 
    margin-bottom: 20px; 
    line-height: 1.8;
}

.badge {
    color: white; 
    background: #444; 
    padding: 2px 8px; 
    border-radius: 4px;
}

.citat-box {
    margin-bottom: 20px;
}

.quote-icon {
    color: #555;
}

.citat-box p {
    padding-top: 5px;
}

/* --- Tlačítka zmenšená pro profil --- */
.btn-mala {
    display: inline-block; 
    padding: 8px 20px !important;
}

.btn-stredni {
    display: inline-block; 
    padding: 10px 25px !important; 
    font-size: 1rem;
}

/* --- Úpravy garážní karty uvnitř profilu --- */
.garaz-karta {
    background: #1c1c1c !important; 
}

.garaz-karta .card-img-container {
    height: 140px; 
}

.garaz-karta .info {
    padding: 15px; 
    text-align: center;
}

.garaz-karta h4 {
    margin-bottom: 5px;
}

.hp-text {
    font-size: 0.8rem; 
    color: #aaa; 
    margin-bottom: 10px;
}

/* --- Prázdný stav garáže --- */
.prazdna-garaz {
    padding: 60px 0;
}

.empty-icon {
    display: block; 
    margin-bottom: 20px; 
    color: #555;
}

.empty-text {
    color: #aaa; 
    margin-bottom: 15px;
}

/* ==========================================================================
   15. DETAIL MODELU
   ========================================================================== */
.detail-main {
    padding-top: 50px; 
}

.back-link {
    color: var(--primary-color); 
    text-decoration: none; 
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: white;
}

.detail-container {
    display: flex; 
    gap: 40px; 
    background: var(--bg-card); 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    flex-wrap: wrap;
}

.detail-obrazek {
    flex: 1; 
    min-width: 300px;
}

.detail-obrazek img {
    width: 100%; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.detail-info {
    flex: 1; 
    min-width: 300px;
}

.detail-info h1 {
    text-align: left; 
    margin-bottom: 10px; 
    font-size: 2.5rem;
}

.detail-tags {
    color: #aaa; 
    margin-bottom: 25px; 
    font-size: 1.1rem; 
    border-bottom: 1px solid #444; 
    padding-bottom: 15px;
}

.detail-info h3 {
    margin-bottom: 15px; 
    color: var(--primary-color); 
    font-size: 1.3rem;
}

.detail-specs {
    list-style: none; 
    margin-bottom: 30px; 
    color: #ccc; 
    font-size: 1.1rem; 
    line-height: 1.8;
}

.detail-popis {
    line-height: 1.7; 
    margin-bottom: 40px; 
    color: #ddd;
}

/* --- Tlačítka oblíbených a spodní box --- */
.akce-box {
    background: #1c1c1c; 
    padding: 20px; 
    border-radius: 10px; 
    text-align: center;
}

.btn-oblibene {
    padding: 12px 25px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 1.1rem; 
    font-weight: bold; 
    transition: all 0.3s ease;
}

.btn-oblibene.pridat {
    background: #e91e63; 
    color: white; 
    border: 2px solid #e91e63;
}

.btn-oblibene.pridat:hover {
    background: transparent; 
    color: #e91e63;
}

.btn-oblibene.odebrat {
    background: transparent; 
    color: #ff4444; 
    border: 2px solid #ff4444;
}

.btn-oblibene.odebrat:hover {
    background: #ff4444; 
    color: white;
}

.login-hint {
    color: #aaa; 
    margin: 0;
}

.login-hint a {
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: bold;
}

.login-hint a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   16. VIDEO V SEKCI O PROJEKTU
   ========================================================================== */
.o-nas-images video {
    width: 100%;           
    max-width: 750px;
    height: auto;          
    border-radius: 12px;   
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    display: block;
    margin-left: auto;   
}