/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #C82333;
    --primary-hover: #A21A27;
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --info-color: #17A2B8;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --light-color: #F8F9FA;
    --dark-color: #343A40;
    --background-color: #F9FAFB;
    --text-color: #4A4A4A;
    --border-radius: 10px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

/* Base Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Navigation Styles */
nav {
    background: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    margin-bottom: 0;
}

.navbar {
    position: relative;
    z-index: 1030;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}

nav a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

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

.hero-section .text-primary {
    color: white !important;
}

.hero-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

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

.hero-section .btn-outline-primary {
    color: white;
    border-color: white;
}

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

/* Feature Highlights */
.feature-highlights .feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-highlights .feature-item i {
    font-size: 2rem;
    display: block;
}

/* Gift Preview Card */
.gift-preview-card {
    position: relative;
    z-index: 2;
}

.gift-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background-color: var(--light-color);
    color: var(--primary-hover);
}

.cta-section .btn-outline-primary {
    color: white;
    border-color: white;
}

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

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #E9ECEF;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(200, 35, 51, 0.25);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Alert/Message Styles */
.message, .alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: none;
}

.alert-success, .message.success {
    background-color: #D4EDDA;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger, .message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border-left: 4px solid var(--danger-color);
}

.alert-info, .message.info {
    background-color: #D1ECF1;
    color: #0C5460;
    border-left: 4px solid var(--info-color);
}

.alert-warning, .message.warning {
    background-color: #FFF3CD;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

/* Text Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: #6C757D !important;
}

/* Badge Styles */
.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Chat/GiftmAIster Styles */
.giftmaister {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.user {
    background-color: var(--primary-color);
    color: white;
    text-align: right;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    nav a {
        display: block;
        margin: 0.25rem 0;
    }
}

/* Page-specific Styles */
.page-header {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.page-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Table Styles */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table th {
    background-color: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table td {
    border: none;
    border-bottom: 1px solid #E9ECEF;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid var(--light-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Brochureware Styles */
.brochure-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.brochure-features {
    padding: 4rem 0;
    background: #f8f9fa;
}

.brochure-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* Page Headers */
.page-header {
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Authentication Pages */
.auth-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 2.5rem;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shadow-medium {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.shadow-strong {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) 1;
}

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}
