/*
Theme Name:  Yarnivorous
Theme URI:   https://yarnivorous.co.uk
Author:      Yarnivorous CIC
Author URI:  https://yarnivorous.co.uk
Description: Custom theme for Yarnivorous CIC — a community interest company for yarn lovers.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yarnivorous
Tags:        community, custom, e-commerce
*/

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --clr-bg:        #0e0b14;
    --clr-surface:   #1a1525;
    --clr-accent:    #c084fc;
    --clr-accent-2:  #e879f9;
    --clr-text:      #f3e8ff;
    --clr-muted:     #a78bba;
    --font-sans:     'Inter', system-ui, sans-serif;
    --font-display:  'Playfair Display', Georgia, serif;
}

html, body {
    height: 100%;
    background: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

/* ── Coming Soon Layout ────────────────────────────────────── */
.coming-soon {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Ambient background blobs */
.coming-soon::before,
.coming-soon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
}
.coming-soon::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #9333ea, transparent 70%);
    top: -150px;
    left: -150px;
    animation: drift 12s ease-in-out infinite alternate;
}
.coming-soon::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e879f9, transparent 70%);
    bottom: -120px;
    right: -120px;
    animation: drift 15s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ── Logo ──────────────────────────────────────────────────── */
.coming-soon__logo {
    width: min(320px, 70vw);
    height: auto;
    margin-bottom: 2.5rem;
    animation: fadeUp 1s ease both;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 40px rgba(192, 132, 252, 0.35));
}

/* ── Headline ──────────────────────────────────────────────── */
.coming-soon__heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--clr-text) 30%, var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeUp 1s 0.15s ease both;
    position: relative;
    z-index: 1;
}

/* ── Subtext ───────────────────────────────────────────────── */
.coming-soon__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--clr-muted);
    max-width: 480px;
    line-height: 1.7;
    animation: fadeUp 1s 0.3s ease both;
    position: relative;
    z-index: 1;
}

/* ── Divider ───────────────────────────────────────────────── */
.coming-soon__divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-2));
    border-radius: 2px;
    margin: 2rem auto;
    animation: fadeUp 1s 0.45s ease both;
    position: relative;
    z-index: 1;
}

/* ── Notify form ───────────────────────────────────────────── */
.coming-soon__form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 1s 0.6s ease both;
    position: relative;
    z-index: 1;
}

.coming-soon__input {
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(192, 132, 252, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    width: 260px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(8px);
}
.coming-soon__input::placeholder { color: var(--clr-muted); }
.coming-soon__input:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.15);
}

.coming-soon__btn {
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
    color: #0e0b14;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(192, 132, 252, 0.3);
}
.coming-soon__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(192, 132, 252, 0.45);
}
.coming-soon__btn:active { transform: translateY(0); }

/* ── Footer note ───────────────────────────────────────────── */
.coming-soon__footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: rgba(167, 139, 186, 0.5);
    animation: fadeUp 1s 0.75s ease both;
    position: relative;
    z-index: 1;
}

/* ── Animation ─────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
