/* -- SOUBOR: vernostni-program.css -- */

/* =========================================
   1. SEKCE: ŠTÍTEK U LOGA (HLAVIČKA)
   ========================================= */

.site-name a, #logo a, .logo a {
    position: relative !important;
    overflow: visible !important;
    display: inline-block !important;
}

.header-loyalty-badge {
    position: absolute;
    /* --- ZDE SI MŮŽEŠ DOLADIT POZICI --- */
    top: -10px;      
    right: -15px;    
    /* ----------------------------------- */
    
    background-color: #d59f3a; /* Zlatá */
    color: #000000;
    font-family: 'basier-bold', sans-serif;
    font-weight: bold;
    font-size: 9px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 20;
    white-space: nowrap;
    transform: rotate(5deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    pointer-events: none;
}

@media (max-width: 768px) {
    .header-loyalty-badge {
        font-size: 8px;
        top: -8px;
        right: -10px; /* Na mobilu ještě blíže */
    }
}


/* =========================================
   2. SEKCE: KLIENTSKÁ ZÓNA (TABULKA)
   ========================================= */

.loyalty-club-section {
    background: #ffffff;
    /* Odstraněn rámeček pro čistší vzhled */
    border: none;
    padding: 10px 0; 
    margin-bottom: 40px;
    font-family: 'basier', sans-serif;
    margin-top: 20px;
}

.loyalty-club-section h2 {
    text-transform: uppercase;
    font-family: 'basier-bold', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: #000;
    border-bottom: 2px solid #000; /* Linka jen pod nadpisem */
    padding-bottom: 10px;
}

.loyalty-club-section p { margin-bottom: 30px; line-height: 1.6; color: #444; }

.loyalty-table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}

.loyalty-table tr {
    /* Pouze jemná linka mezi řádky */
    border-bottom: 1px solid #eaeaea;
    transition: transform 0.3s ease; 
}

/* Větší padding pro vzdušnost */
.loyalty-table td {
    padding: 20px 10px;
    vertical-align: middle;
}

.loyalty-status-name {
    font-weight: bold;
    font-family: 'basier-bold', sans-serif;
    font-size: 1.1rem; /* Větší písmo */
    line-height: 1.2;
}

/* --- TEXT VEDLE NÁZVU --- */
.loyalty-desc {
    display: none; 
    font-weight: normal;
    font-size: 0.8rem;
    color: #333;
    margin-top: 0;
    font-style: italic;
    margin-left: 15px; /* Větší odsazení */
    opacity: 0;
}

/* Badge v tabulce - defaultně šedý */
.loyalty-badge {
    background: #f4f4f4;
    color: #000;
    padding: 6px 15px; /* Větší tlačítko */
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 20px; /* Kulaté rohy (pill shape) */
    white-space: nowrap;
}


/* --- ANIMACE SWIPE --- */
@keyframes swipeRight {
    0% { background-size: 0% 100%; }
    100% { background-size: 100% 100%; }
}

@keyframes fadeInText {
    to { opacity: 1; }
}

/* --- AKTIVNÍ STAV --- */
.active-user-level {
    background-image: linear-gradient(to right, #d59f3a, #d59f3a);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    
    animation: swipeRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    
    box-shadow: 0 5px 20px rgba(213, 159, 58, 0.15); /* Jemný zlatý stín */
    border-radius: 4px;
    border-bottom: none !important; /* Odstranit linku */
    position: relative;
    z-index: 10;
}

.active-user-level td { border-bottom: none; }

.active-user-level .loyalty-badge {
    background: #000000;
    color: #d59f3a;
}

.active-user-level .loyalty-desc {
    display: inline-block;
    animation: fadeInText 0.5s ease 0.6s forwards;
    color: #000;
}

/* --- RESPONZIVITA --- */
@media (max-width: 600px) {
    .loyalty-table td { font-size: 0.9rem; padding: 15px 5px; }
    .loyalty-badge { padding: 4px 8px; font-size: 0.75rem; }
    
    .active-user-level .loyalty-desc {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

.loyalty-extra-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background: #fafafa; /* Světlejší pozadí */
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.extra-benefit-item { font-size: 0.95rem; line-height: 1.5; color: #444; }
.extra-benefit-item strong { display: block; margin-bottom: 8px; text-transform: uppercase; font-size: 0.8rem; color: #000; letter-spacing: 1px; }