/* gabs.feedback - Neomorphism Soft UI */

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

:root {
    --base: #E8E0D8;
    --shadow-dark: #C8C0B8;
    --shadow-light: #FFFFFF;
    --text-primary: #6B5E50;
    --text-secondary: #8A7D6B;
    --text-tertiary: #A09080;
    --active-accent: #7B9E8C;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.75;
    background: var(--base);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Neomorphic utility classes */
.neo-convex {
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.neo-concave {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

.neo-inset {
    box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

/* ==================== HERO ==================== */
#hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--base);
}

.hero-content {
    text-align: center;
}

.hero-gabs {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), -2px -2px 4px rgba(255, 255, 255, 0.7);
    line-height: 1.1;
    opacity: 0;
    transition: opacity 600ms ease, text-shadow 600ms ease;
}

.hero-gabs.extruded {
    opacity: 1;
}

.hero-feedback {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: var(--text-secondary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08), -1px -1px 2px rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 400ms ease 400ms;
}

.hero-feedback.extruded {
    opacity: 1;
}

/* ==================== SECTIONS ==================== */
.section-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

/* ==================== RATING SCALE ==================== */
#scale {
    padding: clamp(3rem, 6vw, 6rem) 2rem;
}

.rating-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.rating-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--base);
    border: none;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: box-shadow 200ms ease-in-out, transform 200ms ease, color 200ms ease;
    opacity: 0;
    transform: scale(0.8);
}

.rating-circle.visible {
    opacity: 1;
    transform: scale(1);
}

.rating-circle:hover {
    transform: scale(1.05);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.rating-circle.selected {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    color: var(--active-accent);
}

/* ==================== SLIDER ==================== */
#slider-section {
    padding: clamp(2rem, 4vw, 4rem) 2rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.slider-label-left,
.slider-label-right {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.slider-track {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--base);
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    position: relative;
    opacity: 0;
    transition: opacity 400ms ease;
}

.slider-track.visible {
    opacity: 1;
}

.slider-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--base);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 300ms ease 400ms, left 300ms ease;
}

.slider-thumb.visible {
    transform: translate(-50%, -50%) scale(1);
}

/* ==================== COMMENT CARDS ==================== */
#comments {
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
}

.comment-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.comment-card {
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--base);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.comment-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.comment-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-dots {
    display: flex;
    gap: 6px;
}

.rating-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.rating-dots .dot.filled {
    background: var(--active-accent);
}

.rating-dots .dot.empty {
    background: var(--shadow-dark);
}

.comment-time {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ==================== TOGGLES ==================== */
#toggles {
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
}

.toggle-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.toggle-switch {
    width: 56px;
    height: 28px;
    border-radius: 14px;
    background: var(--base);
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    position: relative;
    cursor: pointer;
    transition: background 200ms ease;
}

.toggle-switch.on {
    background: rgba(123, 158, 140, 0.3);
}

.toggle-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--base);
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 200ms ease;
}

.toggle-switch.on .toggle-thumb {
    left: 31px;
}

/* ==================== FOOTER ==================== */
#footer {
    padding: 3rem 2rem;
    text-align: center;
}

.footer-sep {
    width: 60%;
    max-width: 300px;
    height: 4px;
    border-radius: 2px;
    background: var(--base);
    margin: 0 auto 1.5rem;
}

.footer-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .rating-circle {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .rating-row {
        gap: 12px;
    }
}
