/* yongjoon.xyz - Generative Art Personal Space */

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Body === */
body {
    background: #0A0A12;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Generative Canvas === */
#gen-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
}

/* === Section Heading === */
.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

/* === Hero Zone === */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 48px;
    color: #FFFFFF;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px rgba(0, 255, 179, 0.15), 0 0 80px rgba(0, 255, 179, 0.05);
}

.hero-sub {
    font-size: 16px;
    color: #8888AA;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.regen-btn {
    font-family: 'Fira Mono', monospace;
    font-size: 13px;
    color: #8888AA;
    background: rgba(10, 10, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(4px);
}

.regen-btn:hover {
    color: #00FFB3;
    border-color: rgba(0, 255, 179, 0.4);
    background: rgba(0, 255, 179, 0.08);
}

.regen-btn:active .regen-icon {
    animation: spin-once 0.5s ease;
}

@keyframes spin-once {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.regen-icon {
    display: inline-block;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    animation: float-down 2s ease-in-out infinite;
}

@keyframes float-down {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 0.2; }
}

/* === Panels (shared) === */
.panel {
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 2rem;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* === Experiments Section === */
.experiments {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem 4rem;
}

.cat-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pill {
    font-family: 'Fira Mono', monospace;
    font-size: 12px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    color: #8888AA;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.pill:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

.pill.active {
    background: linear-gradient(135deg, #00FFB3, #4488FF);
    color: #0A0A12;
    border-color: transparent;
    font-weight: 400;
}

.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.exp-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.exp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.exp-card.hidden {
    display: none;
}

.exp-color-bar {
    height: 4px;
    border-radius: 2px;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

.exp-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
}

.exp-desc {
    font-size: 13px;
    color: #8888AA;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.exp-launch {
    font-family: 'Fira Mono', monospace;
    font-size: 12px;
    color: #00FFB3;
    text-decoration: none;
    transition: color 0.25s ease;
}

.exp-launch:hover {
    color: #FFD700;
}

.surprise {
    text-align: center;
    margin-top: 2rem;
}

.surprise-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF6EC7, #FFD700);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.surprise-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 24px rgba(255, 110, 199, 0.3);
}

/* === Playground Section === */
.playground {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem 4rem;
}

.playground-intro {
    text-align: center;
    color: #8888AA;
    font-size: 14px;
    margin-bottom: 2rem;
}

.playground-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    margin-bottom: 1.5rem;
}

.param-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.param-label {
    font-family: 'Fira Mono', monospace;
    font-size: 12px;
    color: #8888AA;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.param-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00FFB3;
    cursor: pointer;
    border: 2px solid #0A0A12;
    box-shadow: 0 0 8px rgba(0, 255, 179, 0.4);
}

.param-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00FFB3;
    cursor: pointer;
    border: 2px solid #0A0A12;
    box-shadow: 0 0 8px rgba(0, 255, 179, 0.4);
}

.param-value {
    font-family: 'Fira Mono', monospace;
    font-size: 13px;
    color: #00FFB3;
}

.param-select {
    font-family: 'Fira Mono', monospace;
    font-size: 13px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    outline: none;
}

.param-select option {
    background: #0A0A12;
    color: #FFFFFF;
}

.playground-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #0A0A12;
    background: #00FFB3;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 255, 179, 0.3);
}

.action-btn.secondary {
    background: transparent;
    color: #8888AA;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.action-btn.secondary:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

/* === Gallery === */
.gallery {
    display: none;
    margin-top: 1rem;
}

.gallery.has-items {
    display: block;
}

.gallery-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #8888AA;
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Footer / Meta === */
.footer {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem 2rem;
}

.seed-display {
    font-family: 'Fira Mono', monospace;
    font-size: 12px;
    color: #4488FF;
    display: block;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.seed-display:hover {
    color: #00FFB3;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.6rem;
}

.flink {
    font-size: 13px;
    color: #8888AA;
    text-decoration: none;
    transition: color 0.25s ease;
}

.flink:hover {
    color: #FFFFFF;
}

.footer-tagline {
    font-size: 12px;
    color: rgba(136, 136, 170, 0.5);
    margin-top: 0.5rem;
}

/* === Responsive === */
@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }

    .section-heading {
        font-size: 24px;
    }

    .exp-grid {
        grid-template-columns: 1fr;
    }

    .playground-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 1.5rem 1.25rem;
        margin: 0 0.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* === Scroll reveal === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Notification toast === */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    font-family: 'Fira Mono', monospace;
    font-size: 12px;
    color: #0A0A12;
    background: #00FFB3;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
