/* kPixies - Main Stylesheet */

/* ==================== */
/* BASE STYLES */
/* ==================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: #cbd5e1;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ==================== */
/* BUTTONS */
/* ==================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #a3e635;
    color: #020617;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 0 30px rgba(163, 230, 53, 0.15);
}

.btn-primary:hover {
    background-color: #bef264;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background-color: rgba(34, 211, 238, 0.2);
}

/* ==================== */
/* ANIMATIONS */
/* ==================== */

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ==================== */
/* LAYOUT COMPONENTS */
/* ==================== */

/* Glassmorphism header */
.glass {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Section label (the small tag above section titles) */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-label::before {
    content: '';
    width: 2rem;
    height: 1px;
}

.section-label.lime::before {
    background-color: #a3e635;
}

.section-label.cyan::before {
    background-color: #22d3ee;
}

/* ==================== */
/* GLOW EFFECTS */
/* ==================== */

.glow-lime {
    box-shadow: 0 0 30px rgba(163, 230, 53, 0.15);
}

.glow-cyan {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1);
}

/* ==================== */
/* CARDS */
/* ==================== */

.card {
    background-color: #020617;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .card {
        padding: 2rem;
    }
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: #a3e635;
}

/* Icon container in cards */
.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon.lime {
    background-color: rgba(163, 230, 53, 0.1);
}

.card-icon.cyan {
    background-color: rgba(34, 211, 238, 0.1);
}

/* ==================== */
/* TIMELINE / PROTOCOL */
/* ==================== */

.timeline-step {
    position: relative;
    text-align: center;
}

.timeline-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border-width: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 10;
    background-color: #020617;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline-number.cyan {
    border-color: #22d3ee;
    color: #22d3ee;
    background-color: rgba(34, 211, 238, 0.1);
}

.timeline-number.lime {
    border-color: #a3e635;
    color: #a3e635;
    background-color: rgba(163, 230, 53, 0.1);
}

/* ==================== */
/* CHECKLIST (The Gate) */
/* ==================== */

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
}

.checklist-item.yes {
    background-color: rgba(163, 230, 53, 0.05);
    border: 1px solid rgba(163, 230, 53, 0.2);
}

.checklist-item.no {
    background-color: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.checklist-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.checklist-icon.yes {
    background-color: rgba(163, 230, 53, 0.2);
}

.checklist-icon.no {
    background-color: rgba(236, 72, 153, 0.2);
}

/* ==================== */
/* FORM INPUTS */
/* ==================== */

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Calculator number input */
.calc-input {
    width: 100%;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1rem 1rem 1rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: white;
    transition: border-color 0.2s ease;
}

.calc-input:focus {
    outline: none;
    border-color: #a3e635;
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    outline: none;
    margin-top: 0.75rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #a3e635;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #a3e635;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.5);
}

/* ==================== */
/* RESULT DISPLAY */
/* ==================== */

.result-box {
    background-color: rgba(30, 41, 59, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.result-box.highlight {
    background-color: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.3);
}

/* ==================== */
/* RECEIPT TABLE */
/* ==================== */

.receipt-table {
    border: 2px dashed #1e293b;
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

@media (min-width: 640px) {
    .receipt-table {
        padding: 2rem;
    }
}

.receipt-table th,
.receipt-table td {
    border-bottom: 1px dashed #1e293b;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #1e293b;
}

/* ==================== */
/* DATA DISPLAY */
/* ==================== */

.stat-box {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.stat-box.success {
    border: 1px solid rgba(163, 230, 53, 0.3);
    box-shadow: 0 0 30px rgba(163, 230, 53, 0.15);
}

/* ==================== */
/* UTILITY CLASSES */
/* ==================== */

.text-lime { color: #a3e635; }
.text-cyan { color: #22d3ee; }
.text-pink { color: #ec4899; }
.text-white { color: white; }
.text-muted { color: #64748b; }

.bg-lime-10 { background-color: rgba(163, 230, 53, 0.1); }
.bg-cyan-10 { background-color: rgba(34, 211, 238, 0.1); }
.bg-pink-10 { background-color: rgba(236, 72, 153, 0.1); }

.border-section {
    border-top: 1px solid #1e293b;
}
