/**
 * Hesaplama Araçları Plugin - Frontend Styles
 * Version: 1.0.0
 */

/* Breadcrumb Navigation */
.hesaplama-breadcrumb {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hesaplama-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hesaplama-breadcrumb li {
    display: inline;
    color: #666;
}

.hesaplama-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s;
}

.hesaplama-breadcrumb a:hover {
    color: #005177;
    text-decoration: underline;
}

/* İlgili Hesaplayıcılar */
.ilgili-hesaplayicilar {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ilgili-hesaplayicilar h3 {
    font-size: 24px;
    color: #23282d;
    margin-bottom: 25px;
    font-weight: 600;
}

.hesaplama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.hesaplama-card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hesaplama-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hesaplama-card a {
    text-decoration: none;
    color: inherit;
}

.hesaplama-card h4 {
    color: #0073aa;
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.hesaplama-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* FAQ Bölümü */
.hesaplama-faq {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.hesaplama-faq h3 {
    font-size: 24px;
    color: #23282d;
    margin-bottom: 20px;
    font-weight: 600;
}

.faq-item {
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}

.faq-item h4 {
    color: #23282d;
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hesaplama-grid {
        grid-template-columns: 1fr;
    }

    .hesaplama-breadcrumb ol {
        font-size: 12px;
    }

    .ilgili-hesaplayicilar,
    .hesaplama-faq {
        padding: 20px;
    }
}

/* Genel wrapper */
.hesaplama-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Intro bölümü */
.hesaplama-intro {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #0073aa;
}

.hesaplama-intro h2 {
    margin-top: 0;
    color: #23282d;
    font-size: 28px;
    font-weight: 600;
}

.hesaplama-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

/* Form container */
.hesaplama-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Form grupları */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #23282d;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #0073aa;
    color: #fff;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #dcdcde;
}

.btn-hesapla {
    min-width: 150px;
}

/* Sonuç container */
.hesaplama-sonuc {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 8px;
    color: #fff;
    margin-top: 30px;
    animation: slideIn 0.5s ease-out;
}

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

.hesaplama-sonuc h3 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sonuc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sonuc-item:last-of-type {
    border-bottom: none;
}

.sonuc-label {
    font-size: 16px;
    font-weight: 500;
}

.sonuc-value {
    font-size: 20px;
    font-weight: 700;
}

/* Ödeme planı */
.odeme-plani {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    color: #23282d;
}

.odeme-plani h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
}

/* Tablo */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead th {
    background: #f0f0f1;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
}

.table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Info bölümü */
.hesaplama-info {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    line-height: 1.8;
}

.hesaplama-info h3 {
    color: #0073aa;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.hesaplama-info h3:first-child {
    margin-top: 0;
}

.hesaplama-info ul {
    padding-left: 20px;
}

.hesaplama-info li {
    margin-bottom: 10px;
}

.hesaplama-info p {
    margin-bottom: 15px;
    color: #555;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-info {
    background: #e7f3ff;
    border-left: 4px solid #0073aa;
    color: #004085;
}

/* Responsive */
@media (max-width: 768px) {
    .hesaplama-wrapper {
        padding: 0 15px;
    }

    .hesaplama-intro,
    .hesaplama-form-container,
    .hesaplama-sonuc,
    .hesaplama-info {
        padding: 20px;
    }

    .hesaplama-intro h2 {
        font-size: 24px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
        margin-left: 0 !important;
    }

    .sonuc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .sonuc-value {
        font-size: 24px;
    }

    .table {
        font-size: 12px;
    }

    .table thead th,
    .table tbody td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .table {
        font-size: 11px;
    }

    .table thead th,
    .table tbody td {
        padding: 6px 4px;
    }
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
