/* 
   Smart Salon Mobile Design System 
   Theme: Futuristic, Premium, App-like
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Dark Palette */
    --bg-body: #0a0a0c;
    --bg-card: #1c1c1e;
    --bg-card-glass: rgba(28, 28, 30, 0.7);

    /* Accents - Neon/Vibrant */
    --primary: #00f2ea;
    /* Cyber Cyan */
    --primary-dim: #00f2ea20;
    --secondary: #ff0055;
    /* Neon Pink */
    --text-main: #ffffff;
    --text-muted: #8e8e93;
    --border-color: #38383a;

    /* Functional */
    --success: #32d74b;
    --warning: #ff9f0a;
    --danger: #ff453a;

    /* Layout */
    --nav-height: 70px;
    --header-height: 60px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    /* Mobile App Feel: Prevent bounce on some browsers if needed, but allow scroll */
    overscroll-behavior-y: none;
}

/* === Layout Shell === */
/* === Layout Shell (Responsive) === */
.mobile-wrapper {
    width: 100%;
    margin: 0 auto;
    background: var(--bg-body);
    min-height: 100vh;
    position: relative;
    /* Remove box-shadow on mobile for full immersion */
    padding-bottom: calc(var(--nav-height) + 20px);
}

/* Tablet & Desktop Adjustments */
@media (min-width: 768px) {
    .mobile-wrapper {
        max-width: 1200px;
        /* Wide Constraint */
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

    /* Responsive Grid for Shop Cards */
    #shopContainer,
    #searchResults {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 20px;
    }

    /* Correct spacing for Grid Items */
    .glass-card {
        margin-bottom: 0 !important;
        /* Remove bottom margin in grid */
        height: 100%;
        /* Equal Height */
        display: flex;
        flex-direction: column;
    }

    .glass-card .btn-primary {
        margin-top: auto;
        /* Push button to bottom */
    }

    /* Navigation Bar Width Match */
    .bottom-nav {
        max-width: 1200px;
        border-radius: 20px 20px 0 0;
        /* Rounded tab look on desktop */
    }
}

@media (min-width: 1400px) {
    .mobile-wrapper {
        max-width: 1400px;
    }

    .bottom-nav {
        max-width: 1400px;
    }
}

/* === Header === */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(10, 10, 12, 0.85);
    /* Glass header */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    overflow: hidden;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Typography & Utilities === */
h1,
h2,
h3 {
    margin: 0 0 10px 0;
    font-weight: 600;
}

h1 {
    font-size: 28px;
    letter-spacing: -1px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
}

p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.text-primary {
    color: var(--primary);
}

.text-xs {
    font-size: 12px;
}

.pad-x {
    padding-left: 20px;
    padding-right: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* === Components === */

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}



/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00c2bb);
    color: #000;
    box-shadow: 0 10px 25px -5px rgba(0, 242, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.input-field:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* === Bottom Navigation === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    /* For desktop centering */
    transform: translateX(-50%);
    width: 100%;
    /* max-width controlled by media queries now */
    height: var(--nav-height);
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    gap: 4px;
    text-decoration: none;
    width: 60px;
    transition: color 0.3s;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active svg {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px var(--primary-dim));
}

/* === Load Color System (Red/Yellow/Green) === */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-green {
    background: rgba(50, 215, 75, 0.2);
    color: #32d74b;
}

.status-yellow {
    background: rgba(255, 159, 10, 0.2);
    color: #ff9f0a;
}

.status-red {
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}