/* BMI Calculator Custom CSS */

/* ===== General Styles ===== */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-color: #64748b;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* ===== Header Styles ===== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand .logo {
    font-size: 2rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23e2e8f0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

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

.hero-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-item i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

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

.hero-image img {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* ===== Ad Spaces ===== */
.ad-space {
    background-color: var(--light-color);
    border-bottom: 1px solid #e2e8f0;
}

.ad-placeholder {
    display: inline-block;
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* ===== Main Content ===== */
.main-content {
    background-color: white;
}

/* ===== Card Styles ===== */
.content-card,
.calculator-card,
.info-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.content-card:hover,
.calculator-card:hover,
.info-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.calculator-card {
    border-left: 4px solid var(--primary-color);
}

.info-card {
    border-left: 4px solid var(--secondary-color);
}

/* ===== BMI Form Styles ===== */
.bmi-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.form-control-lg {
    font-size: 1.125rem;
}

/* ===== Button Styles ===== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* ===== Result Section ===== */
.result-section {
    margin-top: 3rem;
}

.result-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.result-header h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-details {
    margin-top: 1.5rem;
}

.result-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-style: italic;
    margin-top: 1rem;
}

/* ===== BMI Categories ===== */
.bmi-categories {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid;
    transition: var(--transition);
}

.category-item:nth-child(1) {
    border-left-color: var(--info-color);
}

.category-item:nth-child(2) {
    border-left-color: var(--success-color);
}

.category-item:nth-child(3) {
    border-left-color: var(--warning-color);
}

.category-item:nth-child(4) {
    border-left-color: var(--danger-color);
}

.category-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.category-label {
    font-weight: 600;
}

.category-range {
    color: var(--gray-color);
    font-weight: 500;
}

/* ===== Articles Section ===== */
.articles-section {
    background-color: var(--light-color);
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .card-body {
    padding: 1.5rem;
}

.article-card .card-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.article-card .card-text {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

/* ===== About Page Styles ===== */
.about-hero-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--light-color);
    height: 100%;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.value-item {
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--light-color);
    transition: var(--transition);
}

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

.value-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--light-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.team-member i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* ===== Contact Page Styles ===== */
.contact-form {
    max-width: 700px;
}

.contact-info {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    margin-right: 1rem;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-option {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    height: 100%;
    transition: var(--transition);
}

.contact-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.social-link.facebook {
    background-color: #1877f2;
}

.social-link.twitter {
    background-color: #1da1f2;
}

.social-link.instagram {
    background-color: #e4405f;
}

.social-link.linkedin {
    background-color: #0077b5;
}

/* ===== FAQ Page Styles ===== */
.accordion-button {
    font-weight: 600;
    background-color: var(--light-color);
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-button:focus {
    box-shadow: none;
}

/* ===== Privacy & Terms Page Styles ===== */
.toc-section {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.toc-section ul {
    columns: 2;
    column-gap: 2rem;
}

@media (max-width: 768px) {
    .toc-section ul {
        columns: 1;
    }
}

.toc-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.toc-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.policy-section,
.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.policy-section:last-child,
.terms-section:last-child {
    border-bottom: none;
}

.policy-section h3,
.terms-section h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.policy-section h3 i,
.terms-section h3 i {
    margin-right: 0.75rem;
}

.policy-section h4,
.terms-section h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section ul,
.terms-section ul {
    margin-bottom: 1.5rem;
}

.policy-section li,
.terms-section li {
    margin-bottom: 0.5rem;
}

.consent-box,
.agreement-box {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.consent-box h4,
.agreement-box h4 {
    color: var(--success-color);
    font-weight: 700;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .content-card,
    .calculator-card,
    .info-card {
        padding: 1.5rem;
    }
    
    .result-header h4 {
        font-size: 1.5rem;
    }
    
    .feature-item {
        margin-bottom: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .contact-option {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .content-card,
    .calculator-card,
    .info-card {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .result-header h4 {
        font-size: 1.25rem;
    }
}

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

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

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

.pulse {
    animation: pulse 2s infinite;
}

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .ad-space,
    .footer,
    .sidebar-ad,
    .social-links {
        display: none !important;
    }
    
    .content-card,
    .calculator-card,
    .info-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}