@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Cinzel+Decorative:wght@700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --saffron: #E8873A;
    --maroon: #7A2438;
    --gold: #C9A24B;
    --rose: #F3D9CF;
    --lavender: #E9E3F5;
    --cream: #FFFBF3;
    --ink: #4A3B34;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: linear-gradient(160deg, #FFF6EA 0%, #FBEFE0 35%, #F3E4D8 70%, #EDE1EE 100%);
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ---------- Hero ---------- */
#hero {
    text-align: center;
    padding: 36px 20px 22px 20px;
}

#hero h1 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--maroon);
    font-size: 3em;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 0px rgba(201,162,75,0.4);
    animation: fadeDown 0.8s ease-out;
}

#hero .tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3em;
    color: #9C6B45;
    font-style: italic;
    margin-top: 6px;
    animation: fadeDown 1s ease-out;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

#visitor-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--gold);
    color: var(--maroon);
    font-size: 0.9em;
    backdrop-filter: blur(6px);
}

/* ---------- Tabs ---------- */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 6px 0 22px 0;
}

.tab-btn {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5em;
    font-weight: 600;
    padding: 16px 42px;
    border-radius: 20px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(201,162,75,0.4);
    color: var(--maroon);
    box-shadow: 0 4px 18px rgba(122,36,56,0.06);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tab-btn:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.8);
    box-shadow: 0 8px 22px rgba(122,36,56,0.14);
}

.tab-btn.selected {
    background: linear-gradient(135deg, var(--saffron), var(--maroon));
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(122,36,56,0.30);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Step tracker ---------- */
#step-tracker {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 18px auto;
    max-width: 640px;
}

#step-tracker .step {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 12px;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(201,162,75,0.35);
    color: var(--maroon);
    font-size: 0.85em;
    font-weight: 500;
}

/* ---------- Glass cards ---------- */
.glass-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    border: 1px solid rgba(201,162,75,0.35);
    box-shadow: 0 8px 30px rgba(122,36,56,0.08);
    padding: 22px;
    margin-bottom: 18px;
    animation: fadeUp 0.5s ease-out;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4em;
    color: var(--maroon);
    margin-top: 0;
    margin-bottom: 10px;
}

/* ---------- Form fields ---------- */
label {
    display: block;
    font-size: 0.85em;
    color: var(--maroon);
    margin-bottom: 4px;
    font-weight: 500;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 6px;
}

.field { flex: 1; min-width: 160px; }

input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(201,162,75,0.5);
    background: rgba(255,255,255,0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    color: var(--ink);
}

textarea { resize: vertical; }

input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px dashed rgba(201,162,75,0.6);
    background: rgba(255,255,255,0.4);
}

/* ---------- Buttons ---------- */
button.primary, button.secondary {
    font-family: 'Poppins', sans-serif;
    border-radius: 999px;
    padding: 10px 26px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.primary {
    background: linear-gradient(135deg, var(--saffron), var(--maroon));
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(122,36,56,0.25);
}

button.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(122,36,56,0.32);
}

button.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.secondary {
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--maroon);
    color: var(--maroon);
}

button.secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.85);
}

/* ---------- Images / preview ---------- */
.image-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.image-box {
    flex: 1;
    min-width: 220px;
}

.image-box img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(201,162,75,0.35);
    display: none;
}

.image-box .placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    border: 1px dashed rgba(201,162,75,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B08968;
    font-size: 0.85em;
    background: rgba(255,255,255,0.3);
}

/* ---------- Reading output ---------- */
#reading-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.75), rgba(243,217,207,0.55));
}

#reading-output {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.18em;
    line-height: 1.75;
    white-space: pre-wrap;
    min-height: 60px;
}

#sources-output {
    font-size: 0.85em;
    color: #9C6B45;
    margin-top: 14px;
    white-space: pre-wrap;
}

/* ---------- Coming soon panel ---------- */
#coming-soon {
    text-align: center;
    padding: 70px 20px;
    animation: fadeUp 0.6s ease-out;
}

#coming-soon .icon {
    font-size: 3.2em;
    animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.08); }
}

#coming-soon h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--maroon);
    font-size: 2.2em;
    margin: 14px 0 6px 0;
}

#coming-soon .sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3em;
    color: #9C6B45;
    max-width: 520px;
    margin: 0 auto;
}

#coming-soon .badge {
    display: inline-block;
    margin-top: 22px;
    padding: 8px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lavender), var(--rose));
    border: 1px solid var(--gold);
    color: var(--maroon);
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

/* ---------- Footer ---------- */
#footer-note {
    text-align: center;
    color: #9C6B45;
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 10px;
    padding-bottom: 20px;
}

#status-message {
    text-align: center;
    color: #B00020;
    font-size: 0.9em;
    margin: 10px 0;
}
