/* ═══════════════════════════════════════════════════════════
   Horoscope Hub – Frontend v4
   Pastelne boje, tamni tekst, čitljivo na svim uređajima
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg:        #fdf9f5;
    --bg2:       #f7f0e8;
    --card:      #ffffff;
    --border:    #e8ddd0;
    --text:      #2a1f14;
    --text2:     #4a3728;
    --muted:     #8a7060;
    --rose:      #c4607e;
    --rose-lt:   #f2c4d0;
    --rose-bg:   #fef0f4;
    --gold:      #b8860b;
    --gold-lt:   #f5d78e;
    --gold-bg:   #fffbf0;
    --purple:    #7b5ea7;
    --purple-lt: #e8e0f5;
    --nav-bg:    #2c1f3e;
    --nav-text:  #f5eef8;
    --r:         14px;
    --shadow:    0 2px 16px rgba(44,31,62,.10);
    --shadow-md: 0 6px 28px rgba(44,31,62,.16);
    --trans:     .2s ease;
}

/* ── Reset GP interference ─────────────────────────────── */
.entry-title, .page-title, .entry-header,
h1.entry-title, .page-header, .wp-block-post-title {
    display: none !important;
}
.site-content, #content, #primary, .content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   HUB – Naslovna
   ═══════════════════════════════════════════════════════════ */

.hh-hub-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 20px 64px;
    font-family: 'Georgia', serif;
    text-align: center;
    background: var(--bg);
}

.hh-hub-hero { margin-bottom: 44px; }

.hh-hub-stars {
    display: block;
    color: var(--rose);
    font-size: 13px;
    letter-spacing: 12px;
    margin-bottom: 20px;
    opacity: .5;
}

.hh-hub-title {
    font-size: clamp(32px, 7vw, 60px);
    font-weight: 400;
    color: var(--text);
    margin: 0 0 12px;
    letter-spacing: 2px;
    line-height: 1.15;
}

.hh-hub-subtitle {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: system-ui, sans-serif;
    margin: 0 0 10px;
}

.hh-hub-tagline {
    color: var(--text2);
    font-size: 17px;
    font-style: italic;
    margin: 0;
    opacity: .8;
}

.hh-hub-separator {
    color: var(--rose);
    font-size: 18px;
    margin: 28px 0 36px;
    display: block;
    opacity: .5;
}

/* ── Jezične karte ─────────────────────────────────────── */

.hh-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 44px;
}

.hh-lang-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 22px;
    border-radius: var(--r);
    text-decoration: none !important;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
    color: var(--text) !important;
    position: relative;
    overflow: hidden;
}

.hh-lang-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rose), var(--gold-lt));
    opacity: 0;
    transition: opacity var(--trans);
}

.hh-lang-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--rose-lt);
    color: var(--text) !important;
    text-decoration: none !important;
}

.hh-lang-card:hover::after { opacity: 1; }

.hh-lang-flag  { font-size: 40px; margin-bottom: 12px; display: block; line-height: 1; }
.hh-lang-name  { font-size: 19px; font-weight: 600; color: var(--text); display: block; margin-bottom: 4px; }
.hh-lang-word  { font-size: 10px; color: var(--rose); letter-spacing: 3px; text-transform: uppercase; font-family: system-ui, sans-serif; font-weight: 600; display: block; margin-bottom: 10px; }
.hh-lang-desc  { font-size: 13px; color: var(--muted); font-style: italic; line-height: 1.55; display: block; margin-bottom: 16px; }

.hh-lang-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--purple);
    transition: all var(--trans);
}
.hh-lang-card:hover .hh-lang-arrow {
    background: var(--rose); border-color: var(--rose); color: #fff; transform: translateX(4px);
}

.hh-hub-signs-preview { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hh-hub-symbol        { font-size: 20px; opacity: .15; color: var(--purple); }

/* ═══════════════════════════════════════════════════════════
   Navigacijska traka
   ═══════════════════════════════════════════════════════════ */

.hh-sign-nav {
    background: var(--nav-bg);
    border-bottom: 2px solid var(--rose);
    box-shadow: 0 2px 12px rgba(44,31,62,.2);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

/* Dva reda: gornji = logo + zastavice, donji = 12 znakova */
.hh-sign-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Gornji red: logo + zastavice */
.hh-nav-top-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    min-height: 54px;
}

/* Donji red: 12 znakova */
.hh-nav-bottom-row {
    display: flex;
    align-items: center;
    padding: 2px 8px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.hh-nav-bottom-row::-webkit-scrollbar { display: none; }

.hh-nav-logo {
    display: flex; align-items: center; gap: 6px;
    color: var(--gold-lt) !important;
    font-family: 'Georgia', serif;
    font-size: 14px; letter-spacing: 1px;
    text-decoration: none !important;
    white-space: nowrap; flex-shrink: 0;
}
.hh-nav-logo-star { color: var(--rose); font-size: 11px; }
.hh-nav-logo:hover { opacity: .8; }

.hh-nav-sep { width: 1px; height: 18px; background: rgba(255,255,255,.1); flex-shrink: 0; }

/* Zastavice — max ~10 po redu = 2 reda za 20 jezika */
.hh-lang-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    flex: 1;
    max-height: 48px;   /* visina točno 2 reda zastavica */
    overflow: hidden;
    align-content: flex-start;
}
.hh-lang-switch {
    font-size: 18px; text-decoration: none !important;
    opacity: .35; transition: opacity var(--trans), transform var(--trans);
    padding: 2px 2px; border-radius: 3px; line-height: 1;
    flex-shrink: 0;
}
.hh-lang-switch:hover  { opacity: .8; text-decoration: none !important; }
.hh-lang-switch.active { opacity: 1; transform: scale(1.15); }

/* Lista znakova — horizontalni scroll na mobu */
.hh-sign-nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    list-style: none; margin: 0; padding: 0;
    min-width: max-content;
}

.hh-sign-nav-link {
    display: flex; flex-direction: column; align-items: center;
    padding: 5px 8px; border-radius: 6px;
    text-decoration: none !important;
    color: rgba(245,238,248,.45) !important;
    transition: background var(--trans), color var(--trans);
    min-width: 52px; gap: 1px;
}
.hh-sign-nav-link:hover { background: rgba(196,96,126,.15); color: var(--nav-text) !important; }
.hh-sign-nav-link.active { background: rgba(196,96,126,.25); color: var(--rose-lt) !important; border-bottom: 2px solid var(--rose); }

.hh-nav-sym { font-size: 18px; line-height: 1.2; }
.hh-nav-lbl { font-size: 9px; font-family: system-ui, sans-serif; opacity: .7; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   Jezična stranica – grid 12 znakova
   ═══════════════════════════════════════════════════════════ */

.hh-lang-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
    background: var(--bg);
    min-height: 60vh;
}

.hh-signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.hh-sign-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 22px 12px 16px;
    border-radius: var(--r);
    text-decoration: none !important;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
    color: var(--text) !important;
    position: relative; overflow: hidden;
}
.hh-sign-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: linear-gradient(90deg, var(--rose), var(--gold-lt));
    opacity: 0; transition: opacity var(--trans);
}
.hh-sign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rose-lt); color: var(--text) !important; }
.hh-sign-card:hover::before { opacity: 1; }

.hh-sign-symbol { font-size: 36px; margin-bottom: 8px; color: var(--rose); display: block; line-height: 1; }
.hh-sign-name   { font-size: 15px; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; font-family: 'Georgia', serif; }
.hh-sign-excerpt { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.55; font-style: italic; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hh-sign-read   { font-size: 11px; color: var(--purple); font-family: system-ui, sans-serif; font-weight: 600; letter-spacing: .4px; margin-top: auto; }
.hh-sign-card:hover .hh-sign-read { color: var(--rose); }

/* ═══════════════════════════════════════════════════════════
   Sadržaj stranice znaka – dnevni horoskop
   ═══════════════════════════════════════════════════════════ */

.entry-content,
.page-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    font-family: 'Georgia', serif;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
    background: var(--bg);
}

/* Sekcijski naslovi s ikonama: ### ❤️ Amor */
.entry-content h3,
.page-content h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: system-ui, sans-serif;
    color: var(--text);
    margin: 28px 0 10px;
    padding: 12px 16px;
    background: var(--rose-bg);
    border-left: 3px solid var(--rose);
    border-radius: 0 8px 8px 0;
    letter-spacing: .3px;
}

.entry-content p, .page-content p { margin-bottom: 1.4em; color: var(--text2); }
.entry-content hr, .page-content hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.entry-content a, .page-content a { color: var(--purple); text-decoration: none; border-bottom: 1px solid rgba(123,94,167,.3); transition: color .2s; }
.entry-content a:hover, .page-content a:hover { color: var(--rose); border-bottom-color: var(--rose); }

/* ── HH sekcijski blokovi (iz parsera) ─────────────────── */

.hh-section {
    margin: 20px 0;
    padding: 16px 18px;
    background: var(--rose-bg);
    border-left: 3px solid var(--rose);
    border-radius: 0 8px 8px 0;
}

.hh-section-title {
    font-size: 15px;
    font-weight: 700;
    font-family: system-ui, sans-serif;
    color: var(--text);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hh-section-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text2);
    margin: 0;
}

/* ─── Responzivnost ─────────────────────────────────────── */

@media (max-width: 640px) {
    .hh-lang-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hh-signs-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .hh-sign-card  { padding: 16px 8px 12px; }
    .hh-sign-symbol { font-size: 28px; }
    .hh-sign-name  { font-size: 12px; }
    .hh-sign-excerpt { display: none; }
    .hh-sign-nav-inner { min-height: 48px; padding: 0 10px; gap: 6px; }
    .hh-sign-nav-link  { padding: 5px 4px; min-width: 36px; }
    .hh-nav-lbl { display: none; }
    .hh-nav-sym { font-size: 17px; }
    .hh-nav-logo { font-size: 13px; }
    .hh-hub-wrap { padding: 32px 16px 48px; }
    .entry-content, .page-content { padding: 20px 16px 40px; font-size: 16px; }
}

@media (max-width: 420px) {
    .hh-lang-grid { grid-template-columns: 1fr; }
    .hh-hub-title { font-size: 30px; }
}
