/* HealthiQ Community Theme - Bootstrap 5.3.2 Custom Styles */

:root {
    /* Primary Brand Colors */
    --hiq-primary: #0066cc;
    --hiq-primary-dark: #004d99;
    --hiq-primary-light: #3385d6;
    --hiq-secondary: #28a745;
    --hiq-accent: #17a2b8;
    
    /* Extended Color Palette */
    --hiq-success: #28a745;
    --hiq-warning: #ffc107;
    --hiq-danger: #dc3545;
    --hiq-info: #17a2b8;
    
    /* Neutral Colors */
    --hiq-gray-50: #f8f9fa;
    --hiq-gray-100: #f1f3f4;
    --hiq-gray-200: #e9ecef;
    --hiq-gray-300: #dee2e6;
    --hiq-gray-500: #6c757d;
    --hiq-gray-700: #495057;
    --hiq-gray-900: #212529;
    
    /* Typography */
    --hiq-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hiq-font-size-base: 1rem;
    --hiq-line-height-base: 1.6;
    
    /* Spacing */
    --hiq-border-radius: 12px;
    --hiq-border-radius-sm: 8px;
    --hiq-border-radius-lg: 16px;
    
    /* Shadows */
    --hiq-shadow-sm: 0 2px 4px rgba(0,0,0,.08);
    --hiq-shadow: 0 4px 12px rgba(0,0,0,.1);
    --hiq-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* Base Typography */
body {
    font-family: var(--hiq-font-family);
    line-height: var(--hiq-line-height-base);
    color: var(--hiq-gray-700);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hiq-gray-900);
    font-weight: 600;
}

/* Bootstrap Component Overrides */
.btn {
    border-radius: var(--hiq-border-radius-sm);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--hiq-primary);
    border-color: var(--hiq-primary);
}

.btn-primary:hover {
    background-color: var(--hiq-primary-dark);
    border-color: var(--hiq-primary-dark);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--hiq-secondary);
    border-color: var(--hiq-secondary);
}

.card {
    border-radius: var(--hiq-border-radius);
    border: 1px solid var(--hiq-gray-200);
    box-shadow: var(--hiq-shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--hiq-shadow);
    transform: translateY(-2px);
}

/* Navigation Styles */
.navbar {
    box-shadow: var(--hiq-shadow-sm);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--hiq-primary) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--hiq-primary) !important;
}

/* Custom Components */
.hero-section {
    background: linear-gradient(135deg, var(--hiq-primary) 0%, var(--hiq-primary-light) 100%);
    color: white;
    padding: 6rem 0;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--hiq-border-radius-lg);
    background: white;
    height: 100%;
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    background: var(--hiq-gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--hiq-primary);
}

.stats-section {
    background: var(--hiq-gray-50);
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--hiq-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--hiq-gray-500);
    font-size: 1.1rem;
}

/* Community Features */
.community-card {
    border-radius: var(--hiq-border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hiq-shadow-lg);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hiq-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.discussion-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--hiq-gray-200);
    transition: background-color 0.2s ease;
}

.discussion-item:hover {
    background-color: var(--hiq-gray-50);
}

.discussion-item:last-child {
    border-bottom: none;
}

/* Resource Cards */
.resource-card {
    border-left: 4px solid var(--hiq-primary);
    padding: 1.5rem;
    background: white;
    border-radius: var(--hiq-border-radius-sm);
    margin-bottom: 1rem;
}

.resource-card h5 {
    color: var(--hiq-primary);
    margin-bottom: 0.5rem;
}

/* Expert Profile Cards */
.expert-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--hiq-border-radius);
    box-shadow: var(--hiq-shadow-sm);
    transition: all 0.3s ease;
}

.expert-card:hover {
    box-shadow: var(--hiq-shadow);
    transform: translateY(-2px);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--hiq-primary), var(--hiq-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--hiq-gray-900);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--hiq-gray-300);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--hiq-primary) !important;
}

.bg-primary-custom {
    background-color: var(--hiq-primary) !important;
}

.border-primary-custom {
    border-color: var(--hiq-primary) !important;
}

.rounded-custom {
    border-radius: var(--hiq-border-radius) !important;
}

.shadow-custom {
    box-shadow: var(--hiq-shadow) !important;
}

.shadow-lg-custom {
    box-shadow: var(--hiq-shadow-lg) !important;
}