/* Buketçiniz — Premium Design System */

:root {
    --cream-50: #f8f9fb;
    --brand-800: #1e3a5f;
    --brand-900: #152a45;
    --accent-500: #65a30d;
    --accent-600: #4d7c0f;
}

* {
    font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Poppins', system-ui, sans-serif;
}

.font-brand {
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-fade-in { animation: fadeInUp 0.5s ease-out both; }
.animate-fade-in-delay-1 { animation: fadeInUp 0.5s ease-out 0.1s both; }
.animate-fade-in-delay-2 { animation: fadeInUp 0.5s ease-out 0.2s both; }
.animate-fade-in-delay-3 { animation: fadeInUp 0.5s ease-out 0.3s both; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* Scrollbar */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-800) 0%, var(--accent-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(30, 58, 95, 0.15);
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease-out;
    border-left: 4px solid var(--accent-500);
}

/* Admin sidebar active */
.nav-active {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, var(--cream-50) 100%);
    color: var(--brand-800) !important;
    font-weight: 600;
    border-right: 3px solid var(--brand-800);
}

/* Data table */
.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.875rem;
}
.form-input:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

/* Flash ticker */
.ticker-scroll {
    animation: ticker 30s linear infinite;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Product detail — sticky order bar & city modal */
.product-page-body { padding-bottom: 5.5rem; }
@media (min-width: 768px) {
    .product-page-body { padding-bottom: 0; }
}
.city-modal-backdrop {
    background: rgba(0, 0, 0, 0.45);
    animation: fadeIn 0.2s ease-out;
}
.city-modal-sheet {
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.date-card.active {
    border-color: #1e3a5f;
    background: rgba(30, 58, 95, 0.06);
}
.date-card.active .date-card-day { color: #1e3a5f; font-weight: 600; }

/* Mobile bottom padding for WhatsApp bar */
.hero-slider { touch-action: pan-y; }
.hero-slider-track { will-change: transform; height: 100%; }
.hero-slider-slide { height: 100%; }
.hero-slider--fill {
    width: 100%;
    flex: 1;
}
.hero-slider-dot.active { width: 1.25rem; background-color: white; }

/* Admin panel — sayfa geçişlerinde içerik alanı görünür kalsın */
.admin-main {
    min-height: calc(100vh - 4.5rem);
    background-color: var(--cream-50);
}
#admin-overlay:not(.hidden) {
    display: block;
}

@media (max-width: 768px) {
    body.has-mobile-bar { padding-bottom: 72px; }
}
