/* =============================================
   The Divine Answer — Content Pages Stylesheet
   Shared styles for zodiac, tarot, and guide pages
   ============================================= */

/* ---------- Page Layout ---------- */
.page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    position: relative;
    z-index: 1;
}

/* ---------- Breadcrumb Navigation ---------- */
.breadcrumb {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    opacity: 0.7;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* ---------- Page Header ---------- */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 3px;
    line-height: 1.3;
}

.page-header .subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.6;
}

.page-header .sign-symbol {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.4));
}

.page-header .sign-dates {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 4px;
}

/* ---------- Content Cards ---------- */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 24px;
    transition: border-color 0.3s ease;
}

.content-card:hover {
    border-color: rgba(218, 165, 32, 0.3);
}

.content-card h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.content-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.content-card p,
.content-card li {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.content-card ul,
.content-card ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-card a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.content-card a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ---------- Trait / Info Tags ---------- */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.tag {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.25);
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.tag.element-fire { background: rgba(255, 87, 34, 0.12); border-color: rgba(255, 87, 34, 0.3); color: #ff7043; }
.tag.element-earth { background: rgba(102, 187, 106, 0.12); border-color: rgba(102, 187, 106, 0.3); color: #66bb6a; }
.tag.element-air { background: rgba(79, 195, 247, 0.12); border-color: rgba(79, 195, 247, 0.3); color: #4fc3f7; }
.tag.element-water { background: rgba(149, 117, 205, 0.12); border-color: rgba(149, 117, 205, 0.3); color: #9575cd; }

/* ---------- Info Grid (Planet, Element, Quality etc.) ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 16px 0 24px;
}

.info-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-align: center;
}

.info-item .label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    opacity: 0.7;
}

.info-item .value {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* ---------- Compatibility Section ---------- */
.compat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.compat-sign {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.compat-sign:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.15);
}

/* ---------- Tarot Card Image ---------- */
.tarot-card-showcase {
    text-align: center;
    margin: 24px 0;
}

.tarot-card-showcase img {
    max-width: 280px;
    width: 100%;
    border-radius: 12px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(218, 165, 32, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tarot-card-showcase img:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(218, 165, 32, 0.25);
}

.tarot-card-showcase .card-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 12px;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* ---------- Meaning Columns (Upright / Reversed) ---------- */
.meaning-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.meaning-col {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.meaning-col.upright {
    border-left: 3px solid var(--gold);
}

.meaning-col.reversed {
    border-left: 3px solid #9575cd;
}

.meaning-col .col-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.meaning-col.reversed .col-title {
    color: #9575cd;
}

.meaning-col p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
}

/* ---------- CTA Section ---------- */
.cta-section {
    text-align: center;
    padding: 40px 32px;
    margin-top: 8px;
}

.cta-section p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--purple));
    color: #000;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    letter-spacing: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--gold-glow);
}

/* ---------- Hub Page Grid (zodiac signs / tarot cards) ---------- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.hub-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(218, 165, 32, 0.12);
}

.hub-card .card-symbol {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
}

.hub-card .card-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.hub-card .card-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Tarot hub - card image thumbnails */
.hub-card .card-thumb {
    width: 120px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.hub-card:hover .card-thumb {
    transform: scale(1.05);
}

/* ---------- Footer Navigation ---------- */
.content-footer {
    text-align: center;
    margin-top: 48px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.content-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    margin: 0 14px;
    transition: color 0.3s ease;
}

.content-footer a:hover {
    color: var(--gold);
}

/* ---------- Related Pages ---------- */
.related-section {
    margin-top: 32px;
}

.related-section h2 {
    margin-bottom: 16px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-link {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .page-wrapper {
        padding: 24px 16px 40px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .content-card {
        padding: 24px 20px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .meaning-columns {
        grid-template-columns: 1fr;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }

    .content-footer a {
        display: inline-block;
        margin: 4px 10px;
    }
}
