/* ==========================================================================
   🌿 SEVIA – Modernized CSS Stylesheet
   ========================================================================== */

/* Google Fonts - Playfair Display & Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Renk Paleti (Botanik, Premium & Modern) */
    --primary: #6B9E78;          /* Adaçayı Yeşili */
    --primary-hover: #52825F;    /* Koyu Adaçayı */
    --primary-light: #B8D9C0;    /* Açık Mint */
    --secondary: #F2C4CE;        /* Gül Pembesi */
    --secondary-light: #FBECEF;  /* Açık Gül Pembesi */
    --text-dark: #1A3522;        /* Premium Koyu Yeşil */
    --text-muted: #5D7263;       /* Yumuşak Soluk Metin */
    --bg-light: #FDF9F6;         /* Çok Sıcak Krem Beyaz */
    --white: #FFFFFF;
    
    /* Durum Renkleri */
    --status-fresh: #4CAF87;     
    --status-warning: #FFA726;   
    --status-critical: #EF5350;  
    --status-expired: #78909C;   
    --status-unopened: #42A5F5;  
    
    /* Gölgeler ve Kenarlıklar */
    --shadow-sm: 0 4px 20px rgba(26, 53, 34, 0.03);
    --shadow-md: 0 12px 36px rgba(26, 53, 34, 0.06);
    --shadow-lg: 0 24px 60px rgba(26, 53, 34, 0.12);
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 32px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sıfırlamalar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Floating Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: rgba(107, 158, 120, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Navigasyon Barı */
header {
    background: rgba(253, 249, 246, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 1000;
    border-radius: 40px;
    border: 1px solid rgba(107, 158, 120, 0.12);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary);
    filter: drop-shadow(0 2px 8px rgba(107, 158, 120, 0.3));
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Butonlar */
.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #578663 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(107, 158, 120, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(107, 158, 120, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary);
    border: 1px solid rgba(107, 158, 120, 0.25);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 158, 120, 0.2);
}

.btn-text {
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
}

.btn-text:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* Hero Bölümü */
.hero {
    padding: 220px 24px 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.8;
}

.download-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.badge-link img {
    height: 48px;
    transition: var(--transition);
}

.badge-link:hover img {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modern Gradient Blur Arka Plan */
.hero-image::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(184, 217, 192, 0.6) 100%);
    filter: blur(50px);
    z-index: -1;
    animation: drift 10s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

.phone-mockup {
    width: 290px;
    border-radius: 44px;
    box-shadow: var(--shadow-lg);
    border: 10px solid #1c2720;
    background-color: #1c2720;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

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

/* Özellikler Bölümü */
.features {
    background-color: var(--white);
    padding: 120px 24px;
    border-radius: 60px 60px 0 0;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid rgba(107, 158, 120, 0.08);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 70px auto;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 44px 32px;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-light);
    border: 1px solid rgba(107, 158, 120, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(107, 158, 120, 0.2);
    background-color: var(--white);
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 28px;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Modallar */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 53, 34, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--white);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.95);
    transition: var(--transition);
    border: 1px solid rgba(107, 158, 120, 0.15);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-light);
}

.close-btn:hover {
    color: var(--primary);
    background-color: rgba(107, 158, 120, 0.1);
}

.modal-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    margin-bottom: 12px;
    text-align: center;
    color: var(--text-dark);
}

.modal-box p {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(107, 158, 120, 0.2);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.form-group input:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(107, 158, 120, 0.12);
}

.form-error {
    color: var(--status-critical);
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
    display: none;
    font-weight: 500;
}

/* Kullanıcı Dashboard Bölümü */
.dashboard-section {
    padding: 160px 24px 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: none;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(107, 158, 120, 0.15);
}

.dashboard-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.dashboard-title p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Ürün Grid Yapısı */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(107, 158, 120, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(107, 158, 120, 0.15);
}

.product-details {
    flex: 1;
    padding-right: 20px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.product-brand {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.product-category {
    font-size: 11px;
    background-color: rgba(107, 158, 120, 0.08);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 700;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.product-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* SVG Dairesel İlerleme Çemberi */
.progress-container {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: rgba(107, 158, 120, 0.06);
    stroke-width: 5;
}

.progress-ring-circle {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.progress-text {
    position: absolute;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
}

/* Boş Durum (Empty State) */
.empty-state {
    text-align: center;
    padding: 90px 24px;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    grid-column: 1 / -1;
    border: 1px solid rgba(107, 158, 120, 0.06);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Footer (Alt Bilgi) */
footer {
    text-align: center;
    padding: 48px 24px;
    margin-top: 100px;
    font-size: 15px;
    color: var(--text-muted);
    border-top: 1px solid rgba(107, 158, 120, 0.1);
    background-color: rgba(107, 158, 120, 0.02);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    header {
        top: 10px;
        width: calc(100% - 20px);
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 160px;
        gap: 50px;
    }
    
    .hero-content p {
        margin: 0 auto 40px auto;
    }
    
    .download-badges {
        justify-content: center;
    }
    
    .hero-image {
        order: -1; 
    }
    
    .hero-image::before {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 10px 20px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .section-header h2 {
        font-size: 34px;
    }
    
    .modal-box {
        padding: 36px 24px;
    }
}
