/* =============================================================
 FILE: Landing-Exchange.css
 PURPOSE: Global CSS include for Landing Exchange, shared across multiple pages.

 USED BY:
   - /index.php
 ============================================================= */
/* ================================================
   Landing Page - Exchange Showcase & Corporation Showcase
   Two full-viewport sections for IndieDB screenshots
   ================================================ */

/* ---- Dark Section Custom Properties ---- */
.exchange-showcase {
    --exch-bg: #0a0f1a;
    --exch-bg-card: #101827;
    --exch-surface: #151d2e;
    --exch-border: rgba(125, 211, 252, 0.15);
    --exch-border-bright: rgba(125, 211, 252, 0.35);
    --exch-accent: #7dd3fc;
    --exch-accent-dim: rgba(125, 211, 252, 0.1);
    --exch-green: #22c55e;
    --exch-red: #ef4444;
    --exch-text: #e2e8f0;
    --exch-text-muted: #94a3b8;
    --exch-gold: #f59e0b;
    --exch-shadow-card:
        0 2px 5px rgba(0,0,0,0.12),
        0 8px 20px rgba(0,0,0,0.16),
        0 24px 48px rgba(0,0,0,0.14),
        0 48px 80px rgba(0,0,0,0.1);
}

.corp-showcase {
    --corp-bg: #0d1117;
    --corp-surface: #131a24;
    --corp-card-bg: #161e2b;
    --corp-border: rgba(234, 179, 8, 0.1);
    --corp-border-bright: rgba(234, 179, 8, 0.25);
    --corp-gold: #eab308;
    --corp-gold-dim: rgba(234, 179, 8, 0.06);
    --corp-accent: #f59e0b;
    --corp-text: #e2e8f0;
    --corp-text-muted: #94a3b8;
    --corp-shadow-card:
        0 2px 5px rgba(0,0,0,0.14),
        0 8px 18px rgba(0,0,0,0.18),
        0 22px 44px rgba(0,0,0,0.12),
        0 44px 72px rgba(0,0,0,0.08);
}

/* ================================================
   SECTION 1: Exchange Showcase
   ================================================ */
.exchange-showcase {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--exch-bg);
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 8vw, 120px) clamp(16px, 3vw, 48px);
}

/* Subtle radial glow behind content */
.exchange-showcase::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(125, 211, 252, 0.08) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

.exchange-showcase-inner {
    max-width: 1180px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
    position: relative;
    z-index: 1;
}

/* ---- Shared Badge / Title / Subtitle / CTA ---- */
.showcase-badge {
    display: inline-block;
    padding: 6px 20px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.68rem, 0.9vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    border-radius: 28px 34px 28px 34px;
    line-height: 1.5;
}

.exchange-showcase .showcase-badge {
    color: var(--exch-accent);
    background: var(--exch-accent-dim);
    border: 1px solid var(--exch-border-bright);
}

.corp-showcase .showcase-badge {
    color: var(--corp-gold);
    background: var(--corp-gold-dim);
    border: 1px solid var(--corp-border-bright);
}

.showcase-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-align: center;
    max-width: 780px;
}

.exchange-showcase .showcase-title {
    color: var(--exch-text);
}

.corp-showcase .showcase-title {
    color: var(--corp-text);
}

.showcase-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.95rem, 1.4vw, 1.12rem);
    font-weight: 400;
    line-height: 1.75;
    text-align: center;
    max-width: 620px;
}

.exchange-showcase .showcase-subtitle {
    color: var(--exch-text-muted);
}

.corp-showcase .showcase-subtitle {
    color: var(--corp-text-muted);
}

.showcase-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(12px, 1.6vw, 16px) clamp(28px, 3.5vw, 44px);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.9rem, 1.2vw, 1.02rem);
    font-weight: 600;
    border: none;
    border-radius: 7px 14px 7px 14px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    min-height: 48px;
    min-width: 48px;
    transition:
        background-color 280ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.exchange-showcase .showcase-cta {
    background: var(--exch-accent);
    color: #0a0f1a;
    box-shadow:
        0 2px 6px rgba(56, 189, 248, 0.2),
        0 8px 22px rgba(56, 189, 248, 0.15),
        0 20px 44px rgba(56, 189, 248, 0.08),
        0 40px 72px rgba(56, 189, 248, 0.04);
}

.exchange-showcase .showcase-cta:hover {
    background: #5bbfea;
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px rgba(125, 211, 252, 0.3),
        0 12px 30px rgba(125, 211, 252, 0.22),
        0 28px 56px rgba(125, 211, 252, 0.12),
        0 48px 80px rgba(125, 211, 252, 0.06);
}

.corp-showcase .showcase-cta {
    background: var(--corp-gold);
    color: #0d1117;
    box-shadow:
        0 2px 6px rgba(234, 179, 8, 0.18),
        0 8px 22px rgba(234, 179, 8, 0.14),
        0 20px 44px rgba(234, 179, 8, 0.08),
        0 40px 72px rgba(234, 179, 8, 0.04);
}

.corp-showcase .showcase-cta:hover {
    background: #ca8a04;
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px rgba(234, 179, 8, 0.24),
        0 12px 30px rgba(234, 179, 8, 0.18),
        0 28px 56px rgba(234, 179, 8, 0.1),
        0 48px 80px rgba(234, 179, 8, 0.05);
}

/* ================================================
   Exchange Ticker Bar
   ================================================ */
.showcase-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: clamp(10px, 1.2vw, 16px) 0;
    border-top: 1px solid var(--exch-border);
    border-bottom: 1px solid var(--exch-border);
}

.showcase-ticker-track {
    display: flex;
    gap: clamp(24px, 3vw, 40px);
    animation: ticker-scroll 30000ms linear infinite;
    width: max-content;
}

.showcase-ticker-item {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 10px);
    flex-shrink: 0;
    font-family: 'Playfair Display', Georgia, serif;
    white-space: nowrap;
}

.showcase-ticker-name {
    font-size: clamp(0.78rem, 1vw, 0.88rem);
    font-weight: 600;
    color: var(--exch-text);
    letter-spacing: 0.3px;
}

.showcase-ticker-price {
    font-size: clamp(0.78rem, 1vw, 0.88rem);
    font-weight: 500;
    color: var(--exch-text-muted);
}

.showcase-ticker-change {
    font-size: clamp(0.72rem, 0.9vw, 0.82rem);
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px 7px 3px 7px;
}

.showcase-ticker-change.up {
    color: var(--exch-green);
    background: rgba(34, 197, 94, 0.1);
}

.showcase-ticker-change.down {
    color: var(--exch-red);
    background: rgba(239, 68, 68, 0.1);
}

.showcase-ticker-change.flat {
    color: var(--exch-text-muted);
    background: rgba(148, 163, 184, 0.08);
}

.showcase-ticker-placeholder {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.82rem, 1vw, 0.92rem);
    color: var(--exch-text-muted);
    text-align: center;
    padding: 6px 0;
    letter-spacing: 0.5px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================================
   Exchange Visual Panel (Order Book + Chart)
   ================================================ */
.exchange-visual-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(16px, 2.5vw, 28px);
    width: 100%;
    max-width: 960px;
}

/* ---- Order Book ---- */
.showcase-orderbook {
    background: var(--exch-surface);
    border: 1px solid var(--exch-border);
    border-radius: 5px 11px 5px 11px;
    padding: clamp(16px, 2vw, 24px);
    box-shadow: var(--exch-shadow-card);
}

.orderbook-header {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.88rem, 1.2vw, 1.05rem);
    font-weight: 400;
    color: var(--exch-text);
    margin-bottom: clamp(12px, 1.5vw, 18px);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--exch-border);
    letter-spacing: 0.02em;
}

.orderbook-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 1.5vw, 18px);
}

.orderbook-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orderbook-side-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.68rem, 0.85vw, 0.76rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.orderbook-side-label.bid-label {
    color: var(--exch-green);
}

.orderbook-side-label.ask-label {
    color: var(--exch-red);
}

.orderbook-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    border-radius: 3px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.72rem, 0.9vw, 0.82rem);
    position: relative;
    overflow: hidden;
}

.orderbook-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 0.08;
    border-radius: 3px;
}

.orderbook-row.bid-row::before {
    background: var(--exch-green);
    width: var(--depth, 40%);
}

.orderbook-row.ask-row::before {
    background: var(--exch-red);
    width: var(--depth, 40%);
    left: 0;
    right: auto;
}

.orderbook-price {
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.bid-row .orderbook-price {
    color: var(--exch-green);
}

.ask-row .orderbook-price {
    color: var(--exch-red);
}

.orderbook-qty {
    color: var(--exch-text-muted);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ---- CSS Animated Chart ---- */
.showcase-chart-visual {
    background: var(--exch-surface);
    border: 1px solid var(--exch-border);
    border-radius: 5px 11px 5px 11px;
    padding: clamp(16px, 2vw, 24px);
    box-shadow: var(--exch-shadow-card);
    display: flex;
    flex-direction: column;
}

.chart-header {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.88rem, 1.2vw, 1.05rem);
    font-weight: 400;
    color: var(--exch-text);
    margin-bottom: clamp(12px, 1.5vw, 18px);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--exch-border);
    letter-spacing: 0.02em;
}

.chart-bars-area {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: clamp(3px, 0.5vw, 6px);
    padding-top: 12px;
    min-height: 180px;
}

.chart-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.chart-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    position: relative;
    animation: chart-bar-grow 1800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: bottom;
}

.chart-bar.positive {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.7), rgba(34, 197, 94, 0.35));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-bottom: none;
}

.chart-bar.negative {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.7), rgba(239, 68, 68, 0.35));
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-bottom: none;
}

.chart-bar-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.58rem, 0.7vw, 0.68rem);
    color: var(--exch-text-muted);
    text-align: center;
    letter-spacing: 0.3px;
}

@keyframes chart-bar-grow {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Chart line overlay - animated SVG-like line using pseudo elements */
.chart-line-overlay {
    position: relative;
    height: 2px;
    margin-top: -90px;
    margin-bottom: 90px;
    background: linear-gradient(90deg,
        var(--exch-accent) 0%,
        var(--exch-green) 35%,
        var(--exch-red) 55%,
        var(--exch-green) 80%,
        var(--exch-accent) 100%
    );
    opacity: 0.5;
    border-radius: 1px;
    animation: chart-line-pulse 4000ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes chart-line-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* ================================================
   SECTION 2: Corporation Showcase
   ================================================ */
.corp-showcase {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--corp-bg);
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 8vw, 120px) clamp(16px, 3vw, 48px);
}

/* Subtle gold glow */
.corp-showcase::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(234, 179, 8, 0.04) 0%, transparent 65%);
    pointer-events: none;
    border-radius: 48% 52% 58% 42% / 53% 47% 56% 44%;
}

.corp-showcase::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 10%;
    width: 400px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 56% 44% 42% 58% / 48% 54% 46% 52%;
}

.corp-showcase-inner {
    max-width: 1180px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
    position: relative;
    z-index: 1;
}

/* ================================================
   Corporation Feature Cards Grid
   ================================================ */
.corp-features-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1fr 0.95fr;
    gap: clamp(14px, 2vw, 22px);
    width: 100%;
}

.corp-feature-card {
    background: var(--corp-card-bg);
    border: 1px solid var(--corp-border);
    border-radius: 4px 7px 5px 7px;
    padding: clamp(22px, 2.8vw, 32px) clamp(18px, 2.2vw, 26px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.3vw, 16px);
    box-shadow: var(--corp-shadow-card);
    position: relative;
    overflow: hidden;
    transition:
        transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 320ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top accent line */
.corp-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--corp-gold), rgba(234, 179, 8, 0.3));
    opacity: 0;
    transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.corp-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--corp-border-bright);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.16),
        0 12px 28px rgba(0,0,0,0.2),
        0 32px 56px rgba(0,0,0,0.14),
        0 56px 88px rgba(0,0,0,0.08);
}

.corp-feature-card:hover::before {
    opacity: 1;
}

.corp-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 5vw, 56px);
    height: clamp(44px, 5vw, 56px);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    background: var(--corp-gold-dim);
    border: 1px solid var(--corp-border);
    border-radius: 52% 48% 57% 43% / 47% 55% 45% 53%;
    flex-shrink: 0;
    transition:
        background-color 280ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 280ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.corp-feature-card:hover .corp-feature-icon {
    background: rgba(234, 179, 8, 0.12);
    border-color: var(--corp-border-bright);
    box-shadow:
        0 2px 4px rgba(234, 179, 8, 0.06),
        0 6px 16px rgba(234, 179, 8, 0.1),
        0 14px 32px rgba(234, 179, 8, 0.06),
        0 24px 48px rgba(234, 179, 8, 0.03);
}

.corp-feature-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    font-weight: 400;
    color: var(--corp-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.corp-feature-desc {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.82rem, 1vw, 0.92rem);
    font-weight: 400;
    color: var(--corp-text-muted);
    line-height: 1.7;
}

/* ================================================
   Reduced Motion Support
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    .showcase-ticker-track {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .chart-bar {
        animation-duration: 0.01ms !important;
    }

    .chart-line-overlay {
        animation-duration: 0.01ms !important;
    }

    .corp-feature-card,
    .showcase-cta,
    .corp-feature-icon {
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   Touch Devices
   ================================================ */
@media (hover: none) and (pointer: coarse) {
    .showcase-cta {
        min-height: 48px;
        min-width: 48px;
    }

    .corp-feature-card {
        min-height: 48px;
    }
}

/* ================================================
   Responsive: Tablet (max 900px)
   ================================================ */
@media (max-width: 900px) {
    .exchange-visual-panel {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .corp-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: clamp(12px, 2vw, 18px);
    }
}

/* ================================================
   Responsive: Mobile (max 768px)
   ================================================ */
@media (max-width: 768px) {
    .exchange-showcase,
    .corp-showcase {
        min-height: auto;
        padding: clamp(48px, 10vw, 80px) clamp(16px, 4vw, 28px);
    }

    .showcase-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .showcase-subtitle {
        font-size: clamp(0.88rem, 3vw, 1rem);
    }

    .exchange-visual-panel {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .corp-features-grid {
        grid-template-columns: 1fr;
    }

    .showcase-ticker-track {
        animation-duration: 18000ms;
    }

    .chart-bars-area {
        min-height: 140px;
    }

    .exchange-showcase::before,
    .corp-showcase::before,
    .corp-showcase::after {
        display: none;
    }
}

/* ================================================
   Responsive: Small mobile (max 480px)
   ================================================ */
@media (max-width: 480px) {
    .showcase-badge {
        font-size: clamp(0.62rem, 2.5vw, 0.72rem);
        padding: 5px 14px;
    }

    .showcase-cta {
        width: 100%;
        justify-content: center;
    }

    .orderbook-columns {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .corp-feature-card {
        padding: 18px 16px;
    }
}

/* ================================================
   Responsive: Extra small (max 320px)
   ================================================ */
@media (max-width: 320px) {
    .showcase-title {
        font-size: clamp(1.3rem, 8vw, 1.6rem);
    }

    .showcase-subtitle {
        font-size: clamp(0.82rem, 3vw, 0.88rem);
    }

    .showcase-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .showcase-cta {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .orderbook-row {
        padding: 4px 6px;
    }

    .chart-bars-area {
        min-height: 110px;
    }

    .corp-feature-card {
        padding: 14px 12px;
    }
}
