/* ===========================================
   HASBEEN VILLA - hasbeen-villa.css
   Reality Villa Simulator
   =========================================== */

:root {
    --hh-pink-300:    #ffa0b8;
    --hh-pink-400:    #FF3D6B;
    --hh-pink-500:    #e0174a;
    --hh-pink-600:    #b8113b;
    --hh-pink-700:    #8f0d2e;

    --hh-neutral-900: #0D0A1A;
    --hh-neutral-800: #130F22;
    --hh-neutral-700: #1A1430;
    --hh-neutral-600: #221A3A;
    --hh-neutral-500: #2A2048;
    --hh-neutral-400: #322660;

    --hh-text-primary:   #F5F0FF;
    --hh-text-secondary: #C4A8D4;
    --hh-text-muted:     #6B5080;
    --hh-text-accent:    var(--hh-pink-400);

    --hh-border-default: rgba(255, 61, 107, 0.12);
    --hh-border-accent:  rgba(255, 61, 107, 0.35);
    --hh-border-subtle:  rgba(255, 255, 255, 0.06);
}

#hh-app {
    min-height: 100vh;
    background: var(--hh-neutral-900);
    color: var(--hh-text-primary);
    font-family: 'Inter', sans-serif;
}
#hh-app * { box-sizing: border-box; }
#hh-app .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ============================================
   HEADER & LOGO
   ============================================ */
.hh-header {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(255, 61, 107, 0.06) 0%,
        rgba(13, 10, 26, 0.95) 100%
    );
    border-bottom: 3px solid;
    border-image: linear-gradient(
        90deg,
        var(--hh-neutral-900),
        var(--hh-pink-700),
        var(--hh-pink-400),
        var(--hh-pink-600),
        var(--hh-pink-700),
        var(--hh-neutral-900)
    ) 1;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hh-logo-main {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(
        135deg,
        var(--hh-pink-300) 0%,
        var(--hh-pink-400) 35%,
        var(--hh-pink-300) 60%,
        var(--hh-pink-500) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hh-logo-subtitle {
    text-align: center;
    font-size: 0.75rem;
    color: var(--hh-text-muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 8px;
}

.hh-logo-credit {
    text-align: center;
    font-size: 0.65rem;
    color: var(--hh-text-muted);
    margin-top: 4px;
    opacity: 0.5;
}

.hh-accent-bar {
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--hh-neutral-900) 0%,
        var(--hh-pink-700) 20%,
        var(--hh-pink-400) 45%,
        var(--hh-pink-600) 80%,
        var(--hh-neutral-900) 100%
    );
    box-shadow: 0 0 14px rgba(255, 61, 107, 0.35);
}

/* ============================================
   NAV BUTTONS
   ============================================ */
.btn-nav {
    background: #27282d;
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.btn-nav:hover { background: #32333a; color: #e4e4e7; }

/* ============================================
   NOTIFICATION
   ============================================ */
#hh-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(13, 10, 26, 0.97);
    border: 1px solid var(--hh-border-accent);
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--hh-text-primary);
    font-size: 0.84rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}
#hh-notification.show { opacity: 1; transform: translateY(0); }

/* ============================================
   LAYOUT
   ============================================ */
.hh-section {
    padding: 32px 24px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.hh-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hh-text-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.hh-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hh-border-accent), transparent);
    margin: 14px 0;
}

.hh-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .hh-grid-2 { grid-template-columns: 1fr; }
    .hh-section { padding: 20px 12px; }
}

/* ============================================
   CARDS
   ============================================ */
.hh-card {
    background: linear-gradient(145deg, var(--hh-neutral-700) 0%, var(--hh-neutral-800) 100%);
    border: 1px solid var(--hh-border-default);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hh-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 61, 107, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hh-card:hover::before { opacity: 1; }

.hh-card:hover {
    border-color: var(--hh-border-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ============================================
   FORM
   ============================================ */
.hh-form-group { margin-bottom: 20px; }
.hh-form-group:last-child { margin-bottom: 0; }

.hh-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hh-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.hh-label::after {
    content: '';
    display: block;
    width: 18px;
    height: 1px;
    background: var(--hh-pink-600);
    margin-top: 3px;
    opacity: 0.45;
}

.hh-input {
    width: 100%;
    background: var(--hh-neutral-900);
    border: 1px solid var(--hh-border-subtle);
    border-radius: 8px;
    color: var(--hh-text-primary);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hh-input:focus {
    border-color: var(--hh-pink-600);
    box-shadow: 0 0 0 3px rgba(255, 61, 107, 0.1);
}
.hh-input:hover { border-color: rgba(255, 61, 107, 0.22); }
.hh-input::placeholder { color: var(--hh-text-muted); }

/* ============================================
   SLIDER
   ============================================ */
.hh-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--hh-neutral-500);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.hh-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hh-pink-500);
    cursor: pointer;
    transition: all 0.15s ease;
}
.hh-slider::-webkit-slider-thumb:hover {
    background: var(--hh-pink-400);
    transform: scale(1.15);
}
.hh-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hh-pink-500);
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

/* ============================================
   BADGES
   ============================================ */
.hh-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 61, 107, 0.12);
    border: 1px solid rgba(255, 61, 107, 0.35);
    color: var(--hh-pink-300);
}

/* ============================================
   FORMAT BUTTONS
   ============================================ */
.hh-format-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.hh-format-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 61, 107, 0.3);
    background: rgba(255, 61, 107, 0.06);
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.hh-format-btn:hover { border-color: rgba(255, 61, 107, 0.5); color: #ccc; }
.hh-format-btn.active {
    background: rgba(255, 61, 107, 0.15);
    border-color: var(--hh-pink-500);
    color: var(--hh-pink-300);
}

.hh-format-desc {
    font-size: 0.72rem;
    color: var(--hh-text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* ============================================
   FORMAT BLOCK
   ============================================ */
.hh-format-block {
    margin-top: 16px;
    padding: 16px 18px;
    background: rgba(255, 61, 107, 0.04);
    border: 1px solid var(--hh-border-subtle);
    border-radius: 8px;
}
.hh-format-block-title {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hh-text-muted);
    margin-bottom: 10px;
}

/* ============================================
   TOTAL BOX
   ============================================ */
.hh-total-display {
    text-align: center;
    padding: 20px 32px;
    background: linear-gradient(135deg, rgba(255, 61, 107, 0.06) 0%, rgba(13, 10, 26, 0.4) 100%);
    border: 1px solid var(--hh-border-default);
    border-radius: 12px;
    margin-top: 24px;
}
.hh-total-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--hh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.hh-total-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--hh-pink-400);
    line-height: 1.1;
    margin: 4px 0;
}

/* ============================================
   ACTION BAR
   ============================================ */
.hh-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0 12px;
    border-top: 1px solid var(--hh-border-subtle);
    margin-top: 24px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    background: rgba(255, 255, 255, 0.06);
    color: #d4d4d4;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-secondary:hover {
    background: rgba(255, 61, 107, 0.15);
    color: var(--hh-pink-300);
    border-color: rgba(255, 61, 107, 0.4);
    transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }

.btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    background: linear-gradient(135deg, var(--hh-pink-400) 0%, var(--hh-pink-600) 100%);
    color: #fff;
    border: 1px solid rgba(255, 160, 184, 0.6);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.btn-start:hover {
    background: linear-gradient(135deg, var(--hh-pink-300) 0%, var(--hh-pink-500) 100%);
    border-color: rgba(255, 160, 184, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.btn-start:active { transform: translateY(0); }

.hh-hidden { display: none !important; }
