/* Codenin - Custom Styles */

/* Scrollbar Styles */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar for content areas */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.5);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.7);
}

/* Gradient Text */
.gradient-text-brand {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Soft Shadow */
.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.dark .shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Stat Number Animation */
.stat-number {
    display: inline-block;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Slide Drawer */
.mobile-drawer-panel {
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-drawer-panel.open {
    transform: translateX(0) !important;
}

.mobile-drawer-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
}

/* Notification Dropdown */
.notif-dropdown {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Custom Checkbox */
input[type="checkbox"]:checked {
    background-color: #6366F1;
    border-color: #6366F1;
}

/* Loading Spinner */
.spinner {
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-top-color: #6366F1;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .backdrop-blur-lg {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    
    .backdrop-blur-md {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .backdrop-blur-sm {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Safe Area Insets for Mobile */
@supports (padding: max(0px)) {
    .safe-area-inset-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: rgba(99, 102, 241, 0.2);
    color: inherit;
}

/* Dark mode selection */
.dark ::selection {
    background-color: rgba(99, 102, 241, 0.3);
}

/* Win Modal Animation */
@keyframes winBounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.win-prize-badge {
    animation: prizePulse 1.5s ease-in-out infinite;
}

@keyframes prizePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(-20px) rotate(0deg) scale(1.5); }
    100% { opacity: 0; transform: translateY(30px) rotate(360deg) scale(0.5); }
}

/* Support Chat Bubbles */
.chat-bubble-admin {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0 1rem 1rem 1rem;
}

.dark .chat-bubble-admin {
    background: #0D1526;
    border-color: #1e293b;
}

.chat-bubble-customer {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 1rem 0 1rem 1rem;
    color: white;
}

/* Accordion (FAQ) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 500px;
}

/* Scroll to Top FAB */
.fab-scroll-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fab-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Game Glow */
.game-glow {
    transition: box-shadow 0.3s ease;
}

.game-glow:hover {
    box-shadow: 0 0 30px -5px rgba(99, 102, 241, 0.15);
}

/* Ürün detay — galeri şeridi */
.pd-thumb-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.pd-thumb-strip .pd-thumb {
    scroll-snap-align: start;
}