
/* --- PRÉMIOVÝ KOMPAKTNÍ DESIGN PRO SUPERKO --- */
.superko-astro-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 25px;
    box-sizing: border-box;
    font-family: inherit;

    background:
        radial-gradient(
            ellipse at top,
            rgba(255,255,255,.72) 0%,
            rgba(255,255,255,.20) 30%,
            rgba(255,255,255,0) 60%
        ),
        linear-gradient(
            180deg,
            #ece7de 0%,
            #e3ddd3 100%
        );

    border: 1px solid rgba(133,108,71,.14);
    border-radius: 10px;

    box-shadow:
        0 18px 45px rgba(139,0,0,.08),
        0 6px 18px rgba(0,0,0,.05),
        inset 0 1px 0 rgba(255,255,255,.75);
}
.mystic-title {
    font-family: 'Cinzel', serif !important; 
    letter-spacing: 5px !important; 
    color: #8a0832 !important;
    position: relative;
    padding-bottom: 30px;
    
    text-align: center;
}

/* Ornament s linkou */
.mystic-title::after {
    content: "✦";
    display: block;
    width: 100%;
    margin-top: 15px;
    color: #8a0832 !important;
    font-size: 20px;
    line-height: 1px; /* Aby se linka netlačila */
    
    /* Vytvoření čáry pod hvězdičkou */
    border-top: 1px solid #d4af37;
    position: relative;
    top: 15px;
}
.superko-astro-container * { box-sizing: border-box; }
.superko-astro-container legend { color: #800000; font-family: 'Cinzel', serif, Georgia, Times, serif; font-size: 1.5rem; font-weight: bold; text-align: center; border-bottom: 2px solid #C5A059; padding-bottom: 12px; margin-bottom: 25px; width: 100%; }
.sk-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 18px; }
@media (min-width: 600px) { .sk-grid-2 { grid-template-columns: 1fr 1fr; } }
.sk-col { display: flex; flex-direction: column; }
.superko-form-group { text-align: left; }
.superko-form-group label { font-weight: 600; color: #333; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.superko-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.superko-input { width: 100%; padding: 10px 12px; border: 1px solid #ced4da; border-radius: 6px; background-color: #faf9f7; color: #495057; font-size: 14px; transition: all 0.2s ease; height: 40px; }
.superko-input:focus { border-color: #800000; background-color: #ffffff; box-shadow: 0 0 0 3px rgba(128,0,0,0.1); outline: none; }
.sk-input-small { width: 65px; text-align: center; padding: 0 5px; }
.superko-btn-submit { background: linear-gradient(135deg, #800000 0%, #600000 100%); color: #ffffff; border: none; padding: 14px 28px; font-size: 16px; font-weight: bold; border-radius: 6px; cursor: pointer; width: 100%; transition: transform 0.2s, box-shadow 0.2s; text-transform: uppercase; letter-spacing: 1px; }
.superko-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(128,0,0,0.2); }
.sk-btn { background: #800000; color: #fff; border: none; padding: 10px 15px; font-size: 14px; font-weight: bold; border-radius: 6px; cursor: pointer; height: 40px; }
.sk-box-gray { background: #faf9f7; padding: 15px; border-radius: 8px; border: 1px solid #e8e3dc; }
.atlas-result-item { padding: 10px; border-bottom: 1px solid #e8e3dc; cursor: pointer; transition: 0.2s; border-radius: 4px; display: flex; justify-content: space-between; align-items: center;}
.atlas-result-item:hover { background: #fdfaf4; color: #800000; }
.sk-badge-success { background: #e6f4ea; color: #146c2e; padding: 12px 15px; border-radius: 6px; font-size: 13px; border: 1px solid #c3e6cb; margin-top:10px; margin-bottom: 20px; }
.sk-mode-toggle { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid #e8e3dc; padding-bottom: 15px; }
.sk-mode-toggle label { font-weight: bold; cursor: pointer; color: #800000; display: flex; align-items: center; gap: 8px;}


.superko-btn-submit:hover,
.sk-btn:hover {
    background: linear-gradient(135deg, #922020 0%, #721515 100%) !important;
    color: #fff !important;
}
/* --- NOVÉ TŘÍDY NÁHRADOU ZA INLINE STYLY --- */
.sk-error-title { color: #A52A2A; }
.sk-d-none { display: none; }
.sk-chart-container { margin: 20px 0; }
.sk-chart-img { max-width: 640px; width: 100%; height: auto; }
.sk-grid-img { max-width: 705px; width: 100%; height: auto; }
.sk-form-intro { color: #800000; font-size: 13px; text-align: center; margin-bottom: 25px; }
.sk-mb-25 { margin-bottom: 25px; }
.sk-row-pad { flex-wrap: nowrap; padding: 10px; }
.sk-cb-label { font-weight: normal; margin: 0 0 0 auto; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.sk-cb-scale { transform: scale(1.2); }
.sk-section-title { color: #800000; font-family: 'Cinzel', serif; font-size: 1.2rem; margin-top: 30px; margin-bottom: 15px; text-align: left; }
.sk-mb-20 { margin-bottom: 20px; }
.sk-label-accent { color: #800000; font-size: 14px; }
.sk-mb-15 { margin-bottom: 15px; }
.sk-sel-pad { padding: 0 2px; }
.sk-divider { color: #ced4da; margin: 0 5px; }
.sk-tz-sel { max-width: 300px; }
.sk-success-text { color: #146c2e; }
.sk-loc-text { color: #333; font-weight: normal; }
.sk-nowrap { flex-wrap: nowrap; }
.sk-flex-1 { flex: 1; }
.sk-atlas-spinner { text-align: center; margin-top: 8px; font-size: 12px; color: #666; }
.sk-search-results { max-height: 250px; overflow-y: auto; margin-top: 10px; }
.sk-mt-35 { margin-top: 35px; }
.sk-main-spinner { text-align: center; margin-top: 15px; color: #800000; font-weight: bold; }
.sk-error-msg { color: #dc3545; }
.sk-error-msg-bold { color: #dc3545; font-weight: bold; }
.sk-not-found { padding: 10px; }
.sk-result-coords { font-size: 12px; color: #666; }

/* --- CSS PRO TOOLTIPY --- */
.sk-tooltip { 
    position: relative; display: inline-flex; justify-content: center; align-items: center; 
    width: 16px; height: 16px; background-color: #C5A059; color: #fff; 
    border-radius: 50%; font-size: 11px; font-weight: bold; cursor: help; margin-left: 5px;
}
.sk-tooltip-accent { background-color: #800000; }

.sk-tooltip .sk-tooltiptext {
    visibility: hidden; width: 260px; background-color: #2c2c2c; color: #fff; text-align: left;
    border-radius: 6px; padding: 12px; position: absolute; z-index: 999; bottom: 135%; left: 50%;
    transform: translateX(-50%); opacity: 0; transition: opacity 0.2s; font-size: 12px; font-weight: normal;
    line-height: 1.4; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.sk-tooltip .sk-tooltiptext::after { 
    content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; 
    border-width: 5px; border-style: solid; border-color: #2c2c2c transparent transparent transparent; 
}

/* Zjednodušená pravidla pro zobrazení na PC i mobilu */
.sk-tooltip:hover .sk-tooltiptext,
.sk-tooltip:focus-within .sk-tooltiptext { 
    visibility: visible; 
    opacity: 1; 
}



#astroresult p, 
#astroresult td, 
#astroresult li, 
#astroresult div {
    line-height: 1.7;
}

#astroresult p {
    margin-bottom: 1.2em;
}


#astroresult .sk-uvod-popis {
    color: #333333; 
    line-height: 1.7;
    margin: 3em 0; 
    padding: 35px 45px; 
    position: relative;
    text-align: left; /* ZMĚNĚNO: Vráceno na klasické zarovnání doleva, které zruší ty velké mezery */
    
    background: linear-gradient(to bottom, #fdfbf7, #fffcf9);
    border-top: 1px solid #d4af37;
    border-bottom: 1px solid #d4af37;
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.04); 
}

/* Mystický středový ornament nahoře a dole */
#astroresult .sk-uvod-popis::before,
#astroresult .sk-uvod-popis::after {
    content: "✦"; /* Elegantní čtyřcípá hvězda / symbol */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #8b0000; /* Temně červená pro mystický kontrast */
    font-size: 18px;
    background: #fdfbf7; /* Stejná barva jako pozadí, aby skryla zlatou linku přímo pod symbolem */
    padding: 0 20px;
}

#astroresult .sk-uvod-popis::before {
    top: -14px; /* Posunutí přesně na horní zlatou linku */
}

#astroresult .sk-uvod-popis::after {
    bottom: -14px; /* Posunutí přesně na spodní zlatou linku */
}


@media (max-width: 768px) {
    /* 1. Zrušíme zákaz zalamování pro kontejner */
    .sk-nowrap {
        flex-wrap: wrap !important;
    }
    
    /* 2. Zadávacímu políčku dáme celou šířku, čímž tlačítko přirozeně vytlačíme dolů */
    #search_box {
        width: 100% !important;
        flex: none !important; /* Vypne původní roztahování vedle tlačítka */
    }

    /* 3. Samotné tlačítko dostane luxusní mobilní formát */
    #search_button {
        width: 100% !important;
        white-space: normal !important; /* Text "Hledat v atlasu" se nikdy neustřihne */
        min-height: 48px; /* Pohodlné pro kliknutí prstem */
        margin-top: 10px !important; /* Odstup od políčka nad ním */
    }
}

    /* Agresivní prolomení Joomly pro mobily - plná šířka od kraje ke kraji */
    @media (max-width: 768px) {
       .superko-astro-container { 
          width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        margin-left: 50% !important;
        transform: translateX(-50%) !important;

        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
            
        }
    }





/* --- Styl pro podnadpisy aspektů a planet --- */
h4.astrolog-podnadpis {
   font-family: "Cinzel", serif !important;
   color: #1a1919 !important;
   text-align: center;
  
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 8px;
   
    position: relative;
    display: inline-block; /* Aby linka nebyla přes celou šířku, ale jen pod textem */
    width: 100%;
}


.rep-aspekt-blok { 
    margin-bottom: 35px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #e0d5c1; /* Jemnější, teplejší linka */
}

.rep-aspekt-nadpis { 
    margin: 0 0 5px 0; 
    font-family: "Cinzel", serif !important; 
    color: #8b1a1a; /* Temně červená pro nadpis aspektu */
}

.rep-aspekt-metrika { 
    margin-bottom: 12px; 
    font-size: 0.95rem; 
}

/* Skóre v bronzovém odstínu, aby nepůsobilo rušivě, ale přitom ladilo */
.rep-metrika-skore { 
    color: #8c6a2d; 
    font-style: italic; 
    font-weight: 300;
}

/* Název metriky v elegantní tmavě šedo-hnědé */
.rep-metrika-nazev { 
    color: #4a3728; 
    font-weight: 600; 
}

.rep-aspekt-text { 
    line-height: 1.6; 
    color: #333; 
}




/* --- 1. GLOBÁLNÍ STYLY PRO VŠECHNY ASTRO TABULKY --- */
/* Zajištění, že se panel harmoniky na mobilu chová jako rolovací kontejner pro tabulku */
.panel {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* Fix pro samotnou tabulku, aby držela strukturu a texty */
table.astrologie {
    width: 100%;
    min-width: 320px; 
    border-collapse: collapse;
}

/* Hlavička tabulky - texty zarovnané striktně dolů */
table.astrologie td.astroplanet {
    vertical-align: bottom !important;
    white-space: nowrap;
    padding-bottom: 8px;
}

/* Běžné buňky s daty - zarovnání nahoru a jemný spacing */
table.astrologie td {
    vertical-align: top !important; 
    padding: 6px 4px !important; 
}

/* ZÁKAZ ZALAMOVÁNÍ PRO ZEMĚPISNOU DÉLKU (Prostřední sloupec) */
table.astrologie td.astrolongitude {
    white-space: nowrap !important; 
}

/* --- 2. FLEXBOX PRO TLAČÍTKO HARMONIKY --- */
.accordion {
    display: flex !important;
    justify-content: space-between; 
    align-items: center; 
    text-align: left; 
}

.accordion::after {
    content: "\002B";
    color: #ffffff;
    font-weight: bold;
    font-size: 20px;
    float: none !important; 
    margin-left: 15px; 
    display: inline-block;
    line-height: 1; 
}

/* --- 3. SPECIÁLNÍ STYLY POUZE PRO PRVNÍ TABULKU (Planety u partnerů) --- */

/* Vycentrování domů na střed (3. sloupec pro Osobu 1 a 6. sloupec pro Osobu 2) */
table.sk-planety-tabulka tr td:nth-child(3),
table.sk-planety-tabulka tr td:nth-child(6) {
    text-align: center !important;
}

/* Jemné a elegantní rozdělení obou osob (Mezi 3. a 4. sloupcem) */
/* Osoba 1: Přidáme prostor vpravo a jemnou zlatavou linku */
table.sk-planety-tabulka tr td:nth-child(3) {
    padding-right: 15px !important;
    border-right: 1px solid rgba(204, 164, 59, 0.4) !important;
}

/* Osoba 2: Přidáme prostor vlevo, aby text nezačínal hned na lince */
table.sk-planety-tabulka tr td:nth-child(4) {
    padding-left: 15px !important;
}
