/* Custom styles for Too Good To Go - Food Delivery System */

:root {
    --primary-green: #4CAF50;
    --dark-green: #388E3C;
    --light-green: #66BB6A;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Navbar Styling - Match their design */
.navbar {
    background-color: var(--primary-green) !important;
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    letter-spacing: 0.5px;
}

/* Custom Logo Text Styling */
.logo-text {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
}

.logo-text .line1 {
    color: var(--primary-green);
    font-size: 1.8rem;
    display: block;
}

.logo-text .line2 {
    color: #FF6B35;
    font-size: 1.8rem;
    display: block;
}

.logo-text-white {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    color: white !important;
    text-transform: uppercase;
}

/* Navbar Logo Text with Colors */
.logo-text-navbar {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text-navbar .green-text {
    color: white;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.logo-text-navbar .orange-text {
    color: #FF6B35;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.8rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

/* Hero Section - Match their design */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 3rem 0 2rem 0;
    text-align: center;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.search-box {
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

.search-box input {
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    outline: none;
}

/* Category Pills - Match their design */
.category-pills {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-pill {
    background-color: var(--primary-green);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-pill:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.category-pill.active {
    background-color: var(--dark-green);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 3rem 0 2rem 0;
    position: relative;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-block;
    padding: 0 2rem;
    background-color: var(--primary-green);
    color: white;
    border-radius: 10px;
    padding: 0.8rem 2rem;
}

/* Card Styling - Match their design */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Save Food Button */
.save-food-btn:hover {
    background: #2D7A4F !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(45, 122, 79, 0.3);
}

/* Favorite Button */
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fav-btn:hover {
    transform: scale(1.15);
    background: white;
}

.fav-btn.favorited {
    color: #EF4444;
}

.fav-btn.favorited svg {
    fill: #EF4444;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.2rem;
    text-align: center;
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-green);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-danger {
    background-color: #f44336;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-success {
    background-color: var(--primary-green);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

.btn-success:hover {
    background-color: var(--dark-green);
}

/* Badge Styling */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Auth Pages */
.auth-card {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-card .card-body {
    padding: 3rem;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

/* Order status colors */
.status-pending { 
    color: #6c757d; 
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}
.status-confirmed { 
    color: #0dcaf0; 
    background: #cff4fc;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}
.status-preparing { 
    color: #fd7e14; 
    background: #ffe5d0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}
.status-ready { 
    color: #20c997; 
    background: #d1f4ea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}
.status-out_for_delivery { 
    color: #0d6efd; 
    background: #cfe2ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}
.status-delivered { 
    color: #198754; 
    background: #d1e7dd;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}
.status-cancelled { 
    color: #dc3545; 
    background: #f8d7da;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

/* Section Titles */
h2 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-green);
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

/* Footer (if needed) */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-dark);
}


/* Footer Styling */
.footer {
    background: linear-gradient(135deg, #2D7A4F 0%, #1F5438 100%);
    color: white;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}
