/* BMR Hesaplayıcısı - Health & Wellness Green Theme */

/* Base Styles */
#bmr-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    font-family: inherit;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

/* Header */
.bmr-header {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    margin: -30px -30px 30px -30px;
    border-radius: 10px 10px 0 0;
}

.bmr-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.bmr-header p {
    margin: 0;
    font-size: 1rem;
}

/* Form Sections */
.form-section {
    background: #f8fff8;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.section-title {
    color: #28a745;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #20c997;
}

/* Gender Selection */
.gender-selection {
    margin-bottom: 25px;
}

.gender-selection .form-label {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.gender-btn {
    font-weight: 600;
    padding: 12px 30px;
    min-width: 120px;
    border-width: 2px;
}

.gender-btn.active {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Form Controls */
.form-control {
    padding: 12px 15px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
}

.form-control:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
    transform: translateY(-1px) !important;
}

.form-control.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-text.text-muted {
    font-size: 0.85rem !important;
    color: #6c757d !important;
    margin-top: 5px !important;
}

/* Activity Level Selection */
.activity-group {
    background: white;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.activity-group:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.activity-group label {
    font-weight: 600;
    color: #28a745;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.activity-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

.form-check-input {
    margin-top: 0.25rem !important;
    margin-right: 8px !important;
    transform: scale(1.2);
}

.form-check-input:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25) !important;
}

/* Green Button */
.btn-green {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    color: white !important;
    padding: 12px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.btn-green:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3) !important;
}

.btn-green:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25) !important;
    color: white !important;
}

/* Result Section - Hidden by default */
.result-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: #f8fff8;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #c3e6cb;
    height: 0 !important;
    overflow: hidden !important;
}

.result-section.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    animation: fadeInUp 0.5s ease;
}

#bmr-result:not(.show) {
    display: none !important;
    visibility: hidden !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BMR Display */
.result-header {
    margin-bottom: 25px;
}

.bmr-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: #28a745;
    margin-bottom: 8px;
}

.bmr-unit {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.bmr-label {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #28a745;
    color: white;
}

/* Result Details */
.result-details {
    margin-bottom: 25px;
}

.detail-item {
    background: white;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.detail-item .detail-label {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.detail-item .detail-value {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.detail-item .detail-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Activity Breakdown */
.activity-breakdown {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.activity-breakdown h6 {
    color: #28a745;
    font-weight: 700;
    margin-bottom: 15px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #c3e6cb;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-level {
    font-weight: 600;
    color: #2c3e50;
}

.activity-calories {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

.current-activity {
    background: #28a745;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
}

/* BMR Information Table */
.bmr-info h6 {
    color: #28a745;
    font-weight: 700;
}

.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table th {
    background: #28a745 !important;
    color: white !important;
    font-weight: 600;
    border: none !important;
    padding: 12px 8px !important;
    font-size: 0.9rem;
}

.table td {
    padding: 10px 8px !important;
    vertical-align: middle !important;
    border-color: #c3e6cb !important;
    font-size: 0.9rem;
}

/* Health Warning */
.health-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.health-warning small {
    color: #856404;
    line-height: 1.4;
}

/* Tips Box */
.tips-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.tips-box h6 {
    color: #0c5460;
    font-weight: 700;
    margin-bottom: 10px;
}

.tips-box ul {
    margin: 0;
    padding-left: 20px;
}

.tips-box li {
    color: #0c5460;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    #bmr-wrapper {
        margin: 20px;
        padding: 20px;
        border-radius: 8px;
    }
    
    .bmr-header {
        margin: -20px -20px 25px -20px;
        padding: 20px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .bmr-header h3 {
        font-size: 1.5rem;
    }
    
    .bmr-header p {
        font-size: 0.9rem;
    }
    
    .gender-btn {
        padding: 10px 20px;
        min-width: 100px;
        font-size: 0.95rem;
    }
    
    .bmr-display {
        font-size: 2.8rem;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px !important;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .bmr-header h3 {
        font-size: 1.3rem;
    }
    
    .bmr-header p {
        font-size: 0.85rem;
    }
    
    .gender-btn {
        padding: 8px 15px;
        min-width: 90px;
        font-size: 0.9rem;
    }
    
    .bmr-display {
        font-size: 2.5rem;
    }
    
    .form-control {
        padding: 10px 12px !important;
        font-size: 0.95rem !important;
    }
    
    .btn-green {
        padding: 10px 25px !important;
        font-size: 1rem !important;
    }
    
    .detail-item .detail-value {
        font-size: 1.3rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 6px 4px !important;
        font-size: 0.75rem;
    }
}

/* Focus States */
.btn:focus {
    outline: none !important;
}

/* Print Styles */
@media print {
    #bmr-wrapper {
        box-shadow: none;
        border: 1px solid #000;
        margin: 0;
        break-inside: avoid;
    }
    
    .bmr-header {
        background: #f8f9fa !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .btn {
        display: none;
    }
    
    .result-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Loading Animation */
.calculating {
    position: relative;
}

.calculating::after {
    content: "Hesaplanıyor...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    color: #28a745;
} 