/**
 * HotelHuddle Custom Styles
 * Bootstrap 5 enhancements and custom components
 */

/* Brand Colors */
:root {
    --brand-primary: #2563eb;
    --brand-secondary: #764ba2;
    --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --brand-dark: #1e40af;
    --brand-light: #3b82f6;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

/* Buttons */
.btn-brand {
    background: var(--brand-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

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

.btn-brand-outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.btn-brand-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-brand-lg {
    padding: 14px 32px;
    font-size: 1.125rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 20px;
}

/* Forms */
.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control-lg {
    padding: 14px 18px;
    font-size: 1.125rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-primary {
    border-left-color: var(--brand-primary);
    background-color: #eff6ff;
    color: #1e40af;
}

.alert-success {
    border-left-color: #10b981;
    background-color: #ecfdf5;
    color: #065f46;
}

.alert-warning {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
    color: #92400e;
}

.alert-danger {
    border-left-color: #ef4444;
    background-color: #fef2f2;
    color: #991b1b;
}

/* Navigation */
.navbar {
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(37, 99, 235, 0.05);
}

.nav-link.active {
    color: var(--brand-primary) !important;
    background: rgba(37, 99, 235, 0.1);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #667eea !important;
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Pricing Cards */
.pricing-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Loading Spinner */
.spinner-brand {
    color: var(--brand-primary);
}

/* Badge */
.badge-brand {
    background: var(--brand-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.bg-brand {
    background: var(--brand-primary) !important;
}

.bg-gradient-brand {
    background: var(--brand-gradient) !important;
}

.rounded-brand {
    border-radius: 12px !important;
}

.shadow-brand {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .btn-brand {
        padding: 10px 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}
