/* Farkındalık Rehberi — Ece Kamer. Son güncelleme: 2026-04-17 */
/* ============================================================
   TAROT CARD PAGES — Grimoire Edition
   farkindalikrehberi.com  |  v1.0
   Tüm pages/tarot/*.html sayfalarında yüklenir.
   ============================================================ */

/* ── Tarot Hero — dark celestial ── */
.tarot-hero {
    min-height: 50vh !important;
    background:
        linear-gradient(160deg, #0a0f1a 0%, #152435 40%, #2E4A6E 75%, #1B2D45 100%) !important;
    position: relative;
    overflow: hidden;
    padding-top: 160px !important;
    padding-bottom: 4rem !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    isolation: isolate;
}

/* CSS starfield */
.tarot-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 8%  18%, rgba(255,255,255,.6) 0%, transparent 0%),
        radial-gradient(1px   1px   at 68% 12%, rgba(255,255,255,.45) 0%, transparent 0%),
        radial-gradient(2px   2px   at 35% 55%, rgba(212,175,55,.55)  0%, transparent 0%),
        radial-gradient(1px   1px   at 85% 32%, rgba(255,255,255,.4)  0%, transparent 0%),
        radial-gradient(1px   1px   at 52% 7%,  rgba(255,255,255,.5)  0%, transparent 0%),
        radial-gradient(1px   1px   at 25% 78%, rgba(255,255,255,.35) 0%, transparent 0%),
        radial-gradient(1.5px 1.5px at 62% 46%, rgba(212,175,55,.5)  0%, transparent 0%),
        radial-gradient(1px   1px   at 5%  62%, rgba(255,255,255,.4)  0%, transparent 0%),
        radial-gradient(1px   1px   at 79% 72%, rgba(255,255,255,.3)  0%, transparent 0%),
        radial-gradient(1px   1px   at 44% 88%, rgba(255,255,255,.3)  0%, transparent 0%),
        radial-gradient(2px   2px   at 91% 18%, rgba(212,175,55,.4)  0%, transparent 0%),
        radial-gradient(1px   1px   at 3%  45%, rgba(255,255,255,.4)  0%, transparent 0%),
        radial-gradient(1.5px 1.5px at 57% 30%, rgba(255,255,255,.5) 0%, transparent 0%),
        radial-gradient(1px   1px   at 74% 85%, rgba(255,255,255,.3)  0%, transparent 0%),
        radial-gradient(2px   2px   at 18% 38%, rgba(212,175,55,.35) 0%, transparent 0%);
    z-index: 0;
    pointer-events: none;
}

/* Radial glow behind card title */
.tarot-hero::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(27, 45, 69,.22) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.tarot-hero .hero-content {
    position: relative;
    z-index: 1;
}

/* Hero card number badge */
.tarot-hero .hero-content::before {
    content: attr(data-number);
    display: none; /* number comes from h1 itself */
}

.tarot-hero h1 {
    color: #f0f4f8 !important;
    font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
    line-height: 1.18 !important;
    text-shadow: 0 2px 30px rgba(0,0,0,.5) !important;
    letter-spacing: -.01em;
    margin-bottom: .8rem;
}

.tarot-hero p {
    color: rgba(212,175,55,.85) !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem !important;
    font-style: italic;
    letter-spacing: .02em;
}

/* ── Tarot Attribute Grid ── */
.tarot-attr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: linear-gradient(135deg, rgba(27, 45, 69,.04), rgba(184,134,11,.06));
    border: 1px solid rgba(184,134,11,.18);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.tarot-attr-item {
    flex: 1;
    min-width: 110px;
    padding: 1.2rem 1.4rem;
    border-right: 1px solid rgba(184,134,11,.12);
    border-bottom: 1px solid rgba(184,134,11,.12);
    position: relative;
}
.tarot-attr-item:last-child { border-right: none; }

.tarot-attr-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: .3rem;
    display: block;
}

.tarot-attr-value {
    color: var(--primary);
    font-weight: 600;
    font-size: .95rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    display: block;
    line-height: 1.3;
}

/* Legacy inline attr div — override to look nicer */
section > div > div > div[style*="background:rgba(184,134,11"] {
    background: linear-gradient(135deg, rgba(27, 45, 69,.03), rgba(184,134,11,.06)) !important;
    border: 1px solid rgba(184,134,11,.18) !important;
    border-radius: 18px !important;
    padding: 1.4rem 1.8rem !important;
}

/* ── Card Summary (AIO answer on tarot pages) ── */
.aio-answer.card-summary {
    background: linear-gradient(135deg, rgba(27, 45, 69,.04), rgba(184,134,11,.06)) !important;
    border-left: 3px solid var(--accent) !important;
    border-radius: 0 18px 18px 0 !important;
    padding: 1.4rem 1.8rem !important;
    box-shadow: 0 2px 14px rgba(184,134,11,.07) !important;
}

.aio-answer.card-summary strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--primary);
    display: block;
    margin-bottom: .4rem;
}

/* ── Content Area h2 ── */
section h2.serif {
    font-family: 'Cormorant Garamond', serif;
    color: #1B2D45 !important;
    font-size: clamp(1.55rem, 2.8vw, 2.1rem) !important;
    padding-bottom: .65rem;
    border-bottom: 1px solid rgba(184,134,11,.15);
    position: relative;
    margin-top: 2.8rem !important;
}

section h2.serif::after {
    content: '✦';
    position: absolute;
    bottom: -.65rem;
    left: 0;
    font-size: .65rem;
    color: var(--accent);
    background: white;
    padding: 0 .4rem 0 0;
    line-height: 1;
}

section h3.serif {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem) !important;
    color: #2a1f45 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

/* ── Feather list items ── */
section ul li {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #2e2e2e;
    margin-bottom: .6rem;
}

/* ── Reversed card box ── */
.reversed-box,
section > div > div[style*="border-left: 4px solid var(--primary)"],
section > div[style*="border-left: 4px solid var(--primary)"] {
    background: linear-gradient(135deg, rgba(27, 45, 69,.05), rgba(27, 45, 69,.06)) !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: 20px !important;
    padding: 2.2rem 2.4rem !important;
    position: relative;
    overflow: hidden;
}

/* ── Tarot CTA block ── */
section > div[style*="text-align: center"][style*="border-radius: 30px"],
section > div > div[style*="text-align: center"][style*="border-radius: 30px"] {
    background: linear-gradient(145deg, #152435, #2E4A6E) !important;
    border: 1px solid rgba(212,175,55,.2) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 40px rgba(13,8,25,.3) !important;
    position: relative;
    overflow: hidden;
}

section > div[style*="text-align: center"][style*="border-radius: 30px"] h3,
section > div > div[style*="text-align: center"][style*="border-radius: 30px"] h3 {
    color: #f0f4f8 !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem !important;
}

section > div[style*="text-align: center"][style*="border-radius: 30px"] p,
section > div > div[style*="text-align: center"][style*="border-radius: 30px"] p {
    color: rgba(240,234,248,.75) !important;
}

/* ── Related links ── */
section > div[style*="border: 1px solid rgba(184, 134, 11, 0.1)"] {
    background: rgba(253,251,250,.6) !important;
    border: 1px solid rgba(184,134,11,.12) !important;
    border-radius: 20px !important;
    padding: 1.8rem 2rem !important;
}

section > div[style*="border: 1px solid rgba(184, 134, 11, 0.1)"] a {
    background: linear-gradient(135deg, rgba(27, 45, 69,.08), rgba(27, 45, 69,.08)) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(27, 45, 69,.18) !important;
    border-radius: 10px !important;
    padding: .55rem 1.1rem !important;
    font-size: .88rem !important;
    font-weight: 500 !important;
    transition: transform .2s, box-shadow .2s;
    display: inline-block;
}

section > div[style*="border: 1px solid rgba(184, 134, 11, 0.1)"] a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    background: linear-gradient(135deg, rgba(27, 45, 69,.15), rgba(27, 45, 69,.12)) !important;
}

/* ── FAQ section on tarot pages ── */
section:last-of-type details,
section details {
    background: white !important;
    border: 1px solid rgba(184,134,11,.13) !important;
    border-radius: 16px !important;
    margin-bottom: .9rem;
    padding: 0 !important;
    overflow: hidden;
    transition: box-shadow .2s;
}

section details:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }

section details summary {
    padding: 1.15rem 1.4rem !important;
    font-weight: 600 !important;
    font-size: .97rem !important;
    color: #1B2D45 !important;
    background: rgba(184,134,11,.03) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    list-style: none !important;
    cursor: pointer;
    border-bottom: 1px solid rgba(184,134,11,.08);
}

section details summary::-webkit-details-marker { display: none; }

section details summary span {
    color: var(--accent) !important;
    font-size: 1.3rem !important;
    font-weight: 300 !important;
    margin-left: .5rem;
    transition: transform .2s;
}

section details[open] summary span { transform: rotate(45deg); }

section details p {
    padding: 1rem 1.4rem 1.3rem !important;
    margin: 0 !important;
    font-size: .95rem !important;
    color: #444 !important;
    line-height: 1.85 !important;
}

/* ── Entity mesh chips (chakra, crystal, Jung) ── */
.entity-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(27, 45, 69,.08);
    border: 1px solid rgba(27, 45, 69,.18);
    border-radius: 50px;
    padding: .28rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: .3px;
    margin: .2rem .15rem;
}

.entity-chip.gold {
    background: rgba(184,134,11,.08);
    border-color: rgba(184,134,11,.22);
    color: #96680a;
}

/* ── Daily Pulse Widget container ── */
#daily-pulse-widget {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(184,134,11,.1);
    box-shadow: 0 4px 20px rgba(0,0,0,.055);
    overflow: hidden;
}

/* ── Card image ── */
section img[alt*="Tarot"],
section img[alt*="tarot"] {
    border-radius: 18px !important;
    box-shadow: 0 16px 50px rgba(0,0,0,.15), 0 0 0 1px rgba(184,134,11,.18) !important;
    transition: transform .4s cubic-bezier(.19,1,.22,1), box-shadow .4s !important;
}

section img[alt*="Tarot"]:hover,
section img[alt*="tarot"]:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.2), 0 0 0 1px rgba(184,134,11,.25) !important;
}

/* ── Page fade in ── */
@keyframes tarotPageIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

section:first-of-type {
    animation: tarotPageIn .85s cubic-bezier(.19,1,.22,1) .1s both;
}

/* ── Tarot Anlam Grid (4 bölüm: Aşk, Kariyer, Para, Spiritüel) ── */
.tarot-meaning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
    margin: 3rem 0;
}

.tarot-meaning-card {
    background: white;
    border: 1px solid rgba(184,134,11,.12);
    border-radius: 18px;
    padding: 1.6rem 1.8rem;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}

.tarot-meaning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity .25s ease;
}

.tarot-meaning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,.1);
}

.tarot-meaning-card:hover::before { opacity: 1; }

.meaning-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(27, 45, 69,.1), rgba(184,134,11,.08));
    border: 1px solid rgba(184,134,11,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.tarot-meaning-card h3 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.2rem !important;
    color: #1B2D45 !important;
    margin: 0 0 .7rem !important;
    font-weight: 600;
}

.tarot-meaning-card p {
    font-size: .93rem;
    line-height: 1.78;
    color: #444;
    margin: 0;
}

/* ============================================================
   TAROT CARD PAGE — CSS CLASS ARCHITECTURE
   (inline style'lardan taşınan class'lar)
   ============================================================ */

/* Hero */
.tarot-hero-content { max-width: 800px; }
.tarot-h1 { font-size: 3.5rem; }

/* Kart Layout */
.tarot-card-layout {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tarot-img-col { flex: 1; min-width: 300px; }
.tarot-text-col { flex: 1.5; min-width: 300px; }

.tarot-card-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

/* Info kutusu */
.tarot-info-box {
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(184, 134, 11, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(184, 134, 11, 0.15);
}

.tarot-info-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.tarot-info-item { min-width: 100px; }
.tarot-info-full { flex: 1; min-width: 200px; }

.tarot-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.info-val { color: var(--primary); }
.info-val-sm { color: var(--primary); font-size: 0.9rem; }

/* Başlıklar */
.tarot-h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.tarot-h2-sm {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.tarot-h3 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Anlam listesi */
.tarot-meaning-list-ul { list-style: none; padding: 0; }
.tarot-li { margin-bottom: 1rem; }
.tarot-li-icon { color: var(--accent); margin-right: 15px; }

/* Ters kart */
.tarot-reversed-box {
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(123, 102, 153, 0.06);
    border-radius: 20px;
    border-left: 4px solid var(--primary);
}

.tarot-reversed-title {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tarot-reversed-text { line-height: 1.8; }

/* CTA büyük kutu */
.tarot-cta-box {
    margin-top: 5rem;
    padding: 4rem;
    background: white;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(184, 134, 11, 0.1);
}

.tarot-cta-title { font-size: 2rem; }
.tarot-cta-desc { margin-bottom: 2rem; }

/* Related links */
.tarot-related-box {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    text-align: left;
    border: 1px solid rgba(184, 134, 11, 0.1);
}

.tarot-related-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.tarot-related-chips {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Etiket flex */
.tag-flex {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.entity-tag {
    background: rgba(123, 102, 153, 0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* FAQ bölümü */
.tarot-faq-wrap { max-width: 850px; margin: 0 auto; }

.tarot-faq-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(184, 134, 11, 0.15);
}

.tarot-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tarot-faq-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(184, 134, 11, 0.15);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
}

.tarot-faq-q {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarot-faq-plus {
    color: var(--accent);
    font-size: 1.2rem;
}

.tarot-faq-a {
    margin-top: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Daily pulse widget */
.daily-pulse-widget {
    margin: 2rem auto;
    max-width: 900px;
    padding: 0 4%;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .tarot-hero { min-height: 42vh !important; padding-top: 130px !important; }
    .tarot-hero h1 { font-size: 1.9rem !important; }
    section > div > div { flex-direction: column !important; }
    .tarot-attr-grid { flex-direction: row; flex-wrap: wrap; }
    .tarot-attr-item { min-width: 45%; border-right: none; border-bottom: 1px solid rgba(184,134,11,.1); }
    section details summary { font-size: .9rem !important; }
    .tarot-meaning-grid { grid-template-columns: 1fr; }
    .tarot-card-layout { flex-direction: column; gap: 2rem; }
    .tarot-h1 { font-size: 2.2rem; }
    .tarot-h2 { font-size: 1.8rem; }
    .tarot-cta-box { padding: 2rem; }
}
