@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* Color Palette */
    --bg-color: #050505;
    --surface-color: rgba(25, 25, 30, 0.4);
    --surface-hover: rgba(35, 35, 45, 0.6);
    --primary-color: #ff4742;  /* Vibrant Red/Orange */
    --primary-hover: #ff6b67;
    --secondary-color: #7b2cbf; /* Vibrant Purple */
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Glassmorphism */
    --glass-bg: rgba(10, 10, 15, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(20px);
    
    /* Shadows */
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 16px 48px 0 rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(255, 71, 66, 0.4);
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

body::before {
    background: var(--primary-color);
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

body::after {
    background: var(--secondary-color);
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Header */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-color);
    text-decoration: none;
}

.accent {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--text-color);
}

.user-mock {
    padding: 10px 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-mock:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-bar {
    display: flex;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 40px;
    background: rgba(20, 20, 25, 0.6);
    padding: 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-soft);
}

#searchInput {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 18px;
    outline: none;
}

.search-btn-ugly-contrast {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 0 35px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 66, 0.3);
}

.search-btn-ugly-contrast:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* Grid & Cards */
.restaurant-grid, .orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

.rest-card, .order-card {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.rest-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-strong), var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}

.rest-card:hover .card-img {
    transform: scale(1.05);
}

.img-wrapper {
    overflow: hidden;
}

.card-body, .order-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title, .order-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.price-badge, .status-badge {
    font-size: 13px;
    background: rgba(255,71,66,0.15);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--primary-color);
    border: 1px solid rgba(255,71,66,0.3);
}

.card-meta {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.card-meta i {
    color: var(--secondary-color);
}

.card-desc {
    font-size: 15px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* Auth Page */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.auth-card {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-strong);
    animation: fadeIn 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-toggle {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-full);
    margin-bottom: 30px;
    padding: 5px;
}

.auth-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-toggle-btn.active {
    background: var(--surface-hover);
    color: var(--text-color);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 71, 66, 0.2);
}

.primary-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,0,0,0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.error-msg {
    color: var(--primary-color);
    background: rgba(255,71,66,0.1);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

/* Detail & Cart Pages */
.detail-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    margin-bottom: 30px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.title-row h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
}

.meta-tags {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

.menu-item {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.2);
}

.menu-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.menu-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.menu-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.menu-price {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color);
}

.add-cart-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.add-cart-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    padding: 20px;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart.active {
    transform: translateY(0);
}

.cart-header {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.cart-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 71, 66, 0.4);
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: scale(1.02);
}

/* Utilities */
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Profile & Orders */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    box-shadow: var(--shadow-glow);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
