
/* app/static/css/public.css */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Rajdhani:wght@300;400;500;600;700&display=swap" rel="stylesheet');

:root {
    --brand-dark: #0f172a;
    --brand-accent: #7c3aed;
    --dev-cyan: #06b6d4;
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-cream: #f4f2ec;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --ui-step-bg: #ffffff;
    --ui-step-border: #e2e8f0;
    --ui-step-text: #0f172a;
    --ui-step-muted: #64748b;
}

body {
    font-family: "Rajdhani", sans-serif;
    background: var(--bg-cream);
    color: var(--text-main);
    margin: 0; padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    color: var(--text-main);
    margin: 0; padding: 0;
}

p {
    font-family: "Lexend", sans-serif;
    font-weight: 400;
    color: var(--text-light);
    margin: 0; padding: 0;
}

/* ── SCROLL WRAPPER ── */
.overview-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-cream);
    width: 100%;
}

/* ── PUBLIC NAVIGATION ── */
.public-nav {
    position: fixed;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    z-index: 1000;
    border-radius: 10px;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.public-nav.scrolled {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(244, 238, 231, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem;
}
.nav-brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; color: #000; text-decoration: none;}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-size: 1.1rem; font-weight: 600; transition: 0.2s; }
.nav-links a:hover { color: var(--brand-accent); }
.btn-join { background: #000; color: #fff !important; padding: 8px 20px; border-radius: 20px; font-weight: 700;}

/* ── UNIFIED HERO & BACKGROUND ── */
.heros, .auth-wrapper, .checkout-wrapper {
    position: relative; 
    background: var(--bg-cream);
    overflow: hidden; 
}
.heros { min-height: 100vh; padding-top: 80px; display: flex; align-items: center; }

/* The Deep Grid */
.grid { 
    position: absolute; inset: 0; background-size: 70px 70px; opacity: 0.35; z-index: 0; 
    background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px); 
}

/* The Animated Blobs */
.blob { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: 0.4; z-index: 0; animation: float 14s infinite alternate; }
.blob.one { background: #cfd8ff; top: -100px; left: -100px; }
.blob.two { background: #ffd6d6; bottom: -120px; right: -120px; }
.blob-green { background: #dcfce7 !important; } /* For Developer Page */
@keyframes float { from { transform: translateY(0); } to { transform: translateY(40px); } }

/* Hero Content */
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 0 2rem; position: relative; z-index: 10; }
.hero-text h1 { font-size: 5.5rem; line-height: 0.95; letter-spacing: -3px; color: #1a1a1a; margin-bottom: 1.5rem; }
.hero-text p { font-size: 1.25rem; color: #5c6b63; line-height: 1.5; max-width: 480px; margin-bottom: 2.5rem; }
.badge-pill { display: inline-block; padding: 6px 16px; border-radius: 5px; font-size: 0.75rem; font-weight: 700; border: 1px solid rgba(0,0,0,0.1); box-shadow: 5px 5px 5px rgba(124, 58, 237, 0.1); margin-bottom: 1rem; }

/* Shared Buttons */
.ghost-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 30px; border-radius: 10px; font-weight: 600; text-decoration: none;
    background: rgba(255, 255, 255, 0.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: black; transition: all 0.25s ease; cursor: pointer; height: auto;
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.55); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12); color: black; }
.ghost-btn:active { transform: translateY(0px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
.ghost-btn.primary { background: var(--brand-accent); color: #fff !important; border: none; }
.ghost-btn.primary:hover { color: #000 !important; }

/* ── GHOST UI (Marketing Visuals) ── */
.ghost-ui-wrapper { perspective: 1000px; }
.ghost-window { 
    background: rgba(255,255,255,0.4); backdrop-filter: blur(20px); border-radius: 20px; padding: 30px; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.8);
    transform: rotateY(-15deg) rotateX(10deg);
}
.ghost-bar { height: 10px; background: rgba(0,0,0,0.05); border-radius: 5px; margin-bottom: 15px; }

.ghost-sidebar { width: 300px; height: 250px; padding: 15px; background: rgba(255,255,255,0.4); backdrop-filter: blur(10px); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.ghost-sidebar li { list-style: none; height: 8px; background: rgba(0,0,0,0.05); margin-bottom: 10px; border-radius: 4px; }
.ghost-sidebar li.short { width: 60%; }
.ghost-form { transform: rotateY(-15deg) rotateX(10deg); opacity: 1; }
.ghost-input { background: rgba(124,58,237,0.05); height: 38px; border-radius: 8px; margin-bottom: 14px; }
.ghost-upload { height: 120px; background: rgba(0,0,0,0.07); border-radius: 10px; margin-bottom: 16px; }

/* ── GHOST UI (Developer Variant) ── */
.ghost-ui-dev {
    background: #0f172a; border-radius: 16px; padding: 25px; color: #94a3b8;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.6;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3); transform: rotateY(-10deg) rotateX(5deg);
    border: 1px solid rgba(255,255,255,0.1);
}
.code-comment { color: #475569; }
.code-key { color: #7dd3fc; }
.code-val { color: #fbbf24; }
.visual-card-preview { margin-top: 25px; background: #1e293b; border-radius: 12px; padding: 20px; border: 1px solid #334155; }

/* ── CHECKERBOARD GRID ── */
.feature-section { padding: 100px 0; background: #fff; }
.checker-container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 120px; }
.checker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.checker-row:nth-child(even) .checker-text { order: 2; }
.checker-row:nth-child(even) .checker-visual { order: 1; }

.checker-text h2 { font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 1.5rem; }
.checker-text p { font-size: 1.1rem; color: var(--text-light); line-height: 1.6; }

.checker-visual {
    background: #f8fafc; border-radius: 24px; height: 400px; 
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 20px 40px rgba(0,0,0,0.02);
    overflow: hidden; position: relative;
}
.visual-placeholder { width: 80%; height: 70%; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); }

/* ── Q&A SECTION ── */
.qa-section { padding: 100px 2rem; background: #f9f9f9; }
.qa-container { max-width: 800px; margin: 0 auto; }
.qa-container details { background: #fff; padding: 1.5rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid rgba(0,0,0,0.05); cursor: pointer; transition: 0.2s; }
.qa-container details:hover { border-color: var(--brand-accent); }
.qa-container summary { font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.qa-container summary::after { content: '+'; font-size: 1.2rem; color: var(--brand-accent); }
.qa-container details[open] summary::after { content: '−'; }
.qa-content { margin-top: 1rem; color: var(--text-light); line-height: 1.6; }

/* ── FOOTER ── */
.public-footer { padding: 60px 2rem; border-top: 1px solid rgba(0,0,0,0.05); background: #fff; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.85rem; color: var(--text-light); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { text-decoration: none; color: var(--text-light); font-size: 0.85rem; }

/* ==============================================================

TEMPLATE KITS

=================================================================*/

/* ── MARKETPLACE SHELL ── */
.market-shell {
    max-width: 1400px; margin: 0 auto; padding: 100px 2rem 4rem 2rem;
}

/* ── TOP FILTER BAR ── */
.market-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--ui-step-border);
    margin-bottom: 2rem;
}
.market-header h1 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }

.filter-group { display: flex; gap: 8px; }
.filter-select {
    background: #fff; border: 1px solid var(--ui-step-border); border-radius: 4px;
    font-size: 0.7rem; font-weight: 600; padding: 4px 12px; outline: none; cursor: pointer;z-index: 100;
}

/* ── DENSE THUMBNAIL GRID ── */
.template-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.template-card {
    cursor: pointer; transition: all 0.2s ease; position: relative;
}

.thumb-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: top; 
    opacity: 0.95; 
    transition: opacity 0.3s; 
}
.thumb-wrapper img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.3s; }
.template-card:hover .thumb-wrapper { border-color: var(--ui-step-text); }
.template-card:hover img { opacity: 1; }

.card-info {
    display: flex;
    flex-direction: column;
}

.card-info h4 {
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.kit-title {
    flex: 1;
    margin: 0;
}

.kit-price {
    flex-shrink: 0;
    margin-left: auto;
    font-weight: 800;
    color: var(--brand-accent);
    font-size: 0.85rem;
}
.card-tag { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; color: var(--ui-step-muted); }

/* ── SLIDE DECK PREVIEW (MODAL) ── */
.deck-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 2rem;
}
.deck-modal.active { display: flex; }

.deck-container {
    background: #fff; width: 100%; max-width: 1100px; height: 85vh;
    border-radius: 8px; display: grid; grid-template-columns: 1fr 320px;
    overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.2);
}

/* Left: Scrollable Stack of Slides */
.deck-viewport {
    background: #f1f5f9; padding: 2rem; overflow-y: auto;
    display: flex; flex-direction: column; gap: 20px;
}
.slide-item {
    background: #fff; aspect-ratio: 16 / 9; width: 100%;
    border-radius: 4px; border: 1px solid var(--ui-step-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #cbd5e1;
    position: relative; overflow: hidden;
}
.slide-label { position: absolute; top: 10px; left: 10px; font-size: 0.6rem; font-weight: 800; color: #94a3b8; }

/* Right: Action Panel */
.deck-sidebar {
    padding: 2.5rem; border-left: 1px solid var(--ui-step-border);
    display: flex; flex-direction: column;
}
.deck-sidebar h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.deck-sidebar p { font-size: 0.8rem; color: var(--ui-step-muted); line-height: 1.6; margin-bottom: 2rem; }

.btn-deck {
    width: 100%; padding: 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em; border: none; cursor: pointer;
    transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-apply { background: #000; color: #fff; }
.btn-apply:hover { background: var(--brand-accent); }
.btn-edit { background: #fff; border: 1px solid var(--ui-step-border); color: var(--ui-step-text); margin-bottom: 10px;}
.btn-edit:hover { border-color: #000; }


/* ======================================

Pricing Styles

=========================================== */

.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; /* Tight spacing */
    align-items: stretch;
}

.price-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s;
}

.price-card:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
}

.price-card.featured {
    border: 2px solid var(--brand-accent);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
    transform: scale(1.02);
    z-index: 2;
}

/* Typography: Small & Professional */
.plan-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    display: block;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
}

.price-display {
    margin-bottom: 2rem;
    line-height: 1;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--brand-dark);
}

.price-currency {
    font-size: 0.9rem;
    vertical-align: super;
    margin-right: 2px;
    font-weight: 700;
}

.price-period {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Features: Ultra Compact */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.feature-item i {
    font-size: 0.8rem;
    color: #10b981;
}

.feature-item.disabled {
    color: var(--text-light);
    opacity: 0.5;
}
.feature-item.disabled i {
    color: var(--text-light);
}

.btn-plan {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
}

.btn-plan-primary { background: #000; color: #fff; border: none; }
.btn-plan-primary:hover { background: var(--brand-accent); color: #fff; }

.btn-plan-outline { border: 1px solid #e2e8f0; color: var(--text-main); }
.btn-plan-outline:hover { border-color: #000; background: #f8fafc; }

/* Currency Wrapper & Gateway Badge */
.logo-wrapper {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 999;
}
.currency-wrapper {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 999;
}

.currency-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.gateway-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    cursor: default;
}

.gateway-text {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Stack on mobile to prevent overlapping the text */
@media (max-width: 768px) {
    .currency-wrapper {
        position: relative;
        top: auto;
        right: auto;
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
    }
    .currency-inner {
        align-items: center;
    }
}



