/* BMI Calculator Styles */

/* Hero Section */
.bmi-hero {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 25%, #68d391 50%, #4fd1c7 75%, #38b2ac 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.bmi-hero::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="bmi-pattern" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="2" fill="rgba(255,255,255,0.08)"/><path d="M 12.5 5 L 12.5 20 M 5 12.5 L 20 12.5" stroke="rgba(255,255,255,0.06)" stroke-width="1"/><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="20" cy="5" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="5" cy="20" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23bmi-pattern)"/></svg>');
    opacity: 0.6;
}

.bmi-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
}

.bmi-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.bmi-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bmi-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.6;
}

.bmi-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.bmi-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.bmi-stat-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

/* BMI Calculator Section */
.bmi-calculator {
    padding: 80px 0;
    background: #f8fafc;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 60px;
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.card-header h2 i {
    color: #48bb78;
}

.card-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Input Section */
.input-section {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.unit-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
}

.unit-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.unit-btn.active {
    background: white;
    color: #48bb78;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unit-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

.input-form {
    display: none;
}

.input-form.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.input-group input::placeholder {
    color: #a0aec0;
}

.input-unit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    pointer-events: none;
}

.height-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.height-inputs .input-group {
    margin-bottom: 0;
}

.additional-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.additional-info .input-group {
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.calculate-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
}

.clear-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.clear-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    display: none;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.results-section.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.bmi-result {
    text-align: center;
    margin-bottom: 30px;
}

.bmi-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.bmi-number {
    color: #1a202c;
}

.bmi-category {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bmi-category.underweight {
    background: #bee3f8;
    color: #2c5282;
}

.bmi-category.normal {
    background: #c6f6d5;
    color: #276749;
}

.bmi-category.overweight {
    background: #fbd38d;
    color: #b7791f;
}

.bmi-category.obese {
    background: #fed7d7;
    color: #c53030;
}

.bmi-interpretation {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.bmi-interpretation h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bmi-interpretation p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.health-recommendations {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.health-recommendations h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.health-recommendations ul {
    list-style: none;
    padding: 0;
}

.health-recommendations li {
    padding: 8px 0;
    color: #4a5568;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

.health-recommendations li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
    font-size: 1.2rem;
}

/* BMI Information */
.bmi-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #48bb78;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: #48bb78;
}

.info-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 8px 0;
    color: #4a5568;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
    border-bottom: 1px solid #f7fafc;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

.bmi-categories h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.category-item.underweight {
    background: #bee3f8;
    color: #2c5282;
}

.category-item.normal {
    background: #c6f6d5;
    color: #276749;
}

.category-item.overweight {
    background: #fbd38d;
    color: #b7791f;
}

.category-item.obese {
    background: #fed7d7;
    color: #c53030;
}

.category-range {
    font-weight: 600;
}

.category-label {
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    border-color: #48bb78;
    color: #48bb78;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.15);
}

/* Related Tools */
.related-tools {
    padding: 80px 0;
    background: white;
}

.related-tools .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.related-tools .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.related-tools .section-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-tools .tool-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-tools .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #48bb78;
}

.related-tools .tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.related-tools .tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.related-tools .tool-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.related-tools .tool-link {
    color: #48bb78;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.related-tools .tool-link:hover {
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bmi-hero {
        padding: 100px 0 60px;
    }
    
    .bmi-hero-title {
        font-size: 2.5rem;
    }
    
    .bmi-hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .calculator-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-card {
        padding: 30px 20px;
    }
    
    .bmi-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .bmi-value {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .bmi-hero-title {
        font-size: 2rem;
    }
    
    .bmi-hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .input-section {
        padding: 20px 15px;
    }
    
    .info-card {
        padding: 20px 15px;
    }
    
    .unit-selector {
        flex-direction: column;
    }
    
    .height-inputs {
        grid-template-columns: 1fr;
    }
    
    .bmi-value {
        font-size: 2rem;
    }
    
    .category-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #48bb78;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}
