/* ==============================
   Oh my Gogh! — Under Construction
   Design System & Styles (Variation 1)
   ============================== */

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

:root {
    --color-cream: #FFF8E7;
    --color-gold: #D4A843;
    --color-gold-light: #F0D68A;
    --color-dark: #0A0A0F;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-dark);
    cursor: crosshair;
}

/* ---- Canvas ---- */
#asciiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ---- Overlay ---- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* ---- Brand Container ---- */
.brand-container {
    text-align: center;
    padding: 2.5rem 4rem;
    position: relative;
}

.brand-container::before {
    content: '';
    position: absolute;
    inset: -2rem -3rem;
    background: radial-gradient(
        ellipse 70% 60% at 50% 45%,
        rgba(10, 10, 15, 0.88) 0%,
        rgba(10, 10, 15, 0.6) 45%,
        rgba(10, 10, 15, 0.25) 70%,
        transparent 100%
    );
    border-radius: 12px;
    z-index: -1;
    filter: blur(25px);
}

/* ---- Title ---- */
.brand-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--color-cream);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-shadow:
        0 0 40px rgba(212, 168, 67, 0.3),
        0 0 80px rgba(212, 168, 67, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-block;
    user-select: none;
}

.title-word {
    display: inline-block;
    animation: letterReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--i) * 0.08s + 0.5s);
}

.title-space {
    display: inline-block;
    width: 0.3em;
}

.title-word.accent {
    font-style: italic;
    color: var(--color-gold-light);
    text-shadow:
        0 0 40px rgba(212, 168, 67, 0.5),
        0 0 80px rgba(212, 168, 67, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) rotateX(-40deg) scale(0.8);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        filter: blur(0);
    }
}

/* ---- Divider ---- */
.divider {
    width: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-gold) 20%,
        var(--color-gold-light) 50%,
        var(--color-gold) 80%,
        transparent 100%
    );
    margin: 1.2rem auto;
    animation: dividerExpand 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
    opacity: 0.7;
}

@keyframes dividerExpand {
    0% { width: 0; opacity: 0; }
    100% { width: 120px; opacity: 0.7; }
}

/* ---- Subtitle ---- */
.subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.7rem, 1.5vw, 0.95rem);
    color: var(--color-gold);
    letter-spacing: 0.4em;
    opacity: 0;
    animation: subtitleFade 1s ease 2s both;
    position: relative;
}

.subtitle::after {
    content: '█';
    animation: cursorBlink 1s step-end infinite;
    margin-left: 2px;
    font-size: 0.8em;
    color: var(--color-gold-light);
}

@keyframes subtitleFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0.85; transform: translateY(0); }
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- Tagline ---- */
.tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    color: rgba(255, 248, 231, 0.6);
    margin-top: 1rem;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: subtitleFade 1s ease 2.3s both;
}

/* ---- Contact Email ---- */
.contact-email {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--color-gold);
    text-decoration: none;
    letter-spacing: 0.12em;
    margin-top: 0.8rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(212, 168, 67, 0.35);
    border-radius: 100px;
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    animation: subtitleFade 1s ease 2.6s both;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.contact-email:hover {
    background: rgba(212, 168, 67, 0.12);
    border-color: rgba(212, 168, 67, 0.6);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.12);
    color: var(--color-gold-light);
}

/* ---- Painting Indicator ---- */
.painting-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    pointer-events: auto;
    opacity: 0;
    animation: subtitleFade 1s ease 2.5s both;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 248, 231, 0.2);
    border: 1px solid rgba(212, 168, 67, 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.indicator-dot.active {
    background: var(--color-gold);
    border-color: var(--color-gold-light);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.5);
    transform: scale(1.3);
}

.indicator-dot:hover {
    background: rgba(255, 248, 231, 0.5);
    transform: scale(1.2);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .brand-container {
        padding: 2rem;
    }
    .painting-indicator {
        bottom: 1.5rem;
    }
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    .nav-arrow--left { left: 0.75rem; }
    .nav-arrow--right { right: 0.75rem; }
    .painting-counter { right: 0.75rem; bottom: 0.75rem; }
}

@media (max-width: 480px) {
    .brand-container {
        padding: 1.5rem 1rem;
    }
    .nav-arrow {
        width: 34px;
        height: 34px;
    }
}

/* ---- Side Navigation Arrows ---- */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: auto;

    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 67, 0.25);
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-cream);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    animation: subtitleFade 1s ease 2.5s both;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-arrow svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-arrow--left {
    left: 1.5rem;
}

.nav-arrow--right {
    right: 1.5rem;
}

.nav-arrow:hover {
    background: rgba(212, 168, 67, 0.15);
    border-color: rgba(212, 168, 67, 0.6);
    box-shadow:
        0 0 20px rgba(212, 168, 67, 0.15),
        inset 0 0 20px rgba(212, 168, 67, 0.05);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow:hover svg {
    transform: scale(1.15);
}

.nav-arrow--left:hover svg {
    transform: translateX(-2px) scale(1.15);
}

.nav-arrow--right:hover svg {
    transform: translateX(2px) scale(1.15);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(212, 168, 67, 0.25);
}

/* ---- Painting Counter ---- */
.painting-counter {
    position: fixed;
    right: 1.5rem;
    bottom: 1.8rem;
    z-index: 20;
    pointer-events: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(212, 168, 67, 0.5);
    opacity: 0;
    animation: subtitleFade 1s ease 2.5s both;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.counter-current {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-gold);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.counter-sep {
    opacity: 0.4;
    margin: 0 1px;
}

.counter-total {
    font-weight: 300;
    opacity: 0.6;
}

/* ---- Settings Panel ---- */
.settings-panel {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 30;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.settings-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 67, 0.35);
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: subtitleFade 1s ease 2.8s both;
}

.settings-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s ease;
}

.settings-toggle:hover {
    background: rgba(212, 168, 67, 0.15);
    border-color: rgba(212, 168, 67, 0.6);
    transform: rotate(90deg);
}

.settings-content {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: 12px;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transform-origin: top right;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: scale(1);
}

.settings-panel.collapsed .settings-content {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.settings-panel.collapsed .settings-toggle svg {
    transform: rotate(0deg);
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Custom Select */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.6rem;
    color: var(--color-gold-light);
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.setting-group select {
    width: 100%;
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.setting-group select:hover {
    border-color: rgba(212, 168, 67, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.setting-group select option {
    background: var(--color-dark);
    color: var(--color-cream);
}

/* Custom Range Slider */
.setting-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--color-gold);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
    transition: transform 0.1s;
}

.setting-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.setting-group input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
