/* ==========================================================================
   RUMPEL PORTFOLIO GLOBAL DESIGN TOKENS
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-warm-black: #0a0805;   /* Warm, cozy base */
    --bg-card: rgba(26, 26, 26, 0.85); /* Transparent to let fireflies peek through */
    
    --accent-green: #00FF7F;    /* Rumpel's signature interactive highlight */
    --accent-muted: #00b358;
    --accent-amber: #FFC94A;    /* Firefly core color */
    
    --text-primary: #f0f0f0;
    --text-muted: #a0a0a0;
    --text-dark: #0a0805;
    
    --max-width: 480px;         /* Mobile-first boundary */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-warm-black);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   BACKGROUND CANVAS (FIREFLIES)
   ========================================================================== */

#firefly-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Sits behind everything */
    pointer-events: none; /* Allows clicks to pass through to elements beneath */
}

/* ==========================================================================
   MAIN STRUCTURAL STAGE
   ========================================================================== */

#app-stage {
    width: 100%;
    max-width: var(--max-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2; /* Sits securely in front of canvas */
    padding: 24px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   HERO INTERFACE UI
   ========================================================================== */

.hero-container {
    text-align: center;
    padding: 40px 0;
}

.hero-logo {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero-logo span {
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(0, 255, 127, 0.3);
}

.hero-tagline {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 48px;
    padding: 0 10px;
}

/* Interactive CTA Anchors/Buttons */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--text-dark);
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.15);
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.btn-primary:active {
    transform: scale(0.98);
    background-color: var(--accent-muted);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--accent-green);
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
    border: 2px solid var(--accent-green);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.btn-secondary:active {
    transform: scale(0.98);
    background-color: rgba(0, 255, 127, 0.08);
}

/* Mandatory Global Fixed Passive Watermark */
.rumpel-watermark {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}
/* ==========================================================================
   PORTFOLIO LIVE DEMO FEED CARDS (COMPONENT 3)
   ========================================================================== */

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(4px); /* Lets fireflies blur behind the card organically */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Status Badges */
.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}
.status-badge.live { background: rgba(0, 255, 127, 0.15); color: var(--accent-green); border: 1px solid rgba(0, 255, 127, 0.3); }
.status-badge.dev { background: rgba(255, 201, 74, 0.15); color: var(--accent-amber); border: 1px solid rgba(255, 201, 74, 0.3); }
.status-badge.planned { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.card-description {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Embedded Sandbox Frames for Chromebook rendering */
.demo-iframe-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    background: #000;
}

.demo-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.demo-iframe-placeholder {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.2);
}

/* Card Actions and Tags */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.tech-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tech-tags span {
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
}

.card-action-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--accent-green);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.card-action-btn.locked {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
}
/* ==========================================================================
   AGE VERIFICATION INTERFACE CARD (COMPONENT 4)
   ========================================================================== */

.age-gate-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px 24px;
    backdrop-filter: blur(4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.age-btn {
    width: 100%;
    text-transform: none !important; /* Keep text natural and welcoming instead of shouting */
    letter-spacing: normal !important;
}
/* ==========================================================================
   ORDER CONFIRMATION RECEIPT CARD (COMPONENT 5)
   ========================================================================== */

.receipt-card {
    background: var(--bg-card);
    border: 2px dashed rgba(0, 255, 127, 0.3); /* Dashed border to look like a food ticket */
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.receipt-header {
    text-align: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.receipt-line-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.receipt-line-item .label {
    color: var(--text-muted);
    font-weight: 500;
}

.receipt-line-item .value {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
    max-width: 60%;
}

.payment-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-top: 20px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
}

.payment-row strong {
    color: var(--accent-green);
}
/* ==========================================================================
   PIZZA BUILDER VISUAL PATCH (MAKE IT LOOK PREMIUM)
   ========================================================================== */

/* Fix the ugly white text box and change it to dark glass */
.pizza-text-input, .pizza-textarea-input {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.4) !important; /* Forces the box dark */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

/* Give the inputs an electric green border when you click inside them */
.pizza-text-input:focus, .pizza-textarea-input:focus {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 8px rgba(0, 255, 127, 0.2);
}

/* Polish the multiple-choice radio and checkbox cards */
.pizza-radio-card, .pizza-check-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

/* Make card text stand out nicely next to the inputs */
.pizza-radio-card span, .pizza-check-card span {
    margin-left: 8px;
    color: var(--text-primary);
}

/* Fix the color swatch circles so they display beautifully */
.swatch-flex-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.swatch-unit {
    aspect-ratio: 1;
    border-radius: 50% !important; /* Changes square blocks into clean color pills */
    background-color: var(--swatch-color);
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.swatch-unit:hover {
    transform: scale(1.1);
}