/* Modern Animations and Micro-interactions */

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Button hover effects */
button, .btn, a[class*="btn"] {
    position: relative;
    overflow: hidden;
}

button:hover, .btn:hover, a[class*="btn"]:hover {
    transform: translateY(-1px);
}

button:active, .btn:active, a[class*="btn"]:active {
    transform: translateY(0);
}

/* Ripple effect for buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Card hover animations */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Image lazy loading animation */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Pulse animation for loading states */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Bounce animation for notifications */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide animations */
.slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-down {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fade animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scale animations */
.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(-45deg, #FF6B35, #2EC4B6, #FF6B35, #2EC4B6);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shake animation for errors */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Glow effect */
.glow {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
    }
}

/* Responsive animations - disable on mobile for performance */
@media (max-width: 768px) {
    .card-hover:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    * {
        transition-duration: 0.1s;
    }
}

/* Breadcrumb Styles */
.breadcrumb {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb a {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.breadcrumb a:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.breadcrumb .separator {
    color: #94a3b8;
    font-size: 0.875rem;
}

.breadcrumb .current {
    color: #1e293b;
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile breadcrumb adjustments */
@media (max-width: 640px) {
    .breadcrumb .current {
        max-width: 120px;
    }
    
    .breadcrumb nav {
        font-size: 0.875rem;
    }
}

/* Header Improvements */
header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

header button {
    border-radius: 8px;
    transition: all 0.2s ease;
}

header button:hover {
    background-color: rgba(255, 107, 53, 0.1);
    transform: scale(1.05);
}

header button:active {
    transform: scale(0.95);
}

/* Logo styles */
header img {
    transition: transform 0.3s ease;
    height: 1.5rem; /* 24px - tutarlı boyut */
    width: auto;
    max-width: 120px; /* Maksimum genişlik */
    object-fit: contain;
}

header img:hover {
    transform: scale(1.05);
}

/* Logo container */
header .flex-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0; /* Flexbox overflow fix */
}

/* Text logo styles */
header span {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search Modal */
#search-modal {
    backdrop-filter: blur(5px);
}

#search-modal input {
    transition: all 0.3s ease;
}

#search-modal input:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

/* 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;
    }
}