/* Font Awesome CDN */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Ana Container */
.ideal-kilo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Grid Layout */
.ideal-kilo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .ideal-kilo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Form Bölümü */
.ideal-kilo-form-section {
    height: 100%;
}

.ideal-kilo-form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.ideal-kilo-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.ideal-kilo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Grupları */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

.form-helper {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Toggle Button Group */
.toggle-button-group {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.toggle-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: none;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
}

.toggle-button:hover {
    background: #f8f9fa;
}

.toggle-button.active {
    background: #ffffff;
    color: #1976d2;
    border-color: #e0e0e0;
}

.toggle-button i {
    font-size: 1rem;
}

/* Input with Buttons */
.input-with-buttons {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.2s ease;
    height: 44px;
}

.form-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
}

/* Input Buttons */
.input-buttons {
    position: absolute;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.input-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: color 0.2s ease;
}

.input-btn:hover {
    color: #1976d2;
}

.input-btn svg {
    width: 16px;
    height: 16px;
}

/* Error Alert */
.error-alert {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Calculate Button */
.calculate-btn {
    background: #1976d2;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 44px;
    width: 100%;
}

.calculate-btn:hover {
    background: #1565c0;
}

.calculate-btn:active {
    transform: translateY(1px);
}

/* Results Section */
.ideal-kilo-results-section {
    display: flex;
    flex-direction: column;
}

.results-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Main Result Card */
.main-result-card {
    background: linear-gradient(to right, #1A1A1A, #2C2C2C);
    color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.result-content {
    position: relative;
    z-index: 2;
}

.result-label {
    font-size: 0.875rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.result-value-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    min-height: 30px;
    padding-right: 120px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    flex: 1;
    align-self: center;
}

.result-unit {
    font-size: 1rem;
    color: #999999;
    margin-left: 0.25rem;
    font-weight: 500;
}

.target-diff {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
}

.target-icon {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.target-icon.up {
    transform: rotate(180deg);
}

/* BMI Card */
.bmi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bmi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.bmi-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

.bmi-tooltip {
    color: #6c757d;
    cursor: pointer;
}

.bmi-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bmi-value-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bmi-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1;
    margin-right: 0.5rem;
}

.bmi-status {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-text {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.status-info {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 0.25rem;
    cursor: pointer;
}

/* BMI Progress */
.bmi-progress {
    width: 100%;
}

.progress-bars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.5rem;
    max-width: 85%;
}

.progress-bar {
    flex: 1;
    height: 20px;
    border-radius: 2px;
    background: #f5f5f5;
}

.progress-bar.active {
    background: #66BB6A;
}

.progress-bar.underweight {
    background: #FFA726;
}

.progress-bar.overweight {
    background: #FFA726;
}

.progress-bar.obese {
    background: #EF5350;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 85%;
    padding: 0 0.125rem;
}

.progress-labels span {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Formulas Stack */
.formulas-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.formula-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.formula-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.formula-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
}

.formula-name {
    font-size: 0.875rem;
    color: #6c757d;
}

.formula-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-dots {
    display: flex;
    align-items: center;
    height: 24px;
    gap: 4px;
}

.rating-dot {
    width: 12px;
    height: 2px;
    background: #e0e0e0;
    transition: background-color 0.3s ease;
}

.rating-dot.active {
    background: #ff6b00;
}

.formula-tooltip {
    color: #6c757d;
    cursor: pointer;
    padding: 0.125rem;
}

/* CountUp Animasyonları */
.countup-value {
    display: inline-block;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .ideal-kilo-container {
        padding: 1rem 0.5rem;
    }
    
    .ideal-kilo-form-card {
        padding: 1.5rem;
    }
    
    .main-result-card {
        padding: 1rem 1.5rem;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .bmi-value {
        font-size: 2rem;
    }
    
    .formula-card {
        padding: 1rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    line-height: 1.4;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Smooth Transitions */
* {
    transition: all 0.2s ease;
}

/* Focus States */
.form-input:focus,
.toggle-button:focus,
.calculate-btn:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Disabled States */
.form-input:disabled,
.toggle-button:disabled,
.calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success States */
.success {
    border-color: #66BB6A !important;
}

/* Error States */
.error {
    border-color: #EF5350 !important;
} 