/**
 * Default Theme CSS
 * Kursimple - Standard Design
 */

/* ========================================
   CSS Variables (Design Tokens)
   ======================================== */
:root {
    /* Primary Colors */
    --primary-color: #215092;
    --primary-dark: #1c4682;
    --primary-light: #269ed9;
    
    /* Secondary Colors */
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    
    /* Status Colors */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* Background Colors */
    --light-bg: #f8fafc;
    --white-bg: #ffffff;
    
    /* Text Colors */
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --light-text: rgba(255, 255, 255, 0.9);
    
    /* Border & Divider */
    --border-color: #e2e8f0;
    --divider-color: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --navbar-gradient: linear-gradient(10deg, var(--primary-color), var(--primary-light));
    --hero-gradient: linear-gradient(10deg, var(--primary-color), var(--primary-light));
    --text-gradient: linear-gradient(10deg, var(--primary-color), var(--primary-light));
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-navbar: 0 2px 20px rgba(33, 80, 146, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--dark-text);
    background-color: var(--white-bg);
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
}

/* ========================================
   Navbar Styling
   ======================================== */
.navbar-custom {
    background: var(--navbar-gradient);
    box-shadow: var(--shadow-navbar);
    padding: var(--spacing-md) 0;
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    color: white !important;
    transition: transform var(--transition-base);
}

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

.nav-link {
    color: var(--light-text) !important;
    font-weight: var(--font-weight-medium);
    margin: 0 var(--spacing-sm);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* ========================================
   Cart Button
   ======================================== */
.btn-cart {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-weight: var(--font-weight-semibold);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.btn-cart:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: var(--hero-gradient);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--dark-text);
    color: var(--light-text);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    margin-top: var(--spacing-3xl);
}

footer a {
    color: var(--light-text);
    text-decoration: none;
    transition: color var(--transition-base);
}

footer a:hover {
    color: white;
}

footer hr {
    border-color: var(--divider-color);
}

/* ========================================
   Flash Messages / Alerts
   ======================================== */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-md);
    animation: slideIn var(--transition-base);
}

/* Special Order Success Message */
.alert-order-success {
    background: linear-gradient(10deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
    animation: slideInDown var(--transition-slow);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.alert-order-success.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.alert-order-success .alert-content {
    display: flex;
    align-items: flex-start;
}

.alert-order-success .alert-icon {
    font-size: 1.5rem;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.alert-order-success .alert-text h4 {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.alert-order-success .alert-text p {
    margin: 0;
    opacity: 0.95;
    line-height: var(--line-height-base);
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.section-title {
    font-weight: var(--font-weight-bold);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
}
