/* Premium İç Giyim Mağazası Stilleri */

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    display: none;
    width: 100%;
}

.hero-slide.active {
    display: block;
    animation: slideFadeIn 1s ease-in-out;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-dot.active {
    opacity: 1 !important;
    transform: scale(1.3);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    transition: transform 0.5s ease;
}

/* Campaign Cards */
.campaign-card {
    transition: all 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-5px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8941D;
}

/* Button Hover Effects */
button, a[class*="bg-"] {
    transition: all 0.3s ease;
}

button:hover, a[class*="bg-"]:hover {
    transform: translateY(-2px);
}

/* Image Zoom Container */
#zoomContainer {
    position: relative;
    cursor: zoom-in;
}

#zoomResult {
    position: absolute;
    top: 0;
    right: -420px;
    width: 400px;
    height: 400px;
    background-size: cover;
    background-position: center;
    border: 2px solid #D4AF37;
    border-radius: 8px;
    z-index: 10;
}

/* Tab Content Animation */
.tab-panel {
    animation: fadeIn 0.5s ease-in;
}

/* Form Input Focus Effects */
input:focus, textarea:focus, select:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Color Option Selection */
.color-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.border-gold {
    border-width: 3px !important;
}

/* Size Option Selection */
.size-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.size-option:hover {
    transform: scale(1.05);
}

/* Thumbnail Selection */
.thumbnail {
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.thumbnail.active-thumbnail {
    border-color: #D4AF37 !important;
    border-width: 3px !important;
}

/* Image gallery navigation */
#prevImage, #nextImage {
    transition: all 0.3s ease;
}

#prevImage:hover, #nextImage:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-slide p {
        font-size: 1.2rem !important;
    }
    
    #zoomResult {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    nav, footer, button, .hero-slider {
        display: none;
    }
}

/* Accessibility Improvements */
button:focus, a:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Smooth Transitions */
a, button, .product-card, .campaign-card, .thumbnail, .color-option, .size-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Selection Color */
::selection {
    background-color: #D4AF37;
    color: #0A0A0A;
}

::-moz-selection {
    background-color: #D4AF37;
    color: #0A0A0A;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* Navbar backdrop blur effect */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Auto-hide nav transition */
#mainNav {
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

/* Product grid animations */
.product-card {
    animation: fadeIn 0.6s ease-out;
}

/* WhatsApp button pulse animation */
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

a[href*="wa.me"] {
    animation: pulse-whatsapp 2s infinite;
}

/* Filter sidebar sticky */
aside {
    position: sticky;
    top: 100px;
}

/* Search bar animation */
#searchBar {
    animation: slideDown 0.3s ease-out;
}

/* Mobile menu styles */
#mobileMenu {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
}

/* Admin Modal Fixes */
#page-section-modal input[type="text"],
#page-section-modal input[type="email"],
#page-section-modal input[type="url"],
#page-section-modal input[type="tel"] {
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 100%;
}

#page-section-modal .flex {
    flex-wrap: wrap;
}

#page-section-modal button {
    min-width: fit-content;
    white-space: nowrap;
}

/* Page Sections List Fixes */
#page-sections-list .border {
    overflow: hidden;
}

#page-sections-list .flex-1 {
    min-width: 0;
    overflow: hidden;
}

#page-sections-list p {
    word-break: break-word;
    overflow-wrap: break-word;
}

#page-sections-list .flex-shrink-0 {
    flex-shrink: 0;
}

/* Fix filter sidebar scroll on mobile */
@media (max-width: 1023px) {
    aside#filtersSidebar {
        position: relative !important;
        top: auto !important;
        margin-bottom: 2rem;
    }
    
    /* Make filters collapsible on mobile */
    aside#filtersSidebar.collapsed > div {
        display: none;
    }
    
    aside#filtersSidebar.collapsed h2 span {
        transform: rotate(-90deg);
        display: inline-block;
        transition: transform 0.3s;
    }
    
    aside#filtersSidebar h2 span {
        transition: transform 0.3s;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
