/* 
 * Global Styles - GrabNGo Food Ordering System
 * Enhanced White base with Creative Light Red Accents
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Colors - Light Red Palette */
    --primary-red: #ff6b6b;
    --light-red: #ffebee;
    --lighter-red: #fff5f7;
    --medium-red: #ff8a8a;
    --dark-red: #e63946;
    --deep-red: #d62828;
    
    /* Neutral Colors - White Dominant */
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f5;
    --gray: #9e9e9e;
    --dark-gray: #424242;
    --text-primary: #2d2d2d;
    --text-secondary: #757575;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #ffebee 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fff5f7 100%);
    --gradient-button: linear-gradient(135deg, #ff6b6b 0%, #ff8a8a 100%);
    --gradient-header: linear-gradient(180deg, #ffffff 0%, rgba(255, 235, 238, 0.3) 100%);
    
    /* Shadows - Softer and More Subtle */
    --shadow-sm: 0 2px 8px rgba(255, 107, 107, 0.08);
    --shadow-md: 0 4px 16px rgba(255, 107, 107, 0.12);
    --shadow-lg: 0 8px 32px rgba(255, 107, 107, 0.16);
    --shadow-xl: 0 12px 48px rgba(255, 107, 107, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: var(--gradient-header);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-button);
    transition: var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.nav-menu a:hover::after {
    width: 100%;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-icon:hover {
    color: var(--primary-red);
    background: var(--light-red);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3333;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 51, 51, 0.4);
    border: 2px solid white;
    padding: 0 4px;
    z-index: 10;
}

/* Buttons */
.btn {
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--light-red);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--light-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-outline:hover {
    background: var(--gradient-button);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 107, 107, 0.08);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-button);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Food Card */
.food-card {
    position: relative;
    cursor: pointer;
    background: var(--gradient-card);
}

.food-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.food-card:hover img {
    transform: scale(1.05);
}

.food-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.badge-hot {
    background: var(--gradient-button);
}

.badge-special {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: var(--text-primary);
}

.food-info {
    padding: 0.5rem 0.8rem;
}

.food-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.food-price {
    font-size: 1.5rem;
    color: #28a745 !important;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.food-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Grid Layouts */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--light-red);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    background: var(--lighter-red);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 45, 45, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 107, 107, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    background: var(--light-red);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: rotate(90deg);
}

/* Footer */
.footer {
    background: var(--white);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(255, 107, 107, 0.08);
    border-top: 1px solid rgba(255, 107, 107, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-credits {
    margin-top: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Alerts */
.alert {
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #ffebee 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, var(--light-red) 0%, var(--lighter-red) 100%);
    color: var(--dark-red);
    border-left: 4px solid var(--primary-red);
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light-red);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 3rem auto;
    box-shadow: var(--shadow-sm);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 85px;
    right: 20px;
    width: 380px;
    max-height: 550px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    overflow: hidden;
    z-index: 1500;
    border: 1px solid rgba(255, 107, 107, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel.active {
    display: block;
}

.notification-header {
    padding: 1.5rem;
    background: var(--gradient-card);
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.notification-item {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--light-red);
    cursor: pointer;
    transition: var(--transition-normal);
}

.notification-item:hover {
    background: var(--lighter-red);
    padding-left: 2rem;
}

.notification-item.unread {
    background: var(--light-red);
    border-left: 3px solid var(--primary-red);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .nav-menu {
        gap: 1.2rem;
        font-size: 0.85rem;
    }
    
    .notification-panel {
        width: 90%;
        right: 5%;
        top: 70px;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .food-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .card {
        padding: 1.2rem;
        border-radius: var(--radius-md);
    }
    
    .food-card img {
        height: 180px;
    }
    
    .food-name {
        font-size: 1.1rem;
    }
    
    .food-price {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .form-control {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .notification-panel {
        width: 95%;
        right: 2.5%;
        max-height: 70vh;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
    }
    
    .food-name {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}

