/**
 * Simple CSS Animations
 * Hafif ve performanslı animasyonlar
 * Steel Gray Theme
 */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(146, 141, 171, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(146, 141, 171, 0.6);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero Section */
.hero {
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Page Header */
.page-header h1 {
    animation: slideInLeft 0.6s ease-out;
}

.page-header p {
    animation: slideInRight 0.6s ease-out 0.2s both;
}

/* Cards with stagger effect */
.model-card,
.category-card,
.product-card,
.collection-card {
    animation: scaleIn 0.5s ease-out both;
}

.model-card:nth-child(1) { animation-delay: 0.1s; }
.model-card:nth-child(2) { animation-delay: 0.2s; }
.model-card:nth-child(3) { animation-delay: 0.3s; }
.model-card:nth-child(4) { animation-delay: 0.4s; }
.model-card:nth-child(5) { animation-delay: 0.5s; }
.model-card:nth-child(6) { animation-delay: 0.6s; }
.model-card:nth-child(7) { animation-delay: 0.7s; }
.model-card:nth-child(8) { animation-delay: 0.8s; }

/* Category Cards */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover Effects */
.model-card,
.category-card,
.product-card,
.collection-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card:hover,
.category-card:hover,
.product-card:hover,
.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(146, 141, 171, 0.3);
}

/* Button Hover */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(146, 141, 171, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Nav Links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #928DAB, #B8B3CA);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Input Focus */
input,
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
}

/* Logo Animation */
.logo-text {
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(146, 141, 171, 0.6);
}

/* Stats Animation */
.stat-value {
    animation: fadeInUp 0.8s ease-out both;
}

.stat-item:nth-child(1) .stat-value { animation-delay: 0.2s; }
.stat-item:nth-child(2) .stat-value { animation-delay: 0.4s; }
.stat-item:nth-child(3) .stat-value { animation-delay: 0.6s; }
.stat-item:nth-child(4) .stat-value { animation-delay: 0.8s; }

/* Feature Cards Float */
.feature-card {
    animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.5s; }
.feature-card:nth-child(3) { animation-delay: 1s; }
.feature-card:nth-child(4) { animation-delay: 1.5s; }

/* Image Hover Zoom */
.model-image,
.category-card img,
.product-card-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card:hover .model-image,
.category-card:hover img,
.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

/* Badge Pulse */
.badge,
.model-badge,
.new-badge {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Smooth Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Skeleton */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #2A2738 0%,
        #353244 50%,
        #2A2738 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Link Underline Animation */
a:not(.btn) {
    position: relative;
}

a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #928DAB;
    transition: width 0.3s ease;
}

a:not(.btn):hover::after {
    width: 100%;
}

/* Section Fade In on Scroll */
section {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive - Disable heavy animations on mobile */
@media (max-width: 768px) {
    .feature-card {
        animation: none;
    }
    
    .badge,
    .model-badge,
    .new-badge {
        animation: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Page Load Animation */
body {
    animation: fadeIn 0.5s ease-out;
}

/* Footer Slide Up */
.footer {
    animation: fadeInUp 0.8s ease-out;
}

/* Notification/Alert Slide In */
.notification,
.alert {
    animation: slideInRight 0.4s ease-out;
}

/* Modal Fade In */
.modal {
    animation: fadeIn 0.3s ease-out;
}

/* Dropdown Slide Down */
.dropdown-menu {
    animation: fadeInUp 0.2s ease-out;
}

/* Progress Bar Fill */
@keyframes progressFill {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.progress-bar {
    animation: progressFill 1.5s ease-out;
}

/* Heartbeat for Likes */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.2);
    }
    20%, 40% {
        transform: scale(1.1);
    }
}

.like-btn.active {
    animation: heartbeat 0.6s ease-out;
}

/* Spin for Loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

