/* Genel Stil */
body {
    background: linear-gradient(to bottom, #0e0c10, #0e0f11, #1b1c1d, #1b1c1d, #1b1c1d, #1b1c1d);
    background-color: #000000;
    color: #cccccc;
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 2px 10px;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
    background-color: #0e0c10;
    box-sizing: border-box;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Web (Desktop) - Center header-top */
@media (min-width: 769px) {
    .header-top {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Mobile - Keep sides aligned */
@media (max-width: 768px) {
    .header-top {
        justify-content: space-between;
    }
}

.header-left,
.header-center,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
    gap: 8px;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
}

#back-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px 8px;
    margin-left: -5px;
    border-radius: 5px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-btn:hover {
    background-color: #2a2a2a;
}

#back-btn svg {
    display: block;
}

#page-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.site-title {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: #ffffff;
    margin: 0;
}

.info-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Ana içerik */
.main-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-area {
    margin-top: 50px;
    padding: 12px 10px;
    padding-top: 75px;
    padding-bottom: 60px;
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 0;
}

/* Input Panel (Sabit) */
.input-panel {
    background-color: rgba(56, 56, 56, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #2a2a2a;
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 580px;
    width: calc(100% - 20px);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.input-group {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.currency-input-wrapper {
    flex: 1.5;
    display: flex;
    position: relative;
    background-color: #2e2f3a;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
}

.currency-input-wrapper input[type="text"] {
    flex: 1;
    padding: 8px;
    background-color: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 14px;
    box-sizing: border-box;
    min-width: 0;
    height: 100%;
}

.currency-input-wrapper input[type="text"]:focus {
    outline: none;
}

.currency-select {
    background-color: #2e2f3a;
    border: none;
    border-left: 1px solid #444;
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 500;
    padding: 0 8px;
    cursor: pointer;
    min-width: 55px;
    height: 100%;
}

.currency-select:focus {
    outline: none;
    background-color: #2e2f3a;
}

.currency-input-wrapper:focus-within {
    border-color: #493afc;
}

.input-group input[type="number"],
.input-group select {
    flex: 1;
    padding: 8px;
    background-color: #2e2f3a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    box-sizing: border-box;
    min-width: 0;
    height: 38px;
}

#vade-select {
    flex: 0.8;
}

#vade-custom {
    flex: 1;
}

.input-group input[type="number"]:focus,
.input-group select:focus {
    outline: none;
    border-color: #493afc;
}

#calculate-btn {
    background-color: #493afc;
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

#calculate-btn:hover {
    background-color: #007bff;
}

#calculate-btn svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

/* Bilgilendirme */
.info-section {
    background-color: #1a1a1a;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #493afc;
    position: relative;
    z-index: 1;
}

/* Desktop - margin-top sıfır */
@media (min-width: 769px) {
    .info-section {
        margin-top: 0;
    }
}

/* Mobile - margin-top var */
@media (max-width: 768px) {
    .info-section {
        margin-top: 55px;
    }
}

.info-section h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #ffffff;
}

.info-section p {
    margin: 0;
    font-size: 13px;
    color: #b0b0b0;
    line-height: 1.4;
}

/* Banka Kartları Container */
#bank-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* Banka Kartı */
.bank-card {
    /*background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);*/
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 12px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bank-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 58, 252, 0.2);
}

.bank-card.best-offer {
    border: 2px solid #493afc;
    box-shadow: 0 0 16px rgba(73, 58, 252, 0.3);
}

.best-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: linear-gradient(90deg, #493afc, #5d4dff);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(73, 58, 252, 0.4);
    z-index: 1;
}

/* Kart Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #211f1f;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 3px;
}

.bank-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.rate-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.rate-value {
    font-size: 18px;
    font-weight: bold;
    color: #4eaaff;
    line-height: 1.2;
}

.product-type {
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.2;
}

/* Kart Body */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.earnings-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.earning-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.earning-item-right {
    align-items: flex-end;
}

.earning-item-right .earning-label {
    text-align: right;
}

.earning-item-right .earning-value {
    text-align: right;
}

.earning-label {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}

.earning-value {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.3;
    word-break: break-word;
}

/* Ek Bilgiler */
.additional-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 0px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 8px;
}

.info-label {
    color: #b0b0b0;
    font-size: 12px;
    white-space: nowrap;
}

.info-value {
    font-weight: 600;
    font-size: 13px;
    text-align: right;
}

.info-value.positive {
    color: #4ade80;
}

.info-value.negative {
    color: #f87171;
}

/* Kart Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px solid #211f1f;
    gap: 8px;
}

.info-icon-btn {
    background: none;
    border: none;
    color: #4eaaff;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-btn:hover {
    background-color: rgba(78, 170, 255, 0.1);
    color: #66c2ff;
}

.info-icon-btn svg {
    display: block;
}

.apply-btn {
    background-color: #007bff;
    color: #ffffff;
    padding: 6.5px 19.5px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
    margin-left: 4px;
    display: inline-block;
    min-width: 85px;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(93, 77, 255, 0.3);
}

.apply-btn:hover {
    background-color: #5d4dff;
}

/* Yükleniyor / Hata / Sonuç Yok */
#loading,
.no-results,
.error {
    text-align: center;
    padding: 40px 20px;
    color: #b0b0b0;
    font-size: 16px;
}

.error {
    color: #f87171;
}

/* Footer */
.footer-info-section {
    margin-top: 40px;
    padding: 18px;
    background-color: #111214;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info-header h3 {
    margin: 0;
    font-size: 16px;
    color: #f5f5f7;
    font-weight: 600;
}

.footer-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #4e5dff;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.footer-info-text {
    margin: 0;
    font-size: 13px;
    color: #b0b0b5;
    line-height: 1.5;
}

.footer-info-email {
    font-size: 13px;
    color: #7ca8ff;
    text-decoration: none;
    width: fit-content;
}

.footer-info-email:hover {
    text-decoration: underline;
}

.footer-info-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer-info-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-info-social img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background-color: #1b1c1d;
    padding: 3px;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .content-area {
        padding: 10px;
    }

    .input-panel {
        padding: 8px;
    }

    .input-group {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .input-group input[type="number"],
    .input-group select {
        min-width: 60px;
        max-width: 80px;
        padding: 9px 7px;
        font-size: 14px;
    }

    #calculate-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .bank-card {
        padding: 10px;
    }

    .card-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .bank-info {
        gap: 8px;
    }

    .earnings-row {
        flex-wrap: nowrap;
    }

    .earning-item {
        min-width: 0;
    }

    .earning-label {
        font-size: 10px;
    }

    .earning-value {
        font-size: 14px;
    }

    .card-footer {
        flex-wrap: wrap;
        gap: 6px;
    }

    .apply-btn {
        flex: 1 1 auto;
        min-width: 90px;
        text-align: center;
        font-size: 14px;
        padding: 7px 12px;
        max-width: 135px;
    }

    .vade-info,
    .kosullar-link {
        flex-shrink: 0;
        font-size: 11px;
    }
}

/* Scrollbar Stilleri */
.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.content-area::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Koşullar Text Button */
.kosullar-text-btn {
    background: none;
    border: none;
    color: #4eaaff;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.kosullar-text-btn:hover {
    background-color: rgba(78, 170, 255, 0.1);
    color: #66c2ff;
}

/* Koşullar Modal */
.kosullar-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.kosullar-modal-content {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9),
                0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 2px 20px rgba(73, 58, 252, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kosullar-modal-header {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: #ffffff;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.kosullar-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #493afc, transparent);
    opacity: 0.6;
}

.kosullar-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.kosullar-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.kosullar-modal-close:hover {
    background-color: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.4);
    transform: scale(1.05);
}

.kosullar-modal-body {
    padding: 24px;
    overflow-y: auto;
    color: #ffffff;
    line-height: 1.7;
    background: linear-gradient(to bottom, #1e1e1e, #252525);
}

.kosullar-modal-body div#kosullar-content {
    margin: 0;
    font-size: 14px;
    color: #e5e5e5;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

/* Modal Scrollbar */
.kosullar-modal-body::-webkit-scrollbar {
    width: 8px;
}

.kosullar-modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.kosullar-modal-body::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.kosullar-modal-body::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Mobil için modal ayarları */
@media (max-width: 768px) {
    .kosullar-modal {
        padding: 16px;
        align-items: center;
        justify-content: center;
    }

    .kosullar-modal-content {
        max-height: 85vh;
        width: calc(100% - 32px);
        margin: auto;
    }

    .kosullar-modal-header {
        padding: 10px 16px;
    }

    .kosullar-modal-header h3 {
        font-size: 15px;
    }

    .kosullar-modal-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .kosullar-modal-body {
        padding: 20px;
    }

    .kosullar-modal-body div#kosullar-content {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* Header Left - Sidebar + Page Selector */
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Toggle Button */
#sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s;
}

#sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu {
    position: absolute;
    top: 45px;
    left: 8px;
    background-color: #1b1c1d;
    border: 1px solid #444;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1002;
    overflow: hidden;
}

.sidebar-option {
    padding: 10px 16px;
    color: #cccccc;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sidebar-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Page Selector Styles */
.page-selector {
    position: relative;
}

#page-selector-btn {
    background: #2a2a2a;
    border: none;
    border-radius: 7px;
    padding: 6px 12px;
    color: #296bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    transition: background-color 0.2s;
    font-family: 'Inter', sans-serif;
}

#page-selector-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#page-selector-btn svg {
    transition: transform 0.2s;
}

.page-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #1b1c1d;
    border: 1px solid #444;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1002;
    overflow: hidden;
}

.page-option {
    padding: 10px 16px;
    color: #cccccc;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Page Icon Styles */
.page-icon {
    width: 26px;
    height: 26px;
    filter: invert(1);
}

.dropdown-icon {
    width: 26px;
    height: 26px;
    filter: invert(1);
}

/* Header Right - Site Title + Logo */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.site-title {
    font-size: 16px !important;
    margin: 0 !important;
    font-weight: 500 !important;
    color: #cccccc;
}

.header-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.hidden {
    display: none !important;
}
