/**
 * Maaş Hesaplama Aracı - CSS
 * Version: 4.0.0
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset ve temel stiller */
.mh-calculator-wrapper {
    margin: 20px auto;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.mh-calculator-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.mh-calculator-wrapper * {
    box-sizing: border-box;
}

/* Container */
.mh-calculator-wrapper .mh-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Ana başlık */
.mh-calculator-wrapper .mh-main-title {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    padding-bottom: 20px;
}

.mh-calculator-wrapper .mh-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    border-radius: 2px;
}

.mh-calculator-wrapper .mh-main-title i {
    margin-right: 10px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* İçerik alanı */
.mh-calculator-wrapper .mh-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Bölümler */
.mh-calculator-wrapper .mh-section {
    width: 100%;
}

/* Kartlar */
.mh-calculator-wrapper .mh-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 0;
}

.mh-calculator-wrapper .mh-card-header {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.5px;
}

.mh-calculator-wrapper .mh-bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.mh-calculator-wrapper .mh-bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.mh-calculator-wrapper .mh-bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.mh-calculator-wrapper .mh-card-body {
    padding: 30px;
}

/* Form elemanları */
.mh-calculator-wrapper .mh-form-group {
    margin-bottom: 25px;
}

.mh-calculator-wrapper .mh-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Input grupları */
.mh-calculator-wrapper .mh-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.mh-calculator-wrapper .mh-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #e9ecef;
    border: 2px solid #dee2e6;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.mh-calculator-wrapper .mh-input,
.mh-calculator-wrapper .mh-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.mh-calculator-wrapper .mh-input-group .mh-input {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.mh-calculator-wrapper .mh-input:focus,
.mh-calculator-wrapper .mh-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Buton */
.mh-calculator-wrapper .mh-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.mh-calculator-wrapper .mh-btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.mh-calculator-wrapper .mh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.3);
}

/* Tablo */
.mh-calculator-wrapper .mh-table-wrapper {
    overflow-x: auto;
}

.mh-calculator-wrapper .mh-table {
    width: 100%;
    border-collapse: collapse;
}

.mh-calculator-wrapper .mh-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.mh-calculator-wrapper .mh-table td:last-child {
    font-weight: 600;
    color: #2c3e50;
}

.mh-calculator-wrapper .mh-text-right {
    text-align: right;
}

/* Form satırları */
.mh-calculator-wrapper .mh-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mh-calculator-wrapper .mh-form-col {
    flex: 1;
}

/* Durum bölümü */
.mh-calculator-wrapper .mh-status-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.mh-calculator-wrapper .mh-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mh-calculator-wrapper .mh-status-label {
    color: #6c757d;
    font-weight: 500;
}

/* Rozetler */
.mh-calculator-wrapper .mh-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mh-calculator-wrapper .mh-badge-primary {
    background: #0d6efd;
    color: white;
}

.mh-calculator-wrapper .mh-badge-info {
    background: #17a2b8;
    color: white;
}

/* Sonuç kartları */
.mh-calculator-wrapper .mh-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mh-calculator-wrapper .mh-result-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.mh-calculator-wrapper .mh-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.mh-calculator-wrapper .mh-result-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mh-calculator-wrapper .mh-result-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.mh-calculator-wrapper .mh-text-success {
    color: #28a745;
}

.mh-calculator-wrapper .mh-text-primary {
    color: #0d6efd;
}

/* Animasyonlar */
.mh-calculator-wrapper .mh-fade-in {
    animation: mhFadeIn 0.5s ease-out;
}

@keyframes mhFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .mh-calculator-wrapper {
        padding: 20px;
        margin: 10px;
    }
    
    .mh-calculator-wrapper .mh-main-title {
        font-size: 1.5rem;
    }
    
    .mh-calculator-wrapper .mh-card-body {
        padding: 20px;
    }
    
    .mh-calculator-wrapper .mh-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .mh-calculator-wrapper .mh-input,
    .mh-calculator-wrapper .mh-select {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .mh-calculator-wrapper .mh-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .mh-calculator-wrapper .mh-result-value {
        font-size: 1.5rem;
    }
    
    .mh-calculator-wrapper .mh-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .mh-calculator-wrapper {
        padding: 15px;
        margin: 5px;
    }
    
    .mh-calculator-wrapper .mh-results-grid {
        grid-template-columns: 1fr;
    }
}
