/* Diyet Rehberi - Main Stylesheet */

:root {
    --primary-color: #4CAF50;
    --primary-dark: #2E7D32;
    --secondary-color: #FF9800;
    --secondary-dark: #F57C00;
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --background: #f5f7fa;
    --surface: #ffffff;
    --border: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

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

.nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding-top: 80px;
}

/* --- MODERN HERO SECTION STYLES --- */

/* Renk Değişkenleri (Hero'ya özel) */
:root {
    --hero-bg-1: #e0c3fc;
    --hero-bg-2: #8ec5fc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-dark: #2d3436;
}

/* Ana Bölüm Ayarları */
.hero-section {
    /* Daha ferah, açık renkli ve enerjik gradient */
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%); 
    padding-top: 140px;
    padding-bottom: 100px;
    position: relative;
    min-height: 100vh;
}

/* Hareketli Arka Plan Baloncukları */
.hero-bg-shapes .shape {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: moveShape 10s infinite alternate;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #84fab0; /* Fresh Green */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.shape-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #8fd3f4; /* Sky Blue */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-duration: 15s !important;
}

/* Text Styling */
.hero-text-content {
    color: var(--text-dark);
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Elementler */
.glass-badge {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    font-weight: 600;
}

.glass-box {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Butonlar */
.btn-dark {
    background-color: #1a1a2e;
    border: none;
    transition: all 0.3s ease;
}

.btn-white {
    background-color: white;
    border: 1px solid #eee;
}

.hover-scale:hover {
    transform: translateY(-3px);
}

/* Sağ Taraf - Görsel ve Yüzen Kartlar */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
    padding: 20px;
}

.main-hero-img {
    max-height: 450px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    z-index: 2;
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: absolute;
    z-index: 3;
    min-width: 180px;
}

.card-1 {
    top: 20%;
    left: -10%;
    animation: floatCard 6s ease-in-out infinite;
}

.card-2 {
    bottom: 20%;
    right: -5%;
    animation: floatCard 7s ease-in-out infinite;
    animation-delay: 1s;
}

.bg-orange-soft { background: #ffeaa7; }
.bg-green-soft { background: #dff9fb; }

/* SVG Dalga Ayırıcı */
.custom-shape-divider-bottom-1680000000 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.custom-shape-divider-bottom-1680000000 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1680000000 .shape-fill {
    fill: #FFFFFF;
}

/* --- ANİMASYONLAR --- */

@keyframes moveShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(20deg); }
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-animation {
    animation: floatCard 5s ease-in-out infinite;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Küçük Ekran Düzeltmeleri */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .card-1, .card-2 {
        display: none; /* Mobilde yüzen kartları gizle */
    }
    
    .hero-bg-shapes .shape {
        opacity: 0.3; /* Mobilde arka planı hafiflet */
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Recipe Card */
.recipe-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.recipe-card .card-title {
    color: white;
    margin-bottom: 5px;
}

.recipe-card .recipe-meta {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

/* Diet Card */
.diet-card {
    position: relative;
}

.diet-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.diet-card .difficulty {
    font-size: 0.85rem;
}

/* Stats */
.stat-box {
    background: var(--surface);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-box p {
    color: var(--text-secondary);
    margin: 0;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* Section Headers */
.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-pill {
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--surface);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary-color);
    color: white;
}

/* Forum */
.forum-topic {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.forum-topic:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.forum-topic h5 {
    margin-bottom: 10px;
}

.forum-topic .meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.forum-topic .stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.forum-topic .stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0 40px;
    margin-top: -80px;
    padding-top: 140px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Pagination */
.pagination {
    gap: 5px;
}

.page-link {
    border-radius: 8px;
    border: none;
    padding: 10px 16px;
    color: var(--text-primary);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background: #4caf50 !important;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.rounded-lg {
    border-radius: 16px !important;
}

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

    .hero-section {
        padding: 60px 0;
        padding-top: 140px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .stat-box {
        margin-bottom: 15px;
    }

    .category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .category-pill {
        white-space: nowrap;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 20px;
}

/* Nutrition Info */
.nutrition-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nutrition-item {
    text-align: center;
    padding: 15px;
    background: var(--background);
    border-radius: 12px;
    min-width: 80px;
}

.nutrition-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nutrition-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
