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

/* Global Design Tokens */
:root {
    --apple-black: #000000;
    --apple-black-hover: #1d1d1f;
    --apple-gray-bg: #f5f5f7;
    --apple-text-primary: #1d1d1f;
    --apple-text-secondary: #86868b;
    --apple-border: rgba(0, 0, 0, 0.08);
    
    /* Vibrant Gradients */
    --grad-primary: linear-gradient(135deg, #000000 0%, #1d1d1f 100%);
    --grad-vibrant: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--apple-border);
}

.apple-card-outline {
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.apple-icon {
    width: 24px;
    height: 24px;
    color: var(--apple-text-primary);
    opacity: 0.8;
}

/* Premium Buttons */
.btn-apple-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: var(--grad-primary);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-apple-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
}

.btn-apple-primary:active {
    transform: scale(0.98);
}

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

.btn-apple-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background-color: var(--apple-gray-bg);
    color: var(--apple-text-primary);
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-apple-secondary:hover {
    background-color: #e8e8ed;
    transform: translateY(-1px);
}

.btn-apple-secondary:active {
    transform: scale(0.98);
}

/* Typography & Layout Refinements */
.apple-heading {
    letter-spacing: -0.022em;
    font-weight: 700;
    color: var(--apple-text-primary);
}

.apple-subheading {
    letter-spacing: -0.011em;
    font-weight: 500;
    color: var(--apple-text-secondary);
}

.card-hover-effect {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}

.platinum-border {
    position: relative;
    overflow: hidden;
}

.platinum-border::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 60%,
        transparent 100%
    );
    transition: all 0.8s ease;
    transform: translateX(-100%);
    pointer-events: none;
}

.platinum-border:hover::after {
    transform: translateX(100%);
}

/* Existing Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.toast-enter {
    animation: slideInRight 0.3s ease-out forwards;
}

.toast-exit {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Elite Toast Styles */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 0 24px;
    width: 100%;
    transform-origin: left;
}

.toast-container-elite {
    perspective: 1000px;
}

/* Noir Success Gradient */
.toast-success-accent {
    background: linear-gradient(90deg, #34c759 0%, #30db5b 100%);
}

/* Noir Error Gradient */
.toast-error-accent {
    background: linear-gradient(90deg, #ff3b30 0%, #ff453a 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

