/*
Theme Name: KSDijital Theme
Theme URI: https://wisecp.siberhosting.com
Author: Kadir
Author URI: https://wisecp.siberhosting.com
Description: KSDijital için sıfırdan geliştirilmiş, modern, premium ve tam uyumlu e-ticaret teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: ksdijitaltheme
*/

/* --- Özel CSS Kodlarımız Buradan Aşağıya Gelecek --- */
/* --- KSDijital Premium Karanlık Tema & Neon Stil --- */

/* 1. Kök Değişkenler (Tüm renkleri buradan yöneteceğiz) */
:root {
    --bg-dark: #0a0a0f; /* Çok derin, premium bir siyah/lacivert */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --neon-blue: #00f3ff;
    --neon-purple: #b535f6;
    --glass-bg: rgba(10, 10, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* 2. Temel Sıfırlama ve Gövde */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.ksdijital-premium-dark {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 3. Cam Efektli (Glassmorphism) Header */
.premium-glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px; /* Geniş, modern görünüm */
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 4. Logo ve Neon Efekti */
.site-title a {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3), 0 0 20px rgba(181, 53, 246, 0.3);
    transition: 0.3s ease;
}

.site-title a:hover {
    text-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-purple);
}

/* 5. Modern Navigasyon (Menü) */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Menü Linkleri İçin Neon Alt Çizgi Efekti */
.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--neon-blue);
}

.main-navigation a:hover {
    color: #fff;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* 6. İçerik Alanı */
.site-main {
    margin-top: 100px; /* Header'ın altında kalmaması için boşluk */
    min-height: 80vh;
    padding: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* 7. Footer */
.site-footer {
    background: #050508;
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
}

.brand-text {
    color: var(--neon-blue);
    font-weight: bold;
}

.designer-credit {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.6;
}

/* --- 8. Off-Canvas (Yandan Açılan) Premium Sepet --- */

.ksd-side-cart {
    position: fixed;
    top: 0;
    right: -450px; /* Başlangıçta ekranın sağında gizli tutuyoruz */
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-dark); /* Derin premium karanlık */
    box-shadow: -10px 0 30px rgba(0, 243, 255, 0.05);
    border-left: 1px solid var(--neon-purple); /* Sınırları belirleyen neon mor çizgi */
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Pürüzsüz kayma efekti */
    display: flex;
    flex-direction: column;
}

.ksd-side-cart.open {
    right: 0; /* JS ile .open sınıfı eklendiğinde ekrana kayarak girer */
}

.ksd-cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.ksd-cart-header h3 {
    color: var(--neon-blue);
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.ksd-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ksd-close-btn:hover {
    color: var(--neon-purple);
    transform: rotate(90deg) scale(1.1);
}

.ksd-cart-content {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Arkaplanı Karartan ve Flulaştıran Cam Perde (Overlay) */
.ksd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ksd-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* WooCommerce Mini Sepet Renklerini Temaya Uydurma */
.woocommerce-mini-cart { color: var(--text-main); }
.woocommerce-mini-cart__empty-message { text-align: center; color: var(--text-muted); font-size: 1rem; margin-top: 2rem;}
.woocommerce-mini-cart-item a { color: var(--text-main); text-decoration: none; transition: 0.3s;}
.woocommerce-mini-cart-item a:hover { color: var(--neon-blue); }