@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

/* ============================================
   AI Cocktail Mixer - Global Styles
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
    margin: 0;
}

/* ============================================
   Glass Morphism Effect
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Safe Area for iOS
   ============================================ */

.bottom-nav-safe {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

/* ============================================
   Gradient Text
   ============================================ */

.gradient-text {
    background: linear-gradient(to right, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Gradient Button
   ============================================ */

.btn-gradient {
    background: linear-gradient(to right, #db2777, #7c3aed);
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
    transform: scale(1.02);
}

.btn-gradient:active {
    transform: scale(0.95);
}

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

/* ============================================
   Card Styles
   ============================================ */

.drink-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.drink-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.2);
}

.drink-card:active {
    transform: scale(0.98);
}

/* ============================================
   Modal Styles
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: #1e293b;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* ============================================
   Loading Spinner
   ============================================ */

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #ec4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 2rem;
    z-index: 300;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
    display: none !important;
}

.touch-manipulation {
    touch-action: manipulation;
}
