:root {
    --primary-color: #2563eb;
    --success-color: #16a34a;
    --warning-color: #ea580c;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bg-gradient {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: -1px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    word-spacing: 0.2em;
    white-space: normal;
    color: #ffffff !important;
    text-transform: uppercase;
}

.hero-section p.lead {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-box h3 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    border: none;
}

/* Forms */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Tables */
.table {
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f0f9ff;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Macronutrient Boxes */
.macro-box {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.macro-box:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.macro-box h5 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.macro-box small {
    color: #6b7280;
    font-weight: 500;
}

/* Recipe Cards */
.recipe-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.recipe-card-header {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.recipe-card-header h5 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.recipe-card-body {
    padding: 1.5rem;
}

.recipe-meta {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.recipe-meta-item {
    text-align: center;
}

.recipe-meta-value {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.recipe-meta-label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Exercise Section */
.exercise-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.exercise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.exercise-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.bg-light-exercise {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.bg-moderate-exercise {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.bg-heavy-exercise {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.exercise-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.exercise-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.exercise-card li {
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-gi-low {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-gi-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-gi-high {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Sections */
section {
    position: relative;
}

h2 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

h2 i {
    margin-right: 10px;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    font-size: 1.8rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .stat-box {
        margin-bottom: 1rem;
    }

    .stat-box h3 {
        font-size: 1.8rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table td {
        padding: 0.75rem 0.5rem;
    }

    .recipe-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.3s ease-out;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-muted {
    color: #6b7280;
}

.text-center {
    text-align: center;
}

.fw-bold {
    font-weight: 700;
}

.gap-3 {
    gap: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-5 {
    padding: 3rem 0;
}
