

/* app/static/theme.css */
:root {
    --pico-background-color: #0b0f1c !important;
    --pico-color: #e0e6f0 !important;
    --pico-primary: #4f9eff !important;
    --pico-primary-hover: #3b8ae0 !important;
    --pico-card-background-color: rgba(20, 25, 45, 0.85) !important;
    --pico-card-border-color: rgba(100, 180, 255, 0.2) !important;
    --pico-card-box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    --pico-block-spacing-vertical: 3rem !important
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.7;
}

/* ---------------- Typography ------------------ */
h1, h2, h3, h4, h5, h6 {
    color: #f0f4ff !important;  /* very light blue-white */
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem !important; }
h2 { font-size: 2.2rem !important; margin-top: 2rem; }
h3 { font-size: 1.6rem !important; }


p, li, small { color: #d0d8f0 !important; }
a { color: #7ab8ff !important; }
a:hover { color: #a3d0ff !important; }



/* ------------- Layout helpers ----------------- */
.container {
    max-width: 1100px !important;
    padding: 2rem 1.5rem !important;
}

section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(100, 180, 255, 0.08);
}
section:last-of-type { border-bottom: none; }


/* ---------------------- Card Tweaks ------------------- */
article {
    backdrop-filter: blur(4px);
    border: 1px solid var(--pico-card-border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 2rem !important;
    margin-bottom: 1rem;
}

article:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 24px rgba(100,180,255,0.2);
    border-color: rgba(100,180,255,0.4);
}

/* Grid gap for card layouts */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);  /* always 3 columns for desktop */
}

/* On medium screens, use 2 columns */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For narrow screens, drop to 1 column */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------- Hero specific ------------------- */

header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ----------- CTA button --------------- */
a[role="button"] {
    color: antiquewhite;
    transition: box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 0 12px rgba(79, 158, 255, 0.3);
}

a[role="button"]:hover {
    box-shadow: 0 0 24px rgba(79, 158, 255, 0.7);
    transform: translateY(-2px);
}

/* ------------- Code block -------------- */
.code-block {
    background: rgba(10, 15, 25, 0.9);
    border: 1px solid rgba(100,180,255,0.3);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    font-family: 'Fira Code', monospace;
    margin: 2rem 0;
}
.copy-btn {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: var(--pico-primary);
    border: none;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
}

/* --------- Stats Bar ------------------ */
.stats {
    background: rgbs(20, 25, 45, 0.6);
    border-radius: 12px;
    padding: 2rem;
    margin: 0;
}


/* ------------ Status dot -------------- */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    margin-right: 6px;
}


/* ------------ Nav -------------- */
nav {
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
nav img {
    width: auto;
    height: 200px;
    max-width: 100%;
    object-fit: contain;
    margin-right: 1rem;
}
nav li {
    font-size: 1.25rem;
    object-fit: contain;
    align-items: center;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    nav img {
        height: auto;
        max-height: 120px;
        width: 100%;
        max-width: 300px;
    }
    nav ul {
        margin-top: 1rem;
    }
}


/* -------------- Footer --------------- */
footer {
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(100, 180, 255, 0.1);
    font-size: 0.9rem;
}

/* ------------ Dashboard --------------- */
#upgrade-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index:1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
#upgrade-popup article{
    max-width: 500px;
    background: var(--pico-background-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 30px rgba(79,158,255,0.4);
    animation: fadeInUp 0.3s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
