/**
 * Çağman Palet - Özel CSS Dosyası
 */

/* Animasyonlar */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0);
    }
    25% {
        transform: translateY(-15px) translateX(15px) rotate(5deg);
    }
    50% {
        transform: translateY(-25px) translateX(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) translateX(-25px) rotate(2deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Özel Sınıflar */
.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-slide-down {
    animation: slide-down 0.8s ease-out forwards;
}

.wood-bg {
    background-image: url('/assets/images/textures/wood-texture-dark.jpg');
    background-repeat: repeat;
    background-size: 400px;
    background-color: #111111;
}

.noise-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/textures/noise.png');
    opacity: 0.03;
    pointer-events: none;
}

.perspective {
    perspective: 1000px;
}

.product-category-btn.active {
    position: relative;
}

.product-category-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
}

/* Görünür olmayan elementler için düzeltme */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tailwind Override */
.bg-black {
    background-color: #000000;
}

.bg-gray-900 {
    background-color: #111111;
}

.bg-gray-800 {
    background-color: #1A1A1A;
}

.bg-gray-700 {
    background-color: #2A2A2A;
}

/* Root Değişkenleri - Tema için */
:root {
    --color-primary: #121212;
    --color-secondary: #1E1E1E;
    --color-accent: #333333;
    --color-accent-hover: #454545;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #AAAAAA;
    --color-text-muted: #777777;
    --color-border: #2A2A2A;
    --gradient-from: #121212;
    --gradient-to: #2A2A2A;
}

/* Genel Stiller */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f0f0f;
    color: var(--color-text-primary);
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Header ve Mega Menu Stilleri */
#main-header {
    transition: all 0.3s ease;
}

#main-header.scrolled {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Mega Menu Düzenlemeleri - Pozisyon İyileştirmesi */
header nav {
    position: static !important;
}

.menu-item,
.menu-item-has-children {
    position: relative;
}

.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    pointer-events: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item-has-children::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: transparent;
    z-index: 101;
}

.mega-menu.hover-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.mega-menu-column h4 {
    position: relative;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.mega-menu-column h4 i {
    margin-right: 0.5rem;
    color: var(--color-accent);
    font-size: 1.25rem;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 0.625rem;
}

.mega-menu-column ul li a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    padding: 0.375rem 0;
    border-radius: 0.25rem;
}

.mega-menu-column ul li a:hover {
    color: var(--color-text-primary);
    transform: translateX(3px);
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 0.5rem;
}

.mega-menu-column ul li a i {
    font-size: 0.875rem;
    margin-right: 0.625rem;
    opacity: 0.7;
    width: 1.25rem;
    text-align: center;
    color: var(--color-accent);
}

.all-items-link {
    display: flex !important;
    align-items: center;
    margin-top: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
    border-left: 2px solid var(--color-accent);
}

.all-items-link:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent) !important;
    transform: translateX(5px) !important;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.6), rgba(20, 20, 20, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    height: 5rem;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.5), rgba(10, 10, 10, 0.7));
    color: var(--color-accent);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.category-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.category-icon i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
}

.category-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.category-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.category-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    transition: all 0.2s ease;
    margin-top: auto;
}

.category-link:hover {
    color: white;
}

.category-link i {
    font-size: 0.75rem;
    margin-left: 0.375rem;
    transition: transform 0.2s ease;
}

.category-link:hover i {
    transform: translateX(3px);
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.subcategory-item {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.subcategory-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.featured-product {
    background: linear-gradient(to right, rgba(30, 30, 30, 0.7), rgba(20, 20, 20, 0.7));
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.featured-product:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.featured-product .image-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.featured-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-product:hover img {
    transform: scale(1.05);
}

.featured-product-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-product-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.featured-product-content p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.mega-menu-promo {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.7), rgba(10, 10, 10, 0.8));
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.mega-menu-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: 0;
    opacity: 0.5;
}

.mega-menu-promo > * {
    position: relative;
    z-index: 1;
}

.mega-menu-promo h4 {
    border-bottom: none;
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.mega-menu-promo h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-accent);
    border-radius: 3px;
}

.feature-box {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    z-index: -1;
}

.feature-box:hover {
    transform: translateY(-3px);
    background-color: rgba(0, 0, 0, 0.3);
}

.feature-icon {
    display: inline-block;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--color-accent), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

.menu-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.375rem;
    width: 1rem;
    height: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-indicator i {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .menu-indicator {
    background-color: var(--color-accent);
}

.menu-item-has-children:hover .menu-indicator i {
    transform: rotate(180deg);
    color: white;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.5;
}

a:hover .dropdown-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.featured-product {
    background: linear-gradient(to right, #1a1a1a, #121212);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.mega-menu-promo {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #2a2a2a;
}

.menu-indicator {
    display: inline-flex;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.menu-item-has-children:hover .menu-indicator {
    transform: rotate(180deg);
}
/* 
 * Mobil Menü CSS Düzeltmesi
 * Bu düzeltmeler mobil menünün hemen kapanma sorununu çözer
 */

/* Temel mobil menü stillerini düzelt */
#mobile-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
    max-height: 80vh;
    overflow-y: auto;
    border-bottom: 1px solid #333;
    z-index: 50;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

#mobile-menu.active {
    display: block;
}

/* Dropdown içerik stillerini düzelt */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.mobile-dropdown-content.active {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.35s ease-in-out, opacity 0.25s ease;
}

/* Mobil dropdown toggle butonuna pointer ekleme */
.mobile-dropdown-toggle {
    cursor: pointer;
    position: relative;
    user-select: none;
}

/* Mobil alt menü stillerini düzelt */
.mobile-submenu {
    padding-left: 1rem;
    border-left: 1px solid #333;
    margin: 0.5rem 0 0.5rem 0.5rem;
}

/* Menüde yer alacak tıklanabilir alanların boyutunu artır */
#mobile-menu a,
#mobile-menu .mobile-dropdown-toggle {
    padding: 12px 8px;
    display: block;
}

/* Mobil menü butonunu daha belirgin yap */
#mobile-menu-button {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
}




/* 
 * Mega Menü Ortalama Düzeltmesi
 * Bu CSS kodu mega menülerin ortalı bir şekilde açılmasını sağlar
 */

/* Mega Menü ana konteyner düzeltmesi */
.mega-menu {
    position: fixed !important; /* absolute yerine fixed kullanarak daha güvenilir pozisyonlama */
    left: 0 !important;
    right: 0 !important;
    top: var(--header-height, 65px) !important; /* Header yüksekliği */
    width: 100% !important;
    margin-left: 0 !important; /* calc(-50vw + 50%) yerine sıfır kullan */
    transform-origin: top center !important;
    z-index: 999 !important;
    display: flex !important;
    justify-content: center !important; /* Yatayda ortala */
    align-items: flex-start !important; /* Dikeyde üstte tut */
}

/* Mega Menü iç konteyner düzeltmesi */
.mega-menu-container {
    width: 100% !important;
    max-width: 1280px !important; /* veya sitenizin max-width değeri */
    margin: 0 auto !important;
    position: relative !important;
    padding: 2rem !important;
}

/* Menü öğesi ile mega menü arasındaki ilişkiyi düzelt */
.menu-item-has-children {
    position: static !important; /* relative yerine static kullan */
}

/* Mega menü hover durumu düzeltmesi */
.mega-menu.hover-active {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Responsive düzeltmeler */
@media (max-width: 1280px) {
    .mega-menu-container {
        max-width: 100% !important;
        padding: 1.5rem !important;
    }
}

/* Animasyon düzeltmesi */
.mega-menu {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    transform: translateY(-10px) !important;
}

.mega-menu.hover-active {
    transform: translateY(0) !important;
}

/* Mobil Menü İyileştirmeleri */
@media (max-width: 1023px) {
  .mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .mobile-dropdown-toggle.active + .mobile-dropdown-content {
    max-height: 2000px;
  }
  
  .mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
  }
  
  .mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
  }
}