/* ===== GLOBAL STYLES ===== */
html { scroll-behavior: smooth; }
:focus-visible { outline: 3px solid rgba(234,179,8,.6); outline-offset: 3px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===== DROPDOWN & MOBILE MENU ===== */
[x-cloak] { display: none !important; }
.transition-all { transition: all 0.3s ease; }
.rotate-180 { transform: rotate(180deg); }

.menu-enter {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
}
.menu-enter-active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease-in-out;
}
.menu-exit {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}
.menu-exit-active {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease-in-out;
}

/* ===== ANİMASİYALAR ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}
.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 25px 12px rgba(245, 158, 11, 0.25); }
}
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 20px 8px rgba(245, 158, 11, 0.15); }
}
.pulse-glow-soft {
    animation: pulse-glow-soft 3s ease-in-out infinite;
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-border {
    position: relative;
    background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
    background-size: 300% 300%;
    animation: gradient-border 5s ease alternate infinite;
}

@keyframes particle {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    100% { transform: translateY(-100px) translateX(50px) scale(0); opacity: 0; }
}
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #0ba3f5;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(1px);
    animation: particle 3s linear infinite;
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}
.ripple-effect {
    position: relative;
    overflow: hidden;
}
.ripple-effect:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: rgba(245, 158, 11, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.8s ease-out;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.rotate-slow {
    animation: rotate-slow 12s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin-slow {
    animation: spin-slow 10s linear infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}
.shine-effect {
    position: relative;
    overflow: hidden;
}
.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}
.shine-effect:hover::after {
    animation: shine 1.5s infinite;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

@keyframes priceFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.price-float {
    animation: priceFloat 2s ease-in-out infinite;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #f59e0b; }
    100% { transform: scale(1); }
}
.count-pulse {
    animation: countPulse 0.3s ease-in-out;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.loading-bar {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, #f59e0b, transparent);
    background-size: 200% 100%;
    animation: loading 1.8s linear infinite;
}

@keyframes bounce-smooth {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.bounce-smooth {
    animation: bounce-smooth 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
    50% { text-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 30px rgba(245, 158, 11, 0.5); }
}
.glowing-text {
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}
.shake-animation:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #f59e0b; }
}
.typing-effect {
    border-right: 2px solid #f59e0b;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* ===== HOVER & TRANSITION EFFECTS ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.1);
}

.card-3d {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.card-3d:hover {
    transform: rotateX(3deg) rotateY(3deg) scale(1.02);
    box-shadow: 0 30px 40px -10px rgba(0,0,0,0.3);
}

.spec-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.spec-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 30px -10px rgba(245, 158, 11, 0.3);
}

.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: 5;
    pointer-events: none;
}
.product-card:hover::before {
    left: 100%;
}

.pagination-item {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pagination-item:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 10px 15px -5px rgba(245, 158, 11, 0.4);
}

.filter-checkbox {
    transition: all 0.2s ease;
}
.filter-checkbox:checked {
    transform: scale(1.1);
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.filter-section {
    transition: all 0.3s ease;
}
.filter-section:hover {
    transform: translateX(5px);
}

.thumbnail {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.thumbnail:hover::after {
    width: 150px;
    height: 150px;
}
.thumbnail-active {
    ring: 2px solid #f59e0b;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.image-zoom {
    overflow: hidden;
    cursor: zoom-in;
    transition: all 0.5s ease;
    position: relative;
}
.image-zoom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: 5;
    pointer-events: none;
}
.image-zoom:hover::before {
    left: 100%;
}
.image-zoom.zoomed {
    cursor: zoom-out;
}
.image-zoom.zoomed i {
    transform: scale(1.8);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}


/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    transform: rotate(90deg) scale(1.2);
    background: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}
.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-prev:hover, .modal-next:hover {
    background: #f59e0b;
    transform: translateY(-50%) scale(1.2);
}
.modal-prev { left: 30px; }
.modal-next { right: 30px; }

/* ===== ANIMATION DELAYS ===== */
.animation-delay-300 { animation-delay: 300ms; }
.animation-delay-600 { animation-delay: 600ms; }
.animation-delay-1000 { animation-delay: 1000ms; }
.animation-delay-2000 { animation-delay: 2000ms; }

/* ===== FORM ELEMENTS ===== */
input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.bg-blue-transparent {
    background-color: rgba(59, 130, 246, 0.8);
}
.bg-blue-transparent:hover {
    background-color: rgba(37, 99, 235, 0.9);
}
.text-blue-transparent {
    color: rgba(59, 130, 246, 0.9);
}
.border-blue-transparent {
    border-color: rgba(59, 130, 246, 0.5);
}