/* 🍎 Apple Liquid Glass Design System */

:root {
    /* Liquid Glass Colors - Vibrant & Colorful */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Colorful Gradients - Blue Theme */
    --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-info: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --gradient-warning: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-danger: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    --gradient-light: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    
    /* Liquid Background - Light Blue/White */
    --liquid-bg: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.08) 0%,
        rgba(59, 130, 246, 0.05) 25%,
        rgba(239, 246, 255, 0.1) 50%,
        rgba(191, 219, 254, 0.06) 75%,
        rgba(255, 255, 255, 0.1) 100%);
    
    /* Shadows */
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 32px rgba(31, 38, 135, 0.15);
    --shadow-strong: 0 12px 48px rgba(31, 38, 135, 0.2);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    
    /* Blur */
    --blur-sm: 10px;
    --blur-md: 20px;
    --blur-lg: 40px;
}

/* Body with Liquid Background - Light Blue/White */
body {
    background: linear-gradient(135deg, 
        #eff6ff 0%, 
        #dbeafe 25%, 
        #ffffff 50%, 
        #f0f9ff 75%, 
        #e0f2fe 100%);
    background-size: 400% 400%;
    animation: liquidGradient 20s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--liquid-bg);
    backdrop-filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

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

/* Glass Morphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-md)) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Glass Button */
.glass-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-sm)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(180%);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.85);
}

/* Gradient Button */
.gradient-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gradient-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.gradient-btn:hover::before {
    left: 100%;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Glass Input */
.glass-input {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #333;
}

.glass-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Bottom Navigation Bar (Fixed) */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    max-width: 90vw;
}

.bottom-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
}

.bottom-nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

/* Slide-out Menu from Right */
.slide-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: -8px 0 32px rgba(31, 38, 135, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow-y: auto;
    padding: 24px;
}

.slide-menu.open {
    right: 0;
}

.slide-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1999;
}

.slide-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Badge */
.glass-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

/* Avatar */
.glass-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
}

/* Debug Code Display */
.debug-code {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 640px) {
    .slide-menu {
        width: 100%;
        right: -100%;
    }
    
    .bottom-nav {
        bottom: 10px;
        padding: 8px 16px;
    }
    
    .bottom-nav-item {
        width: 48px;
        height: 48px;
    }
}

/* Content Wrapper (to avoid bottom nav overlap) */
.content-wrapper {
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
}

/* Colorful Icons - Green Theme */
.icon-primary { color: #10b981; }
.icon-success { color: #059669; }
.icon-info { color: #3b82f6; }
.icon-warning { color: #f59e0b; }
.icon-danger { color: #ef4444; }

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

/* Glass Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   🎨 TYPOGRAPHY SYSTEM
   Global consistent heading and text styles
   ======================================== */

/* Page Headers - Hero Style */
.page-header {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.6;
}

/* Heading Hierarchy */
h1, .h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1f2937;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #374151;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #4b5563;
    margin-bottom: 1rem;
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 0.875rem;
}

h5, .h5 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Card Headers */
.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(209, 250, 229, 0.5);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
}

/* Text Utilities */
.text-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #4b5563;
    font-weight: 400;
}

.text-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
}

.text-tiny {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #9ca3af;
}

/* Text Colors */
.text-primary {
    color: #10b981;
}

.text-secondary {
    color: #6b7280;
}

.text-muted {
    color: #9ca3af;
}

.text-success {
    color: #059669;
}

.text-info {
    color: #3b82f6;
}

.text-warning {
    color: #f59e0b;
}

.text-danger {
    color: #ef4444;
}

/* Spacing System */
.mb-section {
    margin-bottom: 3rem;
}

.mb-card {
    margin-bottom: 1.5rem;
}

.mb-content {
    margin-bottom: 1rem;
}

.mt-section {
    margin-top: 3rem;
}

.mt-card {
    margin-top: 1.5rem;
}

.mt-content {
    margin-top: 1rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* List Styles */
.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(209, 250, 229, 0.3);
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.styled-list li:last-child {
    border-bottom: none;
}

/* Emphasis & Highlights */
.highlight {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.emphasis {
    font-weight: 600;
    color: #10b981;
}

/* Dividers */
.divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(209, 250, 229, 0.5) 50%, 
        transparent 100%);
    margin: 2rem 0;
}

.divider-thick {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(16, 185, 129, 0.3) 50%, 
        transparent 100%);
    margin: 3rem 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.375rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .text-lead {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Primary Button with Blue Gradient */
.glass-btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.glass-btn-primary:hover::before {
    left: 100%;
}

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

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

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

.animate-slide-in {
    animation: slide-in 0.4s ease-out;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.15);
}
