/* --- Temel Değişkenler ve Temalar --- */
:root {
    --bg-color: #161717;
    --card-bg: #1f2020;
    --text-color: #F9F6EF;
    --accent-color: #5EB0E5;
    --purple-accent: #9b5de5;
    --muted-text: #a0a5a5;
    --max-width: 75ch;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* --- Scroll Driven Animasyonlar --- */
@supports(animation-timeline: view()){
    @keyframes fade-out { to { background-size: 130%; opacity: 0; } }
    @keyframes logo-fade-in { to { opacity: 1; } }
    @keyframes line-appear { to { opacity: 1; } }

    .hero {
        animation: fade-out linear both;
        animation-timeline: view();
        animation-range: exit -100px;
    }
    .logo {
        animation: logo-fade-in linear both;
        animation-timeline: view();
        animation-range-start: 10vh;
        animation-range-end: 50vh;
    }
    nav:after {
        animation: line-appear linear both;
        animation-timeline: view();
        animation-range-start: 30vh;
        animation-range-end: 80vh;
    }
}

@supports(not(animation-timeline: view())) {
    .logo { opacity: 1 !important; }
}

/* --- Düzen Sınırları --- */
.hero, .nav-container, main, .app-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-inline: 1.5rem;
}

h1, h2, h3 { text-wrap: balance; line-height: 1.2; margin-top: 0; }
p { text-wrap: pretty; line-height: 1.75; color: #e0ded7; margin-bottom: 1.5rem; }

/* --- Navigasyon --- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(22, 23, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}
.nav-container { min-height: 4rem; display: flex; justify-content: space-between; align-items: center; }
nav ul { margin: 0; padding: 0; display: flex; gap: 1.5rem; }
nav ul li { list-style: none; font-size: 0.9rem; font-weight: 400; cursor: pointer; transition: color 0.3s ease; color: var(--muted-text); }
nav ul li:hover { color: var(--accent-color); }
nav:after {
    content: ''; position: absolute; opacity: 0; height: 2px; width: 100%; bottom: 0; left: 0;
    background: linear-gradient(90deg, var(--accent-color), var(--purple-accent));
}
.logo {
    opacity: 0; font-weight: 900; font-size: 1.5rem; letter-spacing: -0.5px;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- Hero Bölümü --- */
.hero {
    min-height: 75vh;
    background-image: url("/datas/header-logo.png");
    background-size: 45%; background-repeat: no-repeat; background-position: right center; mix-blend-mode: lighten;
    display: flex; flex-direction: column; justify-content: center; container-type: inline-size;
}
.hero-content { max-width: 65%; }
.hero h1 {
    font-size: clamp(2.3rem, 7.5cqi, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--purple-accent) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .catchphrase { font-size: clamp(1rem, 3cqi, 1.2rem); color: #d1d5d5; font-weight: 400; line-height: 1.6; border-left: 3px solid var(--accent-color); padding-left: 1rem; }

/* --- Main İçerik Alanı --- */
main { padding-block: 4rem 2rem; }
main p { font-size: 1.05rem; text-align: justify; }

/* --- SECTİON VE KART STİLLERİ --- */
.app-section { margin-bottom: 6rem; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 24px; background: var(--accent-color); border-radius: 2px; }

.app-container { background: var(--card-bg); border-radius: 24px; padding: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.03); box-sizing: border-box; }

/* Carousel */
.food-carousel-wrapper { position: relative; margin-bottom: 2rem; }
.food-carousel-wrapper::before, .food-carousel-wrapper::after { content: ''; position: absolute; top: 0; width: 60px; height: 100%; z-index: 2; pointer-events: none; }
.food-carousel-wrapper::before { background: linear-gradient(90deg, var(--card-bg) 10%, transparent); left: 0; }
.food-carousel-wrapper::after { background: linear-gradient(-90deg, var(--card-bg) 10%, transparent); right: 0; }
.food-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-block: 1rem; padding-inline: calc(50% - 50px); gap: 1.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.food-carousel::-webkit-scrollbar { display: none; }
.food-item { scroll-snap-align: center; flex: 0 0 100px; height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.01); border-radius: 20px; cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0.25; filter: blur(1px); transform: scale(0.9); }
.food-item.active { opacity: 1; filter: blur(0); transform: scale(1.1); background: rgba(94, 176, 229, 0.08); border: 1px solid var(--accent-color); box-shadow: 0 10px 25px rgba(94, 176, 229, 0.1); }
.food-emoji { font-size: 2.2rem; margin-bottom: 0.2rem; }
.food-name { font-size: 0.8rem; font-weight: 700; color: var(--muted-text); }
.food-item.active .food-name { color: var(--text-color); }

/* Counter */
.counter-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 2.5rem; }
.counter-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted-text); margin-bottom: 0.5rem; }
.modern-counter { display: flex; align-items: center; background: #111212; padding: 0.4rem; border-radius: 50px; border: 1px solid rgba(255,255,255,0.03); }
.counter-btn { width: 40px; height: 40px; border-radius: 50px; border: none; background: rgba(255,255,255,0.02); color: var(--text-color); font-size: 1.3rem; cursor: pointer; transition: all 0.2s; display: flex; justify-content: center; align-items: center; }
.counter-btn:hover { background: var(--accent-color); color: #000; }
.counter-value { font-size: 1.5rem; font-weight: 700; min-width: 50px; text-align: center; user-select: none; }

/* Panels */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; }
@media (max-width: 600px) { .dashboard-grid { grid-template-columns: 1fr; } }
.panel { background: rgba(0,0,0,0.2); border-radius: 20px; padding: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 180px; position: relative; overflow: hidden; }
.panel-title { font-size: 0.8rem; color: var(--muted-text); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.8rem; }
.display-value { font-size: 2.2rem; font-weight: 900; margin-bottom: 0.5rem; }
.sol-panel .display-value { color: var(--purple-accent); }
.sag-panel .display-value { color: var(--accent-color); }
.unit { font-size: 0.9rem; font-weight: 400; color: var(--text-color); }

/* Animasyon kutuları */
.animation-box { height: 60px; width: 100%; margin-top: 1rem; position: relative; }
.eating-emoji { font-size: 2.2rem; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.eating-active { animation: chomp 0.5s ease infinite alternate; }
@keyframes chomp { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-50%, -50%) scale(1.25) rotate(-10deg); } }
.stickman-container { position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.stickman { width: 40px; height: 55px; stroke: var(--accent-color); stroke-width: 4; stroke-linecap: round; fill: none; }
.stickman .head { fill: var(--accent-color); }
@keyframes walk { 0% { transform: rotate(-15deg); } 100% { transform: rotate(15deg); } }
.left-leg { animation: walk 0.4s ease-in-out infinite alternate; transform-origin: 20px 35px; }
.right-leg { animation: walk 0.4s ease-in-out infinite alternate-reverse; transform-origin: 20px 35px; }
.trail-dots { position: absolute; right: 55%; top: 75%; display: flex; gap: 8px; }
.dot { width: 5px; height: 5px; background: var(--accent-color); border-radius: 50%; opacity: 0; animation: trailMove 0.8s linear infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes trailMove { 0% { transform: translateX(20px); opacity: 0.8; } 100% { transform: translateX(-40px); opacity: 0; } }

/* --- Footer --- */
footer { display: flex; flex-direction: column; align-items: center; padding: 4rem 1.5rem; background-color: #0f1010; text-align: center; }
footer hr { width: 60px; border: 0; height: 2px; background: var(--accent-color); margin-bottom: 2rem; opacity: 0.7; }
footer h2 { font-weight: 900; font-size: 1.75rem; margin-bottom: 0.5rem; background: linear-gradient(90deg, #fff 30%, var(--purple-accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
footer p { margin: 0.2rem 0; font-size: 0.85rem; color: var(--muted-text); }

/* Navbar Linkleri Temel Yapısı */
.nav-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 700; transition: all 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: #00f0ff; }

/* Data Güzeldir Buton Tasarımı */
.premium-nav-btn {
    background: linear-gradient(135deg, #00f0ff, #ff007f);
    color: #000 !important;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
.premium-nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
}

/* Sayfa Şablon Yerleşimleri */
.static-page-container, .single-comparison-view {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* Pürüzsüz Fade Animasyonu */
.fade-in { animation: fadeInAnim 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes fadeInAnim {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}