/* Bankamatic.com için vadeli hesap faiz hesaplama sayfası stilleri */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
    --primary-color: #2e7d32;
    --secondary-color: #4caf50;
    --background-light: #f5f7f5;
    --text-dark: #333;
    --text-gray: #666;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: #fff;
}

.faiz-hesaplama-container {
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px 0;
    justify-content: flex-start;
}

.converter-content {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 340px); /* Sidebar genişliği (320px) + gap (20px) */
}

.calculator-and-content {
    background: var(--background-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px var(--shadow-light);
}

/* Hesaplama Modülü (Calculator Card) */
.calculator-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

.calculator-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.calculator-header h2 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-field {
    display: flex;
    flex-direction: column;
}

.input-field label {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.input-field input,
.input-field select {
    padding: 12px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 15px;
    color: var(--text-dark);
    background: #fafafa;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-field input:focus,
.input-field select:focus {
    border-color: var(--secondary-color);
    background: #fff;
    outline: none;
}

.input-field select {
    appearance: none;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.calculate-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    text-align: center;
}

.calculate-btn:hover {
    background: linear-gradient(90deg, #388e3c, #45a049);
    transform: translateY(-2px);
}

.result-display {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 500;
}

.result-value {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

/* Popüler Tutar Kartları */
.popular-amounts-section {
    margin: 35px 0;
}

.popular-amounts-section h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.popular-amounts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 12 kutucuk için 4x3 düzen */
    gap: 20px;
    justify-items: center;
}

.amount-card {
    background: linear-gradient(135deg, #ffffff, var(--background-light));
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 12px var(--shadow-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    text-decoration: none;
}

.amount-card:hover {
    background: linear-gradient(135deg, var(--secondary-color), #388e3c);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.amount-card .amount-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.amount-card .amount-label {
    font-size: 14px;
    line-height: 1.4;
}

.amount-card:hover .amount-label, .amount-card:hover .amount-value {
    color: white;
}

.content-section {
    margin-top: 35px;
    text-align: left;
}

.content-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.content-section p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

.content-section ul {
    margin: 12px 0;
    padding-left: 25px;
}

.content-section ul li {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 8px;
}

.content-section h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 700;
}

/* Karşılaştırma ve Faiz Tablosu */
.faiz-tablosu {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 12px var(--shadow-dark);
    background: #fff;
}

.faiz-tablosu table {
    width: 100%;
    border-collapse: collapse;
}

.faiz-tablosu th,
.faiz-tablosu td {
    padding: 12px 15px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #e0e0e0;
}

.faiz-tablosu th {
    background: var(--background-light);
    color: var(--primary-color);
    font-weight: 700;
}

.faiz-tablosu td {
    background: #fff;
    color: var(--text-gray);
}

.faiz-tablosu tr:nth-child(even) td {
    background: #fafafa;
}

/* Banka Kutucukları */
.bank-comparison-section {
    margin: 20px 0;
}

.bank-comparison-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.bank-comparison-section h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bank-card {
    width: 100%;
    min-height: 360px;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    color: var(--text-dark);
    box-shadow: 0 4px 12px var(--shadow-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e7ff;
    max-width: 220px;
}

.bank-rate-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.bank-name {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.bank-campaign {
    margin: 0 0 15px;
    font-size: 12px;
    color: #64748b;
}

.bank-earnings {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: inset 2px 2px 4px #e0e7ff;
}

.earnings-label {
    margin: 0 0 4px;
    font-size: 12px;
    color: #64748b;
}

.earnings-value {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #3b82f6;
}

.bank-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-label {
    margin: 0 0 2px;
    font-size: 10px;
    color: #64748b;
}

.detail-value {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.bank-total {
    background: #3b82f6;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.highlight-note {
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

/* Sidebar */
.sidebar-wrapper {
    flex: 0 0 320px;
    max-width: 320px;
    position: sticky;
    top: 20px;
}

/* Akkordiyon */
.accordion {
    margin: 20px 0;
    background: #e8ece8;
    border-radius: 10px;
    box-shadow: inset 3px 3px 6px #c5c9c5, inset -3px -3px 6px #ffffff;
    overflow: visible;
}

.accordion-header {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e0e4e0;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #d0d4d0;
}

.accordion-header.active {
    background: #d0d4d0;
}

.accordion-header::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 12px 15px;
    font-size: 14px;
    background: var(--background-light);
    border-radius: 0 0 10px 10px;
}

.accordion-content.active {
    display: block;
}

.content-item {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.content-item::before {
    content: '•';
    color: var(--secondary-color);
    margin-right: 10px;
}

.content-item a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.content-item a:hover {
    background: #e0e4e0;
}

/* Responsive Düzenlemeler */
@media (max-width: 960px) {
    .content-wrapper {
        flex-direction: column;
    }

    .converter-content {
        max-width: 100%;
        margin-right: 0;
    }

    .calculator-card {
        padding: 20px;
        max-width: 100%;
    }

    .calculator-form {
        grid-template-columns: 1fr;
    }

    .result-display {
        margin-top: 15px;
    }

    .popular-amounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bank-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .bank-card {
        width: 100%;
        min-height: 360px;
        max-width: 100%;
    }

    .sidebar-wrapper {
        flex: 1;
        width: 100%;
        max-width: 100%;
        position: static;
        top: auto;
    }
}

@media (max-width: 600px) {
    .main-container {
        padding: 0 10px;
    }

    .calculator-header h2 {
        font-size: 22px;
    }

    .input-field label, .input-field input, .input-field select, .calculate-btn {
        font-size: 14px;
    }

    .result-value {
        font-size: clamp(18px, 5vw, 20px);
    }

    .popular-amounts-grid {
        grid-template-columns: 1fr;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .content-section h3 {
        font-size: 18px;
    }

    .content-section p, .content-section ul li {
        font-size: 14px;
    }

    .faiz-tablosu th, .faiz-tablosu td {
        font-size: 14px;
        padding: 10px;
    }

    .accordion-header {
        font-size: 14px;
    }

    .content-item {
        font-size: 13px;
    }

    .bank-card {
        max-width: 100%;
        padding: 10px;
    }

    .bank-earnings {
        padding: 8px;
    }

    .bank-details-row {
        margin-bottom: 8px;
    }

    .bank-total {
        padding: 6px;
    }
}