/**
 * Nexzoneo Card - Shared Styles
 * Consistent styling for all user-facing pages
 * 
 * @author Nexzoneo Dev Team
 * @version 1.0.0
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors */
    --primary-color: #0ea5e9;
    --secondary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    
    /* Background Colors */
    --light-bg: #f8f9fa;
    --dark-bg: #0f172a;
    --darker-bg: #000000;
    --card-bg: #1e293b;
    --body-bg-gradient: #000000;
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    
    /* Shadows */
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.4);
    --button-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    --button-shadow-hover: 0 6px 20px rgba(14, 165, 233, 0.4);
    
    /* Border Radius */
    --border-radius-sm: 0.5rem;    /* 8px */
    --border-radius-md: 1rem;      /* 16px */
    --border-radius-lg: 1.25rem;   /* 20px */
    --border-radius-pill: 50px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

/* ========================================
   Base Styles
   ======================================== */
body {
    background: var(--darker-bg);
    min-height: 100vh;
    font-family: var(--font-family);
    color: var(--text-primary);
}

/* ========================================
   Card Styles
   ======================================== */
.card {
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    border: none;
    transition: all 0.3s ease;
}

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

.card-translucent {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    border: none;
    padding: var(--spacing-md);
}

/* Match card header radius to parent card when using rounded-lg */
.card.rounded-lg > .card-header {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-body {
    padding: var(--spacing-md);
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-shadow-hover);
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-pill {
    border-radius: var(--border-radius-pill);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* ========================================
   Form Styles
   ======================================== */
.form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid #dee2e6;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

.input-group-text {
    background: var(--light-bg);
    border-color: #dee2e6;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   Alert Styles
   ======================================== */
.alert {
    border-radius: var(--border-radius-sm);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ========================================
   Badge Styles
   ======================================== */
.badge {
    padding: 0.5rem 1rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-sm);
}

.badge-lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

/* ========================================
   Modal Styles
   ======================================== */
.modal-content {
    border-radius: var(--border-radius-md);
    border: none;
    box-shadow: var(--card-shadow-hover);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    border: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: var(--spacing-md);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
}

/* ========================================
   Info Box Styles
   ======================================== */
.info-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    margin: var(--spacing-md) 0;
}

.info-box h5 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-box p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* ========================================
   Feature Card Styles
   ======================================== */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 1.875rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   Stat Card Styles
   ======================================== */
.stat-card {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.balance {
    background: var(--primary-gradient);
    color: white;
}

.stat-icon.spent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-icon.transactions {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* ========================================
   Virtual Card Styles
   ======================================== */
.virtual-card {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    color: white;
    box-shadow: var(--card-shadow-hover);
    position: relative;
    overflow: hidden;
}

.virtual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    position: relative;
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 0.25rem;
}

.card-number {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

/* ========================================
   Hero Section Styles
   ======================================== */
.hero-section {
    padding: 3.75rem 2.5rem;
    margin-bottom: 2.5rem;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    color: white;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.4);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 1.25rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ========================================
   CTA Button Styles
   ======================================== */
.cta-button {
    padding: 1.125rem 2.8rem !important;
    font-size: 1.3rem !important;
    font-weight: var(--font-weight-bold) !important;
    border-radius: var(--border-radius-pill) !important;
    background: white !important;
    color: var(--primary-color) !important;
    border: none !important;
    box-shadow: var(--button-shadow) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: var(--button-shadow-hover) !important;
    color: var(--secondary-color) !important;
}

/* ========================================
   Section Title Styles
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
}

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

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-md {
    border-radius: var(--border-radius-md) !important;
}

.rounded-sm {
    border-radius: var(--border-radius-sm) !important;
}

.shadow-card {
    box-shadow: var(--card-shadow);
}

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

/* ========================================
   Logo Styles
   ======================================== */
.logo {
    max-width: 200px;
    margin: 20px 0;
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.9375rem 2.1875rem !important;
        font-size: 1.1rem !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: var(--spacing-sm);
    }
}

