/*
Theme Name: Mystic Esoteric
Theme URI: https://your-domain.com
Author: Wibe Coding
Description: SEO-optimized esoteric theme for astrology, tarot, numerology and spirituality
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: mystic-esoteric
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark:       #0d0d1a;
    --bg-card:       #13132a;
    --bg-card-hover: #1a1a38;
    --accent:        #9b59b6;
    --accent-light:  #c39bd3;
    --gold:          #f0c040;
    --gold-light:    #f8e08a;
    --text:          #e8e0f0;
    --text-muted:    #9990b0;
    --border:        #2a2a4a;
    --radius:        12px;
    --shadow:        0 4px 24px rgba(155, 89, 182, 0.15);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Georgia', serif;
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 40px 0; }
@media (max-width: 900px) { .content-wrap { grid-template-columns: 1fr; } }

/* ===== HEADER ===== */
#site-header {
    background: linear-gradient(135deg, #0a0a1a 0%, #13132a 100%);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(240, 192, 64, 0.4);
}
.site-logo span { color: var(--accent-light); }

/* ===== NAVIGATION ===== */
#site-nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
#site-nav ul li a {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
#site-nav ul li a:hover,
#site-nav ul li.current-menu-item a {
    color: var(--gold);
    background: rgba(240, 192, 64, 0.08);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    #site-nav { display: none; width: 100%; }
    #site-nav.open { display: block; }
    #site-nav ul { flex-direction: column; padding: 10px 0; }
    .header-inner { flex-wrap: wrap; }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0d0d2e 0%, #1a0a2e 50%, #0d0d1a 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '✦ ✧ ✦';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    opacity: 0.3;
    font-size: 1.5rem;
    letter-spacing: 20px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    text-shadow: 0 0 40px rgba(240, 192, 64, 0.3);
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ===== AD SLOTS ===== */
.ad-slot {
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
    padding: 10px;
    margin: 24px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-slot-banner { min-height: 90px; }   /* 728x90 leaderboard */
.ad-slot-rect   { min-height: 250px; }  /* 300x250 medium rect */
.ad-slot-inline { min-height: 120px; }  /* 468x60 inline */

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}
.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(155, 89, 182, 0.25);
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.card a.card-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent-light);
    font-size: 0.85rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.card a.card-link:hover { border-color: var(--accent-light); }

/* ===== ZODIAC GRID ===== */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    padding: 24px 0;
}
.zodiac-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    transition: all 0.25s;
    cursor: pointer;
}
.zodiac-item:hover {
    border-color: var(--gold);
    background: var(--bg-card-hover);
    transform: scale(1.05);
}
.zodiac-item .zodiac-symbol { font-size: 2rem; display: block; margin-bottom: 6px; }
.zodiac-item .zodiac-name   { font-size: 0.85rem; color: var(--text-muted); }
.zodiac-item .zodiac-dates  { font-size: 0.75rem; color: var(--accent-light); margin-top: 4px; }

/* ===== ANGEL NUMBER PAGE ===== */
.angel-number-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: radial-gradient(ellipse at top, #1a0a2e 0%, var(--bg-dark) 70%);
}
.angel-number-display {
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--gold);
    text-shadow: 0 0 60px rgba(240, 192, 64, 0.5);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 16px;
}
.angel-number-subtitle {
    font-size: 1.2rem;
    color: var(--accent-light);
    margin-bottom: 8px;
}

/* ===== ARTICLE / SINGLE POST ===== */
.article-header { padding: 40px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--gold); line-height: 1.25; }
.article-meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; }
.article-meta span { margin-right: 16px; }

.article-body h2 { color: var(--accent-light); font-size: 1.5rem; margin: 36px 0 16px; padding-left: 16px; border-left: 3px solid var(--accent); }
.article-body h3 { color: var(--gold-light); font-size: 1.2rem; margin: 28px 0 12px; }
.article-body p  { margin-bottom: 18px; color: var(--text); line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 20px;
    background: rgba(240, 192, 64, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, rgba(155,89,182,0.1), rgba(240,192,64,0.05));
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px;
    margin: 28px 0;
}
.highlight-box h4 { color: var(--gold); margin-bottom: 10px; }

/* ===== HOROSCOPE PAGE ===== */
.horoscope-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.horoscope-nav a {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
}
.horoscope-nav a:hover,
.horoscope-nav a.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ===== TAROT CARD ===== */
.tarot-card-display {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.tarot-card-image {
    width: 200px;
    min-width: 200px;
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.tarot-card-image .card-placeholder {
    width: 168px;
    height: 280px;
    background: linear-gradient(135deg, #1a0a2e, #2a1a4e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold);
}
.tarot-card-meta { flex: 1; min-width: 280px; }
.tarot-card-meta h1 { color: var(--gold); font-size: 2rem; margin-bottom: 12px; }
.tarot-keywords {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.tarot-keyword {
    background: rgba(155,89,182,0.15);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* ===== CRYSTAL PAGE ===== */
.crystal-properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 28px 0;
}
.crystal-property {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.crystal-property .prop-label { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 6px; }
.crystal-property .prop-value { color: var(--gold); font-weight: bold; }

/* ===== AFFILIATE BOX ===== */
.affiliate-box {
    background: linear-gradient(135deg, rgba(240,192,64,0.08), rgba(155,89,182,0.08));
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
    text-align: center;
}
.affiliate-box h4 { color: var(--gold); margin-bottom: 10px; font-size: 1.1rem; }
.affiliate-box p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.btn-affiliate {
    display: inline-block;
    background: var(--gold);
    color: #0d0d1a;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.btn-affiliate:hover { background: var(--gold-light); color: #0d0d1a; transform: scale(1.03); }

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-widget h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--text-muted); font-size: 0.9rem; }
.sidebar-widget ul li a:hover { color: var(--gold); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs span { margin: 0 8px; }

/* ===== FOOTER ===== */
#site-footer {
    background: #080814;
    border-top: 1px solid var(--border);
    padding: 48px 20px 24px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.footer-col h4 { color: var(--gold); margin-bottom: 14px; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 32px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ===== SEARCH ===== */
.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.search-box input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.95rem;
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-box button {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.search-box button:hover { background: #8e44ad; }

/* ===== RELATED POSTS ===== */
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-posts h3 { color: var(--gold); margin-bottom: 20px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.25s;
}
.related-card:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.related-card h4 { color: var(--text); font-size: 0.95rem; margin-bottom: 8px; }
.related-card p  { color: var(--text-muted); font-size: 0.85rem; }

/* ===== TABLE ===== */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}
.styled-table th {
    background: var(--bg-card);
    color: var(--gold);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--accent);
}
.styled-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.styled-table tr:hover td { background: var(--bg-card); }

/* ===== UTILITY ===== */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent-light); }
.text-center  { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--gold);
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}
