/**
 * Vibe Awards - Comprehensive Brand System
 * Apple-inspired design system with consistent colors, spacing, and components
 */

/* === BRAND FOUNDATION === */

:root {
    /* Primary Brand Colors - Apple-inspired palette */
    --vibe-blue: #0071E3;
    --vibe-blue-light: #409CFF;
    --vibe-blue-dark: #0056B3;
    --vibe-blue-ultra-light: rgba(0, 113, 227, 0.1);
    
    /* Secondary Brand Colors */
    --vibe-purple: #BF5AF2;
    --vibe-purple-light: #D186FF;
    --vibe-purple-dark: #9D42C0;
    
    --vibe-teal: #5AC8FA;
    --vibe-teal-light: #7ED4FD;
    --vibe-teal-dark: #32A3E6;
    
    --vibe-indigo: #5856D6;
    --vibe-indigo-light: #7C7AE3;
    --vibe-indigo-dark: #4A47C4;
    
    /* Accent Colors */
    --vibe-green: #30D158;
    --vibe-green-light: #5DE67C;
    --vibe-green-dark: #24A946;
    
    --vibe-orange: #FF9F0A;
    --vibe-orange-light: #FFB340;
    --vibe-orange-dark: #E88C00;
    
    --vibe-red: #FF375F;
    --vibe-red-light: #FF6B87;
    --vibe-red-dark: #E8284A;
    
    --vibe-yellow: #FFD60A;
    --vibe-yellow-light: #FFE03E;
    --vibe-yellow-dark: #E8C200;
    
    /* Neutral Colors */
    --vibe-black: #000000;
    --vibe-dark: #1D1D1F;
    --vibe-dark-elevated: #2C2C2E;
    --vibe-gray-dark: #3A3A3C;
    --vibe-gray: #86868B;
    --vibe-gray-light: #C7C7CC;
    --vibe-gray-ultra-light: #F2F2F7;
    --vibe-white: #FFFFFF;
    
    /* Text Colors */
    --vibe-text-primary: #F5F5F7;
    --vibe-text-secondary: rgba(245, 245, 247, 0.8);
    --vibe-text-tertiary: rgba(245, 245, 247, 0.6);
    --vibe-text-quaternary: rgba(245, 245, 247, 0.4);
    --vibe-text-disabled: rgba(245, 245, 247, 0.3);
    
    /* Background Colors */
    --vibe-bg-primary: #000000;
    --vibe-bg-secondary: #1D1D1F;
    --vibe-bg-tertiary: #2C2C2E;
    --vibe-bg-elevated: rgba(255, 255, 255, 0.05);
    --vibe-bg-elevated-hover: rgba(255, 255, 255, 0.08);
    --vibe-bg-elevated-pressed: rgba(255, 255, 255, 0.12);
    
    /* Border Colors */
    --vibe-border-primary: rgba(255, 255, 255, 0.1);
    --vibe-border-secondary: rgba(255, 255, 255, 0.2);
    --vibe-border-tertiary: rgba(255, 255, 255, 0.3);
    
    /* Shadow Colors */
    --vibe-shadow-small: 0 4px 16px rgba(0, 0, 0, 0.12);
    --vibe-shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.16);
    --vibe-shadow-large: 0 16px 64px rgba(0, 0, 0, 0.24);
    --vibe-shadow-glow: 0 0 40px rgba(0, 113, 227, 0.3);
    
    /* Brand Gradients */
    --vibe-gradient-primary: linear-gradient(135deg, var(--vibe-blue), var(--vibe-teal));
    --vibe-gradient-secondary: linear-gradient(135deg, var(--vibe-purple), var(--vibe-indigo));
    --vibe-gradient-accent: linear-gradient(135deg, var(--vibe-orange), var(--vibe-red));
    --vibe-gradient-success: linear-gradient(135deg, var(--vibe-green), var(--vibe-teal));
    --vibe-gradient-warm: linear-gradient(135deg, var(--vibe-orange), var(--vibe-yellow));
    --vibe-gradient-cool: linear-gradient(135deg, var(--vibe-blue), var(--vibe-purple));
    
    /* Interactive States */
    --vibe-interactive-hover: rgba(255, 255, 255, 0.1);
    --vibe-interactive-pressed: rgba(255, 255, 255, 0.2);
    --vibe-interactive-disabled: rgba(255, 255, 255, 0.05);
    
    /* Status Colors */
    --vibe-status-info: var(--vibe-blue);
    --vibe-status-success: var(--vibe-green);
    --vibe-status-warning: var(--vibe-orange);
    --vibe-status-error: var(--vibe-red);
    
    /* Blur Effects */
    --vibe-blur-light: blur(20px);
    --vibe-blur-medium: blur(40px);
    --vibe-blur-heavy: blur(80px);
}

/* === COMPONENT TOKENS === */

/* Navigation */
.vibe-nav {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) var(--vibe-blur-light);
    border-bottom: 1px solid var(--vibe-border-primary);
}

/* Cards */
.vibe-card {
    background: var(--vibe-bg-elevated);
    backdrop-filter: var(--vibe-blur-medium);
    border: 1px solid var(--vibe-border-primary);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vibe-card:hover {
    background: var(--vibe-bg-elevated-hover);
    border-color: var(--vibe-border-secondary);
    box-shadow: var(--vibe-shadow-medium);
    transform: translateY(-4px);
}

.vibe-card:active {
    background: var(--vibe-bg-elevated-pressed);
    transform: translateY(-2px);
}

/* Buttons */
.vibe-btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vibe-btn-primary {
    background: var(--vibe-gradient-primary);
    color: var(--vibe-white);
    border: none;
}

.vibe-btn-primary:hover {
    box-shadow: var(--vibe-shadow-glow);
    transform: translateY(-2px);
}

.vibe-btn-secondary {
    background: var(--vibe-bg-elevated);
    color: var(--vibe-text-primary);
    border: 1px solid var(--vibe-border-secondary);
}

.vibe-btn-secondary:hover {
    background: var(--vibe-bg-elevated-hover);
    border-color: var(--vibe-border-tertiary);
}

.vibe-btn-ghost {
    background: transparent;
    color: var(--vibe-text-secondary);
    border: 1px solid transparent;
}

.vibe-btn-ghost:hover {
    background: var(--vibe-interactive-hover);
    color: var(--vibe-text-primary);
}

/* Form Elements */
.vibe-input {
    background: var(--vibe-bg-elevated);
    border: 1px solid var(--vibe-border-primary);
    border-radius: 12px;
    color: var(--vibe-text-primary);
    transition: all 0.3s ease;
}

.vibe-input:focus {
    border-color: var(--vibe-blue);
    box-shadow: 0 0 0 3px var(--vibe-blue-ultra-light);
    background: var(--vibe-bg-elevated-hover);
}

.vibe-input::placeholder {
    color: var(--vibe-text-quaternary);
}

/* Tags and Badges */
.vibe-tag {
    background: var(--vibe-bg-elevated);
    color: var(--vibe-text-secondary);
    border: 1px solid var(--vibe-border-primary);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
}

.vibe-tag-blue { 
    background: var(--vibe-blue-ultra-light);
    color: var(--vibe-blue-light);
    border-color: rgba(0, 113, 227, 0.3);
}

.vibe-tag-purple { 
    background: rgba(191, 90, 242, 0.1);
    color: var(--vibe-purple-light);
    border-color: rgba(191, 90, 242, 0.3);
}

.vibe-tag-green { 
    background: rgba(48, 209, 88, 0.1);
    color: var(--vibe-green-light);
    border-color: rgba(48, 209, 88, 0.3);
}

/* Icons */
.vibe-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--vibe-gradient-primary);
    color: var(--vibe-white);
    font-size: 14px;
    transition: all 0.3s ease;
}

.vibe-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--vibe-shadow-small);
}

/* Status Indicators */
.vibe-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vibe-status-success {
    background: rgba(48, 209, 88, 0.1);
    color: var(--vibe-green);
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.vibe-status-warning {
    background: rgba(255, 159, 10, 0.1);
    color: var(--vibe-orange);
    border: 1px solid rgba(255, 159, 10, 0.3);
}

.vibe-status-error {
    background: rgba(255, 55, 95, 0.1);
    color: var(--vibe-red);
    border: 1px solid rgba(255, 55, 95, 0.3);
}

/* === BRAND PATTERNS === */

/* Glassmorphism Effect */
.vibe-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: saturate(180%) var(--vibe-blur-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neumorphism Effect */
.vibe-neomorphic {
    background: var(--vibe-bg-secondary);
    box-shadow: 
        inset 5px 5px 10px rgba(0, 0, 0, 0.3),
        inset -5px -5px 10px rgba(255, 255, 255, 0.05);
}

/* Gradient Borders */
.vibe-gradient-border {
    position: relative;
    background: var(--vibe-bg-primary);
    border-radius: 16px;
}

.vibe-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: var(--vibe-gradient-primary);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

/* Animated Backgrounds */
.vibe-animated-bg {
    background: 
        radial-gradient(circle at 30% 20%, rgba(191, 90, 242, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(88, 86, 214, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(0, 113, 227, 0.08) 0%, transparent 50%);
    animation: vibeGradientShift 20s ease-in-out infinite;
}

@keyframes vibeGradientShift {
    0%, 100% { 
        background-position: 0% 50%, 100% 50%, 50% 0%;
    }
    50% { 
        background-position: 100% 50%, 0% 50%, 50% 100%;
    }
}

/* === COMPONENT LIBRARY === */

/* Hero Section */
.vibe-hero {
    background: var(--vibe-animated-bg);
    text-align: center;
    padding: 120px 24px 80px;
}

.vibe-hero-title {
    font-size: clamp(32px, 8vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vibe-hero-subtitle {
    font-size: clamp(16px, 4vw, 24px);
    color: var(--vibe-text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.vibe-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 80px 24px;
}

.vibe-feature-card {
    @extend .vibe-card;
    padding: 32px;
    text-align: center;
}

.vibe-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--vibe-gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--vibe-white);
}

.vibe-feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--vibe-text-primary);
}

.vibe-feature-description {
    color: var(--vibe-text-secondary);
    line-height: 1.6;
}

/* Statistics Grid */
.vibe-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 60px 24px;
}

.vibe-stat-card {
    @extend .vibe-card;
    padding: 32px;
    text-align: center;
}

.vibe-stat-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--vibe-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.vibe-stat-label {
    color: var(--vibe-text-tertiary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Components */
.vibe-profile-header {
    @extend .vibe-card;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.vibe-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--vibe-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.vibe-profile-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--vibe-text-primary);
}

.vibe-profile-title {
    color: var(--vibe-text-secondary);
    margin-bottom: 24px;
}

/* Navigation Components */
.vibe-nav-dropdown {
    position: relative;
}

.vibe-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(29, 29, 31, 0.98);
    backdrop-filter: var(--vibe-blur-light);
    border: 1px solid var(--vibe-border-primary);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--vibe-shadow-large);
}

.vibe-nav-dropdown:hover .vibe-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.vibe-nav-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--vibe-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.vibe-nav-dropdown-item:hover {
    background: var(--vibe-interactive-hover);
    color: var(--vibe-text-primary);
}

/* === THEME VARIATIONS === */

/* Dark Theme (Default) */
.vibe-theme-dark {
    --vibe-bg-primary: #000000;
    --vibe-bg-secondary: #1D1D1F;
    --vibe-text-primary: #F5F5F7;
    --vibe-text-secondary: rgba(245, 245, 247, 0.8);
}

/* Light Theme */
.vibe-theme-light {
    --vibe-bg-primary: #FFFFFF;
    --vibe-bg-secondary: #F2F2F7;
    --vibe-text-primary: #1D1D1F;
    --vibe-text-secondary: rgba(29, 29, 31, 0.8);
    --vibe-border-primary: rgba(0, 0, 0, 0.1);
    --vibe-bg-elevated: rgba(0, 0, 0, 0.05);
}

/* High Contrast Theme */
.vibe-theme-high-contrast {
    --vibe-blue: #0000FF;
    --vibe-red: #FF0000;
    --vibe-green: #008000;
    --vibe-text-primary: #FFFFFF;
    --vibe-bg-primary: #000000;
    --vibe-border-primary: #FFFFFF;
}

/* === RESPONSIVE BRAND SYSTEM === */

@media (max-width: 768px) {
    .vibe-hero {
        padding: 80px 16px 60px;
    }
    
    .vibe-feature-grid,
    .vibe-stats-grid {
        grid-template-columns: 1fr;
        padding: 60px 16px;
    }
    
    .vibe-feature-card,
    .vibe-stat-card {
        padding: 24px;
    }
    
    .vibe-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .vibe-profile-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .vibe-hero {
        padding: 60px 12px 40px;
    }
    
    .vibe-feature-grid,
    .vibe-stats-grid {
        padding: 40px 12px;
    }
    
    .vibe-feature-card,
    .vibe-stat-card {
        padding: 20px;
    }
    
    .vibe-feature-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .vibe-stat-number {
        font-size: 32px;
    }
}

/* === BRAND UTILITIES === */

/* Color Utilities */
.vibe-text-blue { color: var(--vibe-blue); }
.vibe-text-purple { color: var(--vibe-purple); }
.vibe-text-teal { color: var(--vibe-teal); }
.vibe-text-green { color: var(--vibe-green); }
.vibe-text-orange { color: var(--vibe-orange); }
.vibe-text-red { color: var(--vibe-red); }

.vibe-bg-blue { background: var(--vibe-blue); }
.vibe-bg-purple { background: var(--vibe-purple); }
.vibe-bg-teal { background: var(--vibe-teal); }
.vibe-bg-green { background: var(--vibe-green); }
.vibe-bg-orange { background: var(--vibe-orange); }
.vibe-bg-red { background: var(--vibe-red); }

/* Gradient Utilities */
.vibe-gradient-text {
    background: var(--vibe-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vibe-gradient-border-blue {
    border: 2px solid;
    border-image: var(--vibe-gradient-primary) 1;
}

/* Animation Utilities */
.vibe-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--vibe-shadow-medium);
}

.vibe-hover-glow:hover {
    box-shadow: var(--vibe-shadow-glow);
}

.vibe-hover-scale:hover {
    transform: scale(1.05);
}

/* Brand Consistency Enforcement */
.vibe-brand-enforced * {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif !important;
}

.vibe-brand-enforced button,
.vibe-brand-enforced .btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
}

.vibe-brand-enforced input,
.vibe-brand-enforced textarea,
.vibe-brand-enforced select {
    border-radius: 12px !important;
    border: 1px solid var(--vibe-border-primary) !important;
    background: var(--vibe-bg-elevated) !important;
}

/* Print Styles */
@media print {
    .vibe-nav,
    .vibe-hero,
    .vibe-animated-bg {
        background: none !important;
        box-shadow: none !important;
    }
    
    .vibe-card {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}