/* ========================================
   Webboll Payment System - Public Styles
   ======================================== */

/* ---- Genel Gateway Stili ---- */
.webboll-gateway-desc {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ---- Kart Formu ---- */
.webboll-card-form {
    background: #f8fafd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
}

.webboll-form-fields {
    flex: 1;
    min-width: 0;
}

.webboll-field-group {
    margin-bottom: 14px;
}

.webboll-field-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webboll-field-group label .required {
    color: #e53e3e;
}

.webboll-input,
.webboll-select,
.webboll-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1a202c;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.webboll-input:focus,
.webboll-select:focus,
.webboll-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.webboll-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.webboll-expiry-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ---- Kredi Kartı Önizleme ---- */
.webboll-card-preview-wrapper {
    margin-bottom: 20px;
}

.webboll-credit-card {
    width: 100%;
    max-width: 320px;
    height: 180px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6fad 50%, #1e88c8 100%);
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(45, 111, 173, 0.35);
    color: white;
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
}

.webboll-credit-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.webboll-credit-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.webboll-card-chip {
    width: 36px;
    height: 26px;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.webboll-card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.2);
    transform: translateY(-50%);
}

.webboll-card-number-display {
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.webboll-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.webboll-card-holder-display {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
}

.webboll-card-expiry-display {
    font-size: 11px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ---- Taksit ---- */
.webboll-installment-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

/* ---- PayTR Notice ---- */
.webboll-paytr-notice {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    border: 1px solid #bee3f8;
    border-radius: 10px;
    padding: 16px;
    margin-top: 10px;
}

.webboll-paytr-notice p {
    color: #2c5282;
    font-size: 13px;
    margin: 8px 0 0;
}

.webboll-paytr-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.webboll-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #2d6fad;
    color: white;
    letter-spacing: 0.3px;
}

/* ---- PayTR iFrame ---- */
.webboll-paytr-iframe-wrapper {
    margin: 20px 0;
}

.webboll-paytr-iframe-wrapper iframe {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ---- EFT/Havale ---- */
.webboll-eft-discount {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #b1dfbb;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.webboll-discount-badge {
    background: #28a745;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.webboll-eft-discount p {
    color: #155724;
    font-size: 13px;
    margin: 0;
}

.webboll-eft-banks-preview {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.webboll-banks-preview-title {
    font-size: 12px;
    color: #6c757d;
    margin: 0 0 8px;
}

.webboll-bank-preview-item {
    padding: 4px 0;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px dashed #e9ecef;
}

.webboll-bank-preview-item:last-child {
    border-bottom: none;
}

/* ---- EFT Teşekkür Sayfası ---- */
.webboll-eft-thankyou {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.webboll-eft-thankyou h3 {
    color: #1a3a5c;
    margin-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
}

.webboll-order-ref {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 10px 16px;
    display: inline-block;
    font-size: 16px;
    color: #1a3a5c;
    margin: 12px 0;
}

.webboll-eft-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.webboll-bank-account-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.webboll-bank-header {
    background: linear-gradient(135deg, #1a3a5c, #2d6fad);
    color: white;
    padding: 10px 16px;
    font-size: 14px;
}

.webboll-bank-table {
    width: 100%;
    border-collapse: collapse;
}

.webboll-bank-table td {
    padding: 8px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f0f4f8;
}

.webboll-bank-table td:first-child {
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    width: 100px;
}

.webboll-iban {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.webboll-copy-btn {
    background: #e8f4fd;
    color: #2d6fad;
    border: 1px solid #bee3f8;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    transition: all 0.2s;
}

.webboll-copy-btn:hover {
    background: #2d6fad;
    color: white;
}

/* ---- Kapıda Ödeme ---- */
.webboll-kapida-options {
    margin-top: 10px;
}

.webboll-kapida-fee-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #5d4037;
    display: flex;
    align-items: center;
    gap: 6px;
}

.webboll-info-icon {
    font-style: normal;
    font-weight: 700;
    background: #ff9800;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.webboll-kapida-payment-type {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.webboll-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: white;
    transition: all 0.2s;
    font-size: 13px;
    flex: 1;
}

.webboll-radio-label:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.webboll-radio-label input[type="radio"] {
    display: none;
}

.webboll-radio-label input[type="radio"]:checked ~ * {
    color: #1a3a5c;
}

.webboll-radio-label:has(input[type="radio"]:checked) {
    border-color: #3b82f6;
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.webboll-radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.webboll-kapida-note-group .webboll-textarea {
    resize: vertical;
    min-height: 60px;
}

/* ---- Kapıda Teşekkür ---- */
.webboll-kapida-thankyou {
    text-align: center;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    border: 1px solid #bee3f8;
    border-radius: 12px;
    padding: 28px;
    margin: 20px 0;
}

.webboll-kapida-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.webboll-kapida-thankyou h3 {
    color: #1a3a5c;
    margin-bottom: 12px;
}

/* ---- 3D Redirect ---- */
.webboll-3d-redirect {
    text-align: center;
    padding: 20px;
}

.webboll-3d-redirect p {
    color: #6c757d;
    margin-bottom: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .webboll-field-row {
        grid-template-columns: 1fr;
    }

    .webboll-kapida-payment-type {
        flex-direction: column;
    }

    .webboll-eft-accounts {
        grid-template-columns: 1fr;
    }

    .webboll-credit-card {
        max-width: 100%;
        height: 160px;
    }

    .webboll-card-number-display {
        font-size: 15px;
        letter-spacing: 2px;
    }
}
