/* =========================================================================
   1. SİSTEM DEĞİŞKENLERİ VE RENK PALETİ (FERAH & MODERN)
   ========================================================================= */
:root {
    --bg-color: #f8fafc; 
    --text-color: #0f172a; 
    --text-muted: #64748b;
    --primary-color: #2563eb; 
    --primary-hover: #1d4ed8;
    --accent-color: #0ea5e9; 
    --card-bg: #ffffff; 
    --border-color: #e2e8f0;
    --border-radius: 24px; 
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* GECE MODU (Premium Dark Theme) */
body.dark-mode {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #3b82f6;
    --card-bg: #1e293b;
    --border-color: #334155;
}

/* =========================================================================
   2. TEMEL AYARLAR VE SIFIRLAMA
   ========================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
html, body { max-width: 100%; overflow-x: hidden; background-color: var(--bg-color); color: var(--text-color); transition: var(--transition); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.align-center { align-items: center; }
.text-center { text-align: center; }

/* =========================================================================
   3. BUTONLAR VE İKONLAR
   ========================================================================= */
.btn { padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 15px; cursor: pointer; transition: var(--transition); border: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn-primary { background: var(--primary-color); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(37, 99, 235, 0.3); }
.btn-outline { border: 2px solid var(--border-color); color: var(--text-color); background: transparent; }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }
.btn-text { background: transparent; color: var(--text-color); padding: 12px 16px; }
.btn-text:hover { color: var(--primary-color); }
.icon-btn { background: none; border: none; font-size: 22px; color: var(--text-color); cursor: pointer; transition: var(--transition); padding: 8px; }
.icon-btn:hover { color: var(--primary-color); transform: rotate(15deg); }

/* Masaüstü Sepet Butonu */
.cart-btn { position: relative; margin-right: 10px; }
.cart-badge { position: absolute; top: 0px; right: 0px; background: #10b981; color: white; font-size: 11px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; border: 2px solid var(--card-bg); }

/* =========================================================================
   4. ÜST MENÜ (HEADER) - MASAÜSTÜ
   ========================================================================= */
.main-header { background: rgba(255, 255, 255, 0.9); padding: 15px 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 999; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
body.dark-mode .main-header { background: rgba(30, 41, 59, 0.9); border-color: var(--border-color); }
.logo h2 { font-weight: 800; color: var(--text-color); font-size: 24px; letter-spacing: -0.5px; white-space: nowrap; }
.logo span { color: var(--primary-color); }

.navbar ul { display: flex; gap: 25px; align-items: center; }
.navbar a { font-weight: 600; font-size: 15px; color: var(--text-muted); transition: var(--transition); position: relative; white-space: nowrap; }
.navbar a:hover { color: var(--text-color); }
.badge { background: #ef4444; color: white; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 50px; position: absolute; top: -12px; right: -30px; }

.header-actions { display: flex; gap: 10px; align-items: center; }
.desktop-only-flex { display: flex; align-items: center; gap: 10px; }

/* Mobilde görünecek alanları masaüstünde gizliyoruz */
.mobile-menu-btn { display: none; }
.mobile-action-grid { display: none !important; }

/* Masaüstü Ekranlar İçin Sıkışma Önlemi (1100px Altı) */
@media (max-width: 1100px) {
    .navbar ul { gap: 15px; }
    .navbar a { font-size: 14px; }
    .btn { padding: 10px 20px; font-size: 14px; }
    .logo h2 { font-size: 20px; }
}

/* =========================================================================
   5. HERO ALANI VE DOMAİN SORGULAMA
   ========================================================================= */
.hero-section { padding: 100px 0 120px 0; text-align: center; position: relative; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color); padding: 8px 20px; border-radius: 50px; font-size: 14px; font-weight: 600; margin-bottom: 30px; }
.trust-badge i { color: #10b981; }
.hero-content h1 { font-size: 56px; font-weight: 800; line-height: 1.15; margin-bottom: 24px; letter-spacing: -1.5px; color: var(--text-color); }
.text-gradient { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.domain-search-box { background: var(--card-bg); padding: 10px; border-radius: 50px; border: 1px solid var(--border-color); max-width: 800px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0,0,0,0.04); transition: var(--transition); }
.domain-search-box:focus-within { border-color: var(--primary-color); box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1); transform: translateY(-2px); }
.input-group { display: flex; align-items: center; }
.www-prefix { padding-left: 25px; font-weight: 600; color: var(--text-muted); font-size: 18px; }
.input-group input { flex: 1; border: none; background: transparent; padding: 18px 15px; font-size: 18px; color: var(--text-color); outline: none; font-weight: 500; }
.input-group select { border: none; background: transparent; font-size: 16px; font-weight: 600; color: var(--text-color); padding: 0 20px; outline: none; border-left: 1px solid var(--border-color); cursor: pointer; }

/* =========================================================================
   6. KATEGORİ KARTLARI
   ========================================================================= */
.quick-categories { margin-top: -60px; position: relative; z-index: 10; padding-bottom: 80px; }
.flex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card { background: var(--card-bg); padding: 40px 30px; border-radius: var(--border-radius); border: 1px solid var(--border-color); transition: var(--transition); box-shadow: 0 10px 25px rgba(0,0,0,0.02); display: flex; flex-direction: column; align-items: flex-start; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); border-color: var(--primary-color); }
.card-icon-box { width: 56px; height: 56px; background: #eff6ff; color: var(--primary-color); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; transition: var(--transition); }
body.dark-mode .card-icon-box { background: rgba(37, 99, 235, 0.2); }
.category-card:hover .card-icon-box { background: var(--primary-color); color: #fff; }
.category-card h3 { font-size: 22px; margin-bottom: 10px; font-weight: 700; }
.category-card p { color: var(--text-muted); margin-bottom: 25px; line-height: 1.6; font-size: 15px; }
.arrow-link { font-weight: 600; color: var(--primary-color); display: flex; align-items: center; gap: 8px; transition: var(--transition); margin-top: auto; }
.featured-card { background: #f0f9ff; border-color: #bae6fd; }
body.dark-mode .featured-card { background: rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.2); }

/* =========================================================================
   7. FİYAT TABLOLARI VE BÖLÜM BAŞLIKLARI
   ========================================================================= */
.section-title { margin-bottom: 50px; }
.section-title h2 { font-size: 32px; margin-bottom: 12px; color: var(--text-color); font-weight: 800; letter-spacing: -0.5px; }
.section-title p { color: var(--text-muted); font-size: 16px; }

.pricing-section { padding: 80px 0; background: var(--bg-color); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center; }
.pricing-card { background: var(--card-bg); padding: 40px; border-radius: var(--border-radius); border: 1px solid var(--border-color); position: relative; transition: var(--transition); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
.pricing-card h3 { font-size: 22px; margin-bottom: 8px; font-weight: 700; }
.pricing-card .desc { color: var(--text-muted); font-size: 14px; min-height: 40px; margin-bottom: 25px; }
.price-box { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--border-color); }
.price-box .currency { font-size: 20px; font-weight: 600; vertical-align: top; }
.price-box .price { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; color: var(--text-color); }
.price-box .period { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.features { margin-bottom: 30px; }
.features li { margin-bottom: 16px; font-size: 15px; color: var(--text-color); display: flex; align-items: center; gap: 12px; font-weight: 500; }
.features li i { color: #10b981; font-size: 14px; background: rgba(16, 185, 129, 0.1); padding: 4px; border-radius: 50%; }

.pricing-card.highlighted { border: 2px solid var(--primary-color); transform: scale(1.05); box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1); }
.badge-top { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 50px; letter-spacing: 0.5px; white-space: nowrap; }

/* =========================================================================
   8. SCRİPT VİTRİNİ
   ========================================================================= */
.scripts-section { padding: 80px 0 100px 0; background: var(--card-bg); }
.scripts-slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.script-card { background: var(--bg-color); border-radius: var(--border-radius); overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition); }
.script-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
.script-img { position: relative; width: 100%; height: 220px; background: #e2e8f0; }
.script-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.script-card:hover .script-img img { transform: scale(1.05); }
.price-tag { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.9); color: var(--text-color); padding: 6px 12px; border-radius: 50px; font-weight: 800; font-size: 14px; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
body.dark-mode .price-tag { background: rgba(15, 23, 42, 0.9); color: #fff; }
.script-info { padding: 24px; }
.script-info h4 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.script-info p { color: var(--text-muted); font-size: 14px; line-height: 1.6; min-height: 45px; }

/* =========================================================================
   9. FOOTER
   ========================================================================= */
.main-footer { background: var(--card-bg); padding: 40px 0; color: var(--text-muted); border-top: 1px solid var(--border-color); }
.footer-badges { font-size: 24px; display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; color: var(--text-muted); }

/* =========================================================================
   10. KUSURSUZ MOBİL UYUM (POYRAZ TARZI SEPET VE MENÜ)
   ========================================================================= */
@media (max-width: 992px) {
    .pricing-grid, .scripts-slider { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.highlighted { transform: scale(1); }
    .hero-content h1 { font-size: 42px; }
}

@media (max-width: 768px) {
    /* Masaüstü butonlarını gizle */
    .desktop-only-flex { display: none !important; }
    
    /* Poyraz Tarzı Menü Butonu (Mavi Kutulu) */
    .mobile-menu-btn { 
        display: flex; align-items: center; justify-content: center;
        background: var(--primary-color); color: #fff; 
        border: none; border-radius: 6px; 
        width: 42px; height: 42px; font-size: 20px; 
        cursor: pointer; margin-left: 10px;
    }
    
    .main-header { padding: 10px 0; }
    .logo h2 { font-size: 24px; }

    /* YENİ NESİL AÇILIR MENÜ */
    .navbar ul { 
        position: absolute; top: 100%; left: 0; width: 100%; 
        background: var(--card-bg); border-bottom: 1px solid var(--border-color);
        flex-direction: column; gap: 0; text-align: left;
        display: none; /* JS classList.toggle('active') ile açılıp kapanacak */
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    .navbar ul.active { display: flex; border-top: 1px solid var(--border-color); }
    
    /* Menü Linkleri (Ok İkonlu) */
    .navbar .nav-item a { 
        display: flex; justify-content: space-between; align-items: center; 
        padding: 16px 24px; font-size: 16px; font-weight: 600; color: var(--text-color); 
        border-bottom: 1px solid var(--border-color); 
    }
    .navbar .nav-item a::after { 
        content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; 
        color: var(--text-muted); font-size: 14px; 
    }

    /* MOBİL ALT 3'LÜ IZGARA (Sepet, Giriş, Kayıt) */
    .mobile-action-grid { 
        display: grid !important; grid-template-columns: repeat(3, 1fr); 
        background: var(--bg-color); padding: 25px 10px; border-top: none;
    }
    .m-action-box { 
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
        text-align: center; color: var(--text-color) !important; font-weight: 700; font-size: 13px !important; 
        border: none !important; padding: 0 !important;
    }
    .m-action-box::after { display: none !important; } 
    
    .m-icon { font-size: 28px; color: var(--primary-color); position: relative; }
    .m-badge { 
        position: absolute; top: -6px; right: -10px; background: #10b981; color: white; 
        font-size: 10px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; 
        border-radius: 50%; font-weight: 800; border: 2px solid var(--bg-color); 
    }

    /* Hero ve Arama Barı */
    .hero-section { padding: 50px 0 70px 0; }
    .hero-content h1 { font-size: 36px; }
    .domain-search-box { border-radius: 20px; padding: 10px; width: 100%; }
    .input-group { flex-direction: column; gap: 10px; width: 100%; }
    .www-prefix { display: none; }
    .input-group input, .input-group select, .input-group button { 
        width: 100%; border: 1px solid var(--border-color); 
        border-radius: 12px !important; padding: 14px; text-align: center; font-size: 16px;
    }
    .input-group select { border-left: 1px solid var(--border-color); }
    .input-group button { background: var(--primary-color); font-weight: bold; }
    
    /* Kartların Tam Ekrana Oturması */
    .flex-grid, .pricing-grid, .scripts-slider { grid-template-columns: 1fr; gap: 20px; }
    .quick-categories { margin-top: -30px; }
    .category-card { padding: 30px 20px; align-items: center; text-align: center; }
    .pricing-card.highlighted { margin: 10px 0; transform: scale(1); }
}
