@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --brand-primary: #ff385c;
    --brand-primary-rgb: 255, 56, 92;
    --primary-color: #ff385c;
    --secondary-color: #008489;
    --dark-color: #222222;
    --bg-dark: #0f0f0f;
    --bg-light: #1a1a1a;
    --accent: #ff385c;
    --gap: 16px;
    --font-mono: 'Outfit', sans-serif;
    --grey-dark: #717171;
    --grey-medium: #b0b0b0;
    --grey-light: #dddddd;
    --bg-wash: #f7f7f7;
    --white: #ffffff;
    --black: #000000;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --navbar-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--dark-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Aurora Glass */
.navbar {
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.navbar--transparent {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.navbar.navbar--transparent .logo,
.navbar.navbar--transparent .nav-link {
    color: white;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-link {
    color: var(--dark-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Aurora Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Enhanced gradient for better text contrast */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Aurora Blobs */
.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: aurora-float 20s infinite alternate ease-in-out;
}

.aurora-blob--1 {
    background: #ff385c;
    top: -20%;
    left: -10%;
}

.aurora-blob--2 {
    background: #008489;
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.aurora-blob--3 {
    background: #7b2cbf;
    top: 20%;
    right: 20%;
    animation-direction: alternate-reverse;
}

@keyframes aurora-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 15%) scale(1.1);
    }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e31c5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--grey-light);
    color: var(--dark-color);
}

.btn-outline:hover {
    border-color: var(--dark-color);
    background: var(--bg-wash);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--grey-light);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-light);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}



/* Utility */
.fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Responsive Visibility Utilities */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* Bottom Nav Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--grey-light);
    z-index: 1000;
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Cook Dashboard Styles */
.cook-dashboard-header {
    background: var(--bg-wash);
    padding: 40px 0;
    border-bottom: 1px solid var(--grey-light);
}

.cook-welcome {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.cook-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: -30px;
}

.cook-stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.cook-stat-number {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.alert-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius);
    margin: 24px 0;
    align-items: center;
}

.alert-warning {
    background: #fff9db;
    color: #856404;
    border: 1px solid #ffe066;
}

.alert-info {
    background: #e7f5ff;
    color: #1864ab;
    border: 1px solid #a5d8ff;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-accepted {
    background: #d3f9d8;
    color: #2b8a3e;
}

.status-pending {
    background: #fff4e6;
    color: #d9480f;
}

/* Custom utility for index.html */
.site-main-content {
    padding-top: 40px;
}

.cook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

@media (min-width: 769px) {
    .mobile-drawer {
        display: none !important;
    }
}

/* Mobile Drawer - MISSING STYLES REDDED */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-content {
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.active .mobile-drawer-content {
    left: 0;
}

.mobile-drawer-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--grey-light);
}

.mobile-drawer-links {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.mobile-drawer-link {
    font-size: 1.1rem;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
}

.mobile-drawer-separator {
    font-size: 0.8rem;
    color: var(--grey-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-color);
    line-height: 1;
}

/* Mobile Account Menu (Sheet) */
.mobile-account-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-account-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-account-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-account-sheet {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
}

.mobile-account-menu.active .mobile-account-sheet {
    bottom: 0;
}

.mobile-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mobile-account-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-account-menu {
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

.mobile-account-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-wash);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
}

.mobile-account-link:last-child {
    border-bottom: none;
}

.mobile-account-logout {
    color: var(--brand-primary);
}

.mobile-account-divider {
    border: 0;
    height: 1px;
    background: var(--grey-light);
    margin: 8px 0;
}

/* Fix iOS Safari Auto-Zoom on inputs */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Fix for fixed header overlapping content on explore page */
.mobile-top-pad {
    padding-top: 180px !important;
}
@media (min-width: 768px) {
    .mobile-top-pad {
        padding-top: 140px !important;
    }
}
@media (min-width: 1024px) {
    .mobile-top-pad {
        padding-top: 0 !important;
    }
}

/* ==========================================================================
   RAVLI DESIGN SYSTEM 1.0 — SKELETON LOADERS (No Blank Screens)
   ========================================================================== */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    display: inline-block;
    border-radius: var(--radius-sm, 6px);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.skeleton-text {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text-short {
    width: 60%;
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-card {
    border-radius: var(--radius, 12px);
    background: var(--white, #fff);
    border: 1px solid var(--grey-light, #eee);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-img {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm, 8px);
}

/* ==========================================================================
   RAVLI DESIGN SYSTEM 1.0 — WCAG 2.1 AA ACCESSIBILITY & FOCUS
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--accent, var(--brand-primary));
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent, var(--brand-primary));
    outline-offset: 2px;
}

.form-error-msg,
[role="alert"] {
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ==========================================================================
   RAVLI DESIGN SYSTEM 1.0 — HICK'S LAW (2-3 CHOICES MAX)
   ========================================================================== */
.hicks-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.hicks-choice-card {
    border: 2px solid var(--grey-light, #dddddd);
    border-radius: var(--radius, 12px);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white, #ffffff);
    text-align: left;
}

.hicks-choice-card:hover,
.hicks-choice-card.selected {
    border-color: var(--brand-primary, #ff385c);
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.12);
}