/*
Theme Name: Kemaloğlu
Theme URI: https://malatyakayisi.net
Author: İstanbul Studio
Author URI: https://istanbulstudio.com
Description: Ultra hızlı e-ticaret teması - PageSpeed 100. WooCommerce gerektirmez, custom ürün sistemi. LiteSpeed Cache ve RankMath SEO ile tam uyumlu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: kemaloglu
Tags: e-commerce, custom-menu, custom-logo, featured-images, translation-ready
*/

/* Non-critical CSS - Bu dosya defer ile yüklenir */

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== MEGA MENU ===== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 600px;
    padding: 24px;
    z-index: 1000;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mega-menu-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.mega-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-col li {
    margin-bottom: 8px;
}

.mega-menu-col a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s;
}

.mega-menu-col a:hover {
    background: var(--cream);
    color: var(--green);
}

.mega-menu-col a img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.mega-menu-featured {
    background: var(--cream);
    border-radius: 10px;
    padding: 20px;
}

.mega-menu-featured img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.mega-menu-featured h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 6px;
}

.mega-menu-featured p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 200px;
    padding: 8px;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown a:hover {
    background: var(--cream);
    color: var(--green);
}

/* ===== SOCIAL PROOF POPUP ===== */
.social-proof {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    max-width: 300px;
    transform: translateX(-120%);
    transition: transform 0.5s ease;
}

.social-proof.visible {
    transform: translateX(0);
}

.social-proof-image {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.social-proof-content {
    flex: 1;
    min-width: 0;
}

.social-proof-text {
    font-size: 0.75rem;
    color: var(--text);
    margin-bottom: 2px;
}

.social-proof-text strong {
    color: var(--green);
}

.social-proof-time {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.social-proof-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--cream);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-proof:hover .social-proof-close {
    opacity: 1;
}

/* ===== PRODUCT HOVER EFFECTS ===== */
.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card-image img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.03);
}

.product-card-quick {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px;
    background: var(--text);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.product-card:hover .product-card-quick {
    opacity: 1;
    transform: translateY(0);
}

.product-card-quick:hover {
    background: var(--green);
}

/* ===== BUNDLE CARDS ===== */
.bundle-card {
    transition: all 0.3s ease;
}

.bundle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* ===== GALLERY ===== */
.gallery-thumb {
    transition: all 0.2s ease;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-main img {
    transition: transform 0.5s ease;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

/* ===== SIZE OPTIONS ===== */
.size-option {
    transition: all 0.2s ease;
}

.size-option:hover {
    border-color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn-primary {
    transition: all 0.3s ease;
}

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

.cart-btn {
    transition: all 0.3s ease;
}

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

/* ===== FAQ ACCORDION ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(45deg);
}

/* ===== SEO TEXT EXPAND ===== */
.seo-text {
    transition: max-height 0.5s ease;
}

.seo-text.expanded {
    max-height: 5000px;
}

.seo-gradient {
    transition: opacity 0.3s ease;
}

.seo-text-container.expanded .seo-gradient {
    opacity: 0;
}

.seo-toggle svg {
    transition: transform 0.3s ease;
}

.seo-text-container.expanded .seo-toggle svg {
    transform: rotate(180deg);
}

/* ===== TABS ===== */
.tab-btn {
    transition: color 0.2s ease;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--green);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-nav {
    padding: 20px;
}

.mobile-menu-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

/* ===== MOBILE STICKY BAR ===== */
.mobile-sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    z-index: 100;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .mega-menu,
    .dropdown {
        display: none !important;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .social-proof {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 80px;
    }
    
    .mobile-sticky {
        display: block;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav,
    .social-proof,
    .mobile-sticky,
    .newsletter {
        display: none !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}
