/* ----------------------------------------------------------
 * assets/public.css – Dernek Üyelik & Aidat (front‑end)
 * v1.4.0  |  GPT‑Craft
 * Widget form, buton, tablo ve responsive görünümler
 *---------------------------------------------------------- */

:root {
    --dernek-primary: #1e73be;
    --dernek-primary-dark: #15518a;
    --dernek-gray: #f7f7f7;
    --dernek-border-color: #d7d7d7;
    --dernek-radius: 8px;
    --dernek-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    --dernek-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- Kapsayıcı ---------- */
.dernek-lookup {
    padding: 15px;
    background: #f6f6f6;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* ---------- Input ---------- */
.dernek-lookup input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ---------- Buton ---------- */
.dernek-lookup button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
.dernek-lookup button:hover {
    background: #005177;
}

/* ---------- Sonuç kapsayıcısı ---------- */
.lookup-result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.lookup-result p {
    margin: 5px 0;
    line-height: 1.5;
}

/* Bilgi bölümleri */
.member-info, .aidat-info, .payments-info, .debts-info, .total-balance {
    margin-bottom: 20px;
}

/* Kullanıcı Bilgileri Kartı - YENİ */
.member-info-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #eaeaea;
}

.member-header {
    background: linear-gradient(135deg, #1e73be 0%, #3498db 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.member-header i {
    font-size: 32px;
    margin-right: 15px;
}

.member-header h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    border: none !important;
    color: white !important;
}

.member-details {
    padding: 15px 20px;
}

.member-detail-item {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.member-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-icon {
    margin-right: 15px;
    width: 24px;
    color: #1e73be;
    text-align: center;
}

.detail-icon i {
    font-size: 18px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Eski Üye Bilgisi Stili */
.member-info h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.lookup-result h4 {
    margin: 15px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ddd;
    font-size: 16px;
    color: #0073aa;
}

/* Tablolar */
.lookup-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
}

.lookup-result table th,
.lookup-result table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.lookup-result table thead th {
    background: #f2f2f2;
    font-weight: bold;
}

.lookup-result table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.lookup-result table tfoot th,
.lookup-result table tfoot td {
    font-weight: bold;
    background: #e9f5fb;
    color: #0073aa;
}

/* Toplam Borç Bölümü */
.total-balance {
    margin: 15px 0 25px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    border-left: 5px solid #e63946;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Borç durumuna göre stil değişiklikleri */
.total-balance.debt-positive {
    background-color: #ffebee;
    border-left: 5px solid #e53935;
    border-radius: 8px;
}

.total-balance.debt-negative {
    background-color: #e8f5e9;
    border-left: 5px solid #43a047;
    border-radius: 8px;
}

.total-balance h4 {
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    color: #333;
    font-size: 17px;
    display: flex;
    align-items: center;
}

.total-balance h4 i {
    margin-right: 8px;
    font-size: 20px;
}

.debt-positive h4 i {
    color: #e53935;
}

.debt-negative h4 i {
    color: #43a047;
}

.balance-info {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.6);
}

.total-balance p {
    font-size: 18px;
    margin: 10px 0 0 0;
}

.total-balance.debt-positive strong {
    color: #c62828;
    font-size: 22px;
}

.total-balance.debt-negative strong {
    color: #2e7d32;
    font-size: 22px;
}

/* Ödeme bilgileri */
.payments-info {
    margin-top: 20px;
}

.payments-info table tr td:nth-child(2),
.debts-info table tr td:nth-child(2) {
    text-align: right;
    font-weight: 500;
}

/* Borç Detayları Tablosu */
.debt-details {
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    padding: 10px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.debt-details h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.debt-details h5 i {
    margin-right: 6px;
    color: #555;
}

.debt-details table {
    margin-bottom: 0 !important;
}

.debt-details table td:nth-child(2) {
    text-align: right;
    font-weight: 500;
}

.debt-details .payment-negative {
    color: #2e7d32;
    font-weight: bold;
}

.debt-details .debt-item-positive {
    color: #c62828;
    font-weight: bold;
}

.debt-details .debt-item-negative {
    color: #2e7d32;
    font-weight: bold;
}

.debt-details tfoot th {
    border-top: 2px solid #ddd !important;
    font-size: 16px;
}

/* ---------- Tablo ---------- */
.lookup-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .5rem;
    background: var(--dernek-gray);
    border-radius: var(--dernek-radius);
    overflow: hidden;
}
.lookup-table th {
    background: var(--dernek-primary);
    color: #fff;
    text-align: left;
    padding: .6rem .8rem;
    font-size: 1.05rem;
}
.lookup-table td {
    padding: .6rem .8rem;
    border: 1px solid var(--dernek-border-color);
    background: #fff;
    vertical-align: middle;
}
.lookup-table .amt {
    text-align: right;
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .dernek-lookup {
        padding: 10px;
    }
    
    .lookup-result table {
        font-size: 13px;
    }
    
    .lookup-result table th,
    .lookup-result table td {
        padding: 6px;
    }
    
    .lookup-result h4 {
        font-size: 15px;
    }
    
    .total-balance {
        padding: 8px;
    }
    
    .debt-details {
        padding: 8px;
        margin-top: 10px;
    }
    
    .debt-details h5 {
        font-size: 14px;
    }
    
    .debt-details table {
        font-size: 12px;
    }
    
    .debt-details tfoot th {
        font-size: 14px;
    }
    
    /* Kullanıcı bilgileri kartı için mobil düzenlemeler */
    .member-header {
        padding: 12px 15px;
    }
    
    .member-header i {
        font-size: 28px;
        margin-right: 10px;
    }
    
    .member-header h3 {
        font-size: 18px !important;
    }
    
    .member-details {
        padding: 12px 15px;
    }
    
    .detail-value {
        font-size: 15px;
    }
}

/* Shortcode Wrapper */
.dernek-shortcode-wrapper {
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #eee;
}

.dernek-shortcode-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 8px;
}

/* Multiple Forms Support */
.widget .dernek-lookup,
.dernek-shortcode-wrapper .dernek-lookup {
    margin-bottom: 0;
}

/* Ensure unique styling for shortcodes used in content */
.entry-content .dernek-lookup button,
.entry-content .lookup-result table {
    font-size: 14px;
}