/* 
   Erhal Plastik - Modern Premium Light Theme stylesheet
   Powered by CSS Variables loaded from the Database.
*/

:root {
    /* Bunlar veritabanından PHP ile enjekte edilerek ezilecektir, 
       ancak fallback olarak burada tanımlıdır */
    --primary-color: #C5A059;
    --primary-hover-color: #A4813D;
    --background-color: #FFFFFF;
    --background-secondary-color: #F8F9FA;
    --text-color: #212529;
    --text-muted-color: #6C757D;
    --body-font: 'Outfit', sans-serif;
    --button-radius: 8px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --glass-opacity: 0.7;
}

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

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden !important;
    max-width: 100%;
}

/* Sayfa Kenarlık Kaydırma */
html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    max-width: 100%;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--button-radius);
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

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

.btn-secondary {
    background-color: #212529;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Glassmorphic Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

.navbar {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1.5px;
    justify-self: start;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    justify-self: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.navbar-utilities {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: end;
}

.navbar-utilities button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s, transform 0.3s, background-color 0.3s;
}

.navbar-utilities button:hover {
    color: var(--primary-color);
    background-color: rgba(197, 160, 89, 0.1);
    transform: translateY(-2px);
}

.lang-selector {
    display: flex;
    gap: 8px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 15px;
    margin-right: 5px;
    align-items: center;
}

body.dark-mode .lang-selector {
    border-left-color: rgba(255, 255, 255, 0.15);
}

.lang-btn {
    text-decoration: none;
    color: var(--text-muted-color);
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s;
}

.lang-btn.active {
    color: var(--primary-color);
}

/* Hero Slider */
.slider-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Resmi koyulaştırarak yazıyı okunur kılar */
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    color: #FFFFFF;
}

.slide-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

.slide-content .btn {
    animation: fadeInUp 1.4s ease;
}

/* Slider Kontrolleri */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: var(--primary-color);
}

.slider-prev { left: 25px; }
.slider-next { right: 25px; }

/* Kategoriler Izgarası (Categories Grid) */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted-color);
    font-size: 16px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--background-secondary-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-card-img {
    height: 220px;
    overflow: hidden;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-info {
    padding: 24px;
}

.category-card-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.category-card .view-products {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.category-card:hover .category-card-img img {
    transform: scale(1.08);
}

/* Ürün Izgarası (Products Grid) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-img {
    height: 200px;
    overflow: hidden;
    background: #F8FAFC;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-info p {
    font-size: 14px;
    color: var(--text-muted-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: var(--button-radius);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Modüler Visual Builder Grid Yapısı */
.builder-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 20px 24px;
}

.builder-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.builder-col-12 { grid-column: span 12; }
.builder-col-11 { grid-column: span 11; }
.builder-col-10 { grid-column: span 10; }
.builder-col-9 { grid-column: span 9; }
.builder-col-8 { grid-column: span 8; }
.builder-col-7 { grid-column: span 7; }
.builder-col-6 { grid-column: span 6; }
.builder-col-5 { grid-column: span 5; }
.builder-col-4 { grid-column: span 4; }
.builder-col-3 { grid-column: span 3; }
.builder-col-2 { grid-column: span 2; }
.builder-col-1 { grid-column: span 1; }

.builder-widget {
    margin-bottom: 25px;
}

/* Akordeon */
.widget-accordion {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: var(--background-secondary-color);
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-body {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out, padding 0.2s ease-out;
}

/* İletişim Formu */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input, .form-group textarea {
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--button-radius);
    font-family: var(--body-font);
    font-size: 15px;
    background-color: var(--background-secondary-color);
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-response {
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--button-radius);
}

/* Harita ve Resim Galeri Widget */
.widget-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.whatsapp-bubble {
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
}

.whatsapp-popup {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    width: 320px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-popup-header {
    background: #075E54;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    background: #128C7E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.whatsapp-popup-body {
    background: #ECE5DD;
    padding: 20px;
    min-height: 80px;
}

.whatsapp-chat-bubble {
    background: white;
    padding: 10px 14px;
    border-radius: 0 10px 10px 10px;
    font-size: 13px;
    max-width: 85%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.whatsapp-popup-footer {
    padding: 15px;
    background: #FFF;
    display: flex;
}

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

.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
}

.animate-on-scroll.fade-in.active {
    animation: fadeInUp 0.8s forwards;
}

.animate-on-scroll.fade-in-up.active {
    animation: fadeInUp 0.8s forwards;
}

/* Pop-up Modalı */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Footer */
footer {
    background: #111827;
    color: #9CA3AF;
    padding: 80px 24px 30px 24px;
    border-top: 1px solid #1F2937;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #9CA3AF;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #1F2937;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* Mobil-Desktop Toggler Görünürlüğü */
.mobile-only-toggle {
    display: none !important;
}
.desktop-only-toggle {
    display: block !important;
}

/* Mobil Menü ve Responsive Eklemeler */
@media(max-width: 992px) {
    .mobile-only-toggle {
        display: flex !important;
    }
    .desktop-only-toggle {
        display: none !important;
    }
    .mobile-only-lang {
        display: block !important;
    }
    .navbar-utilities .lang-selector {
        display: none !important;
    }
    .navbar-utilities {
        gap: 8px !important;
    }
    .logo img {
        max-height: 38px !important;
        width: auto !important;
    }
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        padding: 15px 20px;
        position: relative;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 20px 24px;
        gap: 15px;
        border-top: 1px solid rgba(0,0,0,0.05);
        z-index: 999;
        justify-self: unset;
    }
    body.dark-mode .nav-menu {
        background: rgba(15, 23, 42, 0.98);
        border-top-color: rgba(255, 255, 255, 0.05);
    }
    .nav-menu.active {
        display: flex !important;
    }
    .lang-selector {
        border-left: none;
        padding-left: 0;
        margin-right: 0;
    }
    .slide-content {
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    .slide-content h1 {
        font-size: 28px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    .slide-content p {
        font-size: 14px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 20px !important;
    }
    .slider-arrow {
        width: 36px !important;
        height: 36px !important;
    }
    .slider-prev { left: 10px !important; }
    .slider-next { right: 10px !important; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    /* Visual Builder Sütunlarının Mobilde Alt Alta Sıralanması */
    .builder-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }
    div[class*="builder-col-"] {
        grid-column: span 12 !important;
        width: 100% !important;
    }
    /* Visual Builder İç Pading Taşmalarını Mobilde Küçült */
    .builder-col div[style*="padding: 40px"], 
    .builder-col div[style*="padding: 35px"],
    .builder-col div[style*="padding:40px"],
    .builder-col div[style*="padding:35px"] {
        padding: 20px !important;
    }
    /* Ürün Detay Modalı Mobil Uyum */
    .product-modal {
        align-items: flex-start !important;
        overflow-y: auto !important;
        padding: 10px !important;
    }
    .product-modal-content {
        grid-template-columns: 1fr !important;
        max-height: none !important;
        height: auto !important;
        margin: 20px 0 !important;
    }
    .product-modal-gallery {
        min-height: 250px !important;
        height: 250px !important;
        padding: 10px !important;
    }
    .product-modal-details {
        padding: 20px !important;
    }
}

/* ==========================================================================
   PREMIUM CUSTOM AESTHETICS (DARK MODE, SKELETONS, BLOBS, 3D CARDS & TRANSITIONS)
   ========================================================================== */

/* 1. Ken Burns Zoom Effect */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}
.slide.active .slide-img {
    animation: kenBurns 10s ease-out forwards;
}

/* 2. 3D Tilt & Glow Cards */
.product-card, .category-card {
    position: relative;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.product-card::before, .category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle 120px at var(--glow-x, -999px) var(--glow-y, -999px), rgba(255, 255, 255, 0.12), transparent 80%);
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s;
    opacity: 0;
}
.product-card:hover::before, .category-card:hover::before {
    opacity: 1;
}

/* 3. Yüzen Parçacıklar (Blobs) */
.blobs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.12;
    pointer-events: none;
    animation: floatAnimation 25s infinite alternate ease-in-out;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(197,160,89,0) 70%);
    top: -100px;
    left: -100px;
}
.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3B82F6 0%, rgba(59,130,246,0) 70%);
    bottom: -200px;
    right: -100px;
    animation-duration: 35s;
    animation-delay: -5s;
}
.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #10B981 0%, rgba(16,185,129,0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-delay: -10s;
}
@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(80px, 60px) scale(1.08) rotate(180deg);
    }
    100% {
        transform: translate(-40px, 30px) scale(0.92) rotate(360deg);
    }
}

/* 4. Skeleton Loader */
.skeleton-card {
    background: var(--background-secondary-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 0;
    position: relative;
    box-shadow: var(--card-shadow);
}
.skeleton-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #E2E8F0 25%, #CBD5E1 50%, #E2E8F0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
body.dark-mode .skeleton-img {
    background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
    background-size: 200% 100%;
}
.skeleton-info {
    padding: 20px;
}
.skeleton-line {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, #E2E8F0 25%, #CBD5E1 50%, #E2E8F0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
body.dark-mode .skeleton-line {
    background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
    background-size: 200% 100%;
}
.skeleton-line.title {
    width: 60%;
    height: 16px;
}
.skeleton-line.desc {
    width: 80%;
}
.skeleton-line.button {
    width: 100%;
    height: 40px;
    margin-top: 15px;
    margin-bottom: 0;
}
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 5. Gece Modu (Dark Mode) Styles Override */
body.dark-mode {
    --background-color: #0F172A !important;
    --background-secondary-color: #1E293B !important;
    --text-color: #F8FAFC !important;
    --text-muted-color: #94A3B8 !important;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode header {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .product-card, 
body.dark-mode .category-card, 
body.dark-mode .card, 
body.dark-mode .product-modal-content, 
body.dark-mode .product-modal-details {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}
body.dark-mode .product-modal-gallery {
    background-color: #0F172A !important;
}
body.dark-mode .nav-link, body.dark-mode .logo {
    color: #F8FAFC !important;
}
body.dark-mode .whatsapp-popup-content {
    background: #1E293B !important;
    color: #F8FAFC !important;
}
body.dark-mode .whatsapp-popup-header {
    background: #0F172A !important;
}
body.dark-mode .whatsapp-chat-bubble {
    background: #334155 !important;
    color: #F8FAFC !important;
}
body.dark-mode .lang-btn {
    color: #94A3B8 !important;
    border-color: #334155 !important;
}
body.dark-mode .lang-btn.active {
    background-color: var(--primary-color) !important;
    color: #FFF !important;
}
body.dark-mode input, body.dark-mode textarea, body.dark-mode select {
    background-color: #0F172A !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}
body.dark-mode footer {
    background-color: #0A0F1D !important;
    border-top-color: #1E293B !important;
}
body.dark-mode .contact-info-card {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}
body.dark-mode .campaignPopup .popup-content {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}
body.dark-mode .popup-close {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFF !important;
}
body.dark-mode .whatsapp-bubble {
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4) !important;
}

/* Dark Mode Toggler CSS */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: color 0.3s, transform 0.3s;
    border-radius: 50%;
}
.dark-mode-toggle:hover {
    transform: rotate(30deg);
    color: var(--primary-color);
}
body.dark-mode .dark-mode-toggle {
    color: #FFF;
}
.navbar-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Gece Modu Ripple Katmanı */
.dark-ripple {
    position: fixed;
    top: var(--ripple-y, 50%);
    left: var(--ripple-x, 50%);
    width: 2px;
    height: 2px;
    background-color: #0F172A;
    border-radius: 50%;
    z-index: 99999;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.8s ease;
}
.dark-ripple.animate {
    opacity: 1;
    transform: translate(-50%, -50%) scale(3000);
}

/* ==========================================================================
   CAM MORFİK ARAMA VE LİSTE GÖRÜNÜMÜ & PARALAKS STİLLERİ
   ========================================================================== */

/* 1. Cam Morfik Arama Stilleri */
.search-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
}
.search-results-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.search-results-grid::-webkit-scrollbar {
    width: 6px;
}
.search-results-grid::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.search-result-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #FFF;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}
.search-result-item img, .search-result-item video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* 2. Liste Görünümü (List View) Overrides */
.products-grid.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}
.products-grid.list-view .product-card {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    align-items: center !important;
    text-align: left !important;
    height: auto !important;
    overflow: hidden !important;
}
.products-grid.list-view .product-img {
    height: 200px !important;
    width: 240px !important;
    border-radius: 12px 0 0 12px !important;
}
.products-grid.list-view .product-info {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 20px !important;
    align-items: center !important;
    padding: 30px !important;
}
.products-grid.list-view .product-info .btn-whatsapp {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 180px !important;
    align-self: center !important;
    margin-top: 0 !important;
}
.products-grid.list-view .product-info h3 {
    font-size: 18px !important;
}
.products-grid.list-view .product-info p {
    max-width: 480px !important;
}

@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr !important;
    }
    .products-grid.list-view .product-img {
        width: 100% !important;
        height: 180px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    .products-grid.list-view .product-info {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
    }
    .products-grid.list-view .product-info .btn-whatsapp {
        grid-column: 1;
        grid-row: auto;
        width: 100% !important;
    }
}

/* 3. Paralaks Sınıfı */
.parallax-bg {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ==========================================================================
   PREMIUM HEADER & FOOTER VISUAL ENHANCEMENTS
   ========================================================================== */

/* Header Animasyon ve Kaydırma Efekti */
header {
    transition: padding 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom-color 0.3s ease;
}
header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.dark-mode header.header-scrolled {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
header.header-scrolled .navbar {
    padding: 12px 24px !important;
}

/* Header Menü Link Alt Çizgi Animasyonu */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Footer Premium Alt Yapısı */
footer {
    position: relative;
    background: #0B0F19 !important; /* Premium Obsidian */
    color: #94A3B8 !important;
    padding: 100px 24px 40px 24px !important;
    border-top: 1px solid rgba(255,255,255,0.03) !important;
    overflow: hidden;
}
/* Üstten vuran hafif altın ışık (ambient glow) */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 150px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.06) 0%, rgba(197, 160, 89, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}
.footer-grid {
    position: relative;
    z-index: 1;
}
.footer-col h4 {
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}
.footer-col ul li a {
    text-decoration: none;
    color: #94A3B8 !important;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-col ul li a:hover {
    color: #FFFFFF !important;
    padding-left: 6px;
}

/* Footer Sosyal Medya İkonları */
.footer-social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1 !important;
    transition: all 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
    text-decoration: none;
}
.footer-social-icon:hover {
    background: var(--primary-color) !important;
    color: #FFF !important;
    transform: translateY(-3px) scale(1.1) rotate(8deg);
    box-shadow: 0 10px 15px -3px rgba(197, 160, 89, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    position: relative;
    z-index: 1;
}
body.dark-mode .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.04) !important;
}
