﻿@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --bg: #0a0a1a;
    --bg-alt: #12122b;
    --bg-card: rgba(16, 16, 40, 0.85);
    --accent: #f5c56b;
    --accent-2: #ff4fd8;
    --accent-3: #7df9ff;
    --text: #f6f2ff;
    --muted: #b7b0d6;
    --border: rgba(255, 255, 255, 0.08);
    --glow: 0 0 30px rgba(245, 197, 107, 0.35);
}

* {
    box-sizing: border-box;
}

body.oracul-body {
    margin: 0;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, rgba(95, 52, 255, 0.3), transparent 45%),
        radial-gradient(circle at 20% 20%, rgba(255, 79, 216, 0.25), transparent 35%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

body.oracul-body[data-theme='solar'] {
    --bg: #0f0d08;
    --bg-alt: #1c1710;
    --bg-card: rgba(40, 30, 18, 0.88);
    --accent: #ffd166;
    --accent-2: #ff8f3f;
    --accent-3: #ffe9a6;
    --text: #fff7e1;
    --muted: #d7c7a3;
    --border: rgba(255, 224, 160, 0.2);
}

body.oracul-body[data-theme='aurora'] {
    --bg: #03151d;
    --bg-alt: #062430;
    --bg-card: rgba(4, 33, 44, 0.88);
    --accent: #5df2d6;
    --accent-2: #4db8ff;
    --accent-3: #9df8ff;
    --text: #e6fdff;
    --muted: #a2d4dc;
    --border: rgba(131, 244, 255, 0.2);
}

h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    letter-spacing: 0.4px;
    margin: 0 0 16px;
}

p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(7, 6, 20, 0.8);
    border-bottom: 1px solid var(--border);
}

.site-header__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% -20%, rgba(245, 197, 107, 0.35), transparent 45%);
    pointer-events: none;
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
}

.brand {
    display: grid;
    gap: 2px;
}

.brand__mark {
    font-size: 24px;
}

.brand__name {
    font-size: 22px;
    font-weight: 700;
    text-transform: lowercase;
}

.brand__tag {
    font-size: 12px;
    color: var(--muted);
}

.nav-list {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list a {
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
}

.nav-toggle__line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
}

.mobile-menu {
    padding: 12px 0 20px;
    border-top: 1px solid var(--border);
}

.mobile-menu .nav-list {
    flex-direction: column;
    gap: 12px;
}

.mobile-menu__cta {
    margin-top: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.pill--solid {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border: none;
    color: #1a0f2e;
    box-shadow: var(--glow);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 80px;
}

.hero__stars {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffffff 1px, transparent 1px), radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 120px 120px, 80px 80px;
    background-position: 0 0, 40px 60px;
    opacity: 0.12;
    animation: starsDrift 24s linear infinite;
}

@keyframes starsDrift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(120px);
    }
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.eyebrow {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-3);
    margin-bottom: 14px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.theme-switcher {
    margin-top: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

.theme-switcher .pill {
    padding: 8px 14px;
}

.theme-switcher .pill.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-tools {
    display: grid;
    gap: 18px;
}

.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section-head {
    margin-bottom: 32px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(5, 5, 20, 0.4);
    position: relative;
}

.card--glow {
    border-color: rgba(245, 197, 107, 0.5);
    box-shadow: var(--glow);
}

.card h3 {
    margin-bottom: 12px;
}

.zodiac-form,
.compatibility-form,
.subscribe,
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.zodiac-form input,
.compatibility-form select,
.filter-bar select,
.filter-bar input[type='month'],
.filter-bar input[type='search'],
.subscribe input,
.search-form input[type='search'] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
    min-width: 160px;
}

.filter-bar label,
.filter-search {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input[type='submit'] {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    background: transparent;
    color: var(--text);
}

.result {
    margin-top: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text);
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.zodiac-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zodiac-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow);
}

.zodiac-icon {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--accent-2);
}

.zodiac-meta {
    font-size: 13px;
}

.zodiac-link,
.text-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.events {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.events li {
    display: grid;
    gap: 4px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
}

.astro-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
}

.astro-day {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    padding: 12px 8px;
    display: grid;
    gap: 4px;
}

.astro-day__week {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.astro-day__num {
    font-size: 18px;
    font-weight: 700;
}

.astro-day__dot {
    color: var(--accent);
    min-height: 18px;
}

.astro-day--active {
    border-color: rgba(245, 197, 107, 0.5);
    box-shadow: var(--glow);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.post-card__media {
    display: block;
    min-height: 160px;
    background: linear-gradient(130deg, rgba(255, 79, 216, 0.35), rgba(125, 249, 255, 0.2));
}

.post-card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.post-card__placeholder {
    height: 180px;
    display: grid;
    place-items: center;
    color: var(--text);
    font-weight: 700;
}

.post-card__content {
    padding: 20px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 10px;
}

.post-slider {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.post-slider__viewport {
    overflow: hidden;
}

.post-slider__track {
    display: flex;
    gap: 16px;
    transition: transform 0.35s ease;
    will-change: transform;
}

.post-slide {
    min-width: calc(33.333% - 12px);
    flex: 0 0 calc(33.333% - 12px);
}

.slider-nav {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

.page-hero {
    padding-top: 120px;
}

.article__header {
    margin-bottom: 32px;
}

.article__media img {
    width: 100%;
    border-radius: 18px;
}

.article__content {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 32px;
    border: 1px solid var(--border);
}

.article__share {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.zodiac-passport {
    padding-top: 120px;
}

.zodiac-passport__article {
    display: grid;
    gap: 24px;
}

.zodiac-passport__hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(130deg, rgba(245, 197, 107, 0.18), rgba(125, 249, 255, 0.1));
}

.zodiac-passport__icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 42px;
    background: rgba(0, 0, 0, 0.2);
}

.zodiac-passport__period {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

.zodiac-passport__mantra {
    color: var(--text);
    max-width: 65ch;
}

.zodiac-passport__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.zodiac-meta-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    padding: 14px;
    display: grid;
    gap: 6px;
}

.zodiac-meta-card span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zodiac-meta-card strong {
    font-size: 20px;
    color: var(--text);
}

.zodiac-passport__media img {
    width: 100%;
    border-radius: 20px;
}

.zodiac-passport__content {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    padding: 28px;
}

.zodiac-passport__section {
    margin-top: 24px;
    border-radius: 24px;
}

.pagination {
    margin-top: 30px;
}

.site-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: #090914;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.tarot-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(130deg, rgba(245, 197, 107, 0.2), rgba(255, 79, 216, 0.15));
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .header-grid {
        grid-template-columns: auto 1fr auto;
    }

    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-actions {
        display: none;
    }

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

    .post-slide {
        min-width: calc(50% - 8px);
        flex-basis: calc(50% - 8px);
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 70px 0 60px;
    }

    .hero-actions,
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .post-slider {
        grid-template-columns: 1fr;
    }

    .post-slider__track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }

    .post-slide {
        min-width: 85%;
        flex-basis: 85%;
        scroll-snap-align: start;
    }

    .slider-nav {
        display: none;
    }

    .zodiac-passport {
        padding-top: 96px;
    }

    .zodiac-passport__hero {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .zodiac-passport__meta {
        grid-template-columns: 1fr;
    }
}
