/* ============================================
   Yemekvarr.online - Global Styles
   Ultra Premium VIP Design
   ============================================ */

:root {
    /* Colors */
    --primary: #ff4e50;
    --primary-glow: #ff4e5060;
    --secondary: #f9d423;
    --accent: #ff8a00;
    --gold: #ffd700;
    --gradient-1: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
    --gradient-2: linear-gradient(135deg, #ff8a00 0%, #ff4e50 100%);
    --gradient-3: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-luxe: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff4e50 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);

    /* Dark Theme */
    --bg-dark: #0a0a1a;
    --bg-card: rgba(20, 20, 40, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-dim: rgba(255, 255, 255, 0.35);

    /* Effects */
    --shadow-glow: 0 0 60px rgba(255, 78, 80, 0.3);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 30px 80px rgba(255, 78, 80, 0.4);
    --blur: blur(20px);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Animated Background
   ============================================ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 78, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 212, 35, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0f0f23 100%);
    animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: floatShape 20s infinite ease-in-out;
    filter: blur(1px);
}

.shape-1 { top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { top: 20%; right: 15%; animation-delay: 2s; font-size: 4rem; }
.shape-3 { bottom: 30%; left: 20%; animation-delay: 4s; }
.shape-4 { bottom: 20%; right: 10%; animation-delay: 6s; font-size: 5rem; }
.shape-5 { top: 50%; left: 5%; animation-delay: 8s; }
.shape-6 { top: 40%; right: 40%; animation-delay: 10s; font-size: 3.5rem; }
.shape-7 { bottom: 40%; right: 30%; animation-delay: 12s; }
.shape-8 { top: 70%; left: 40%; animation-delay: 14s; font-size: 4.5rem; }

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -40px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-20px, -60px) rotate(180deg) scale(0.9); }
    75% { transform: translate(-40px, -20px) rotate(270deg) scale(1.05); }
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 8px;
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 6px;
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s var(--ease);
}

.lang-btn.active {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 78, 80, 0.4);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    position: relative;
    width: 100%;
    padding: 18px 32px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s var(--ease);
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255, 78, 80, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 78, 80, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px 20px;
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-card);
    animation: toastIn 0.4s var(--ease-bounce);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    max-width: 400px;
}

.toast.success { border-left: 4px solid #4ade80; }
.toast.error { border-left: 4px solid #f87171; }
.toast.info { border-left: 4px solid #60a5fa; }
.toast.warning { border-left: 4px solid #fbbf24; }

@keyframes toastIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateX(400px); opacity: 0; }
}

.toast.hiding { animation: toastOut 0.3s var(--ease) forwards; }

/* ============================================
   Overlay
   ============================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================
   Utility Classes
   ============================================ */
.gradient-text {
    background: var(--gradient-luxe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

/* Modal close button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}
.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

@media (max-width: 640px) {
    .lang-switcher { top: 10px; right: 10px; padding: 4px; }
    .lang-btn { padding: 6px 12px; font-size: 0.75rem; }
}
