/**
 * Dosya: assets/public-style.css
 * Açıklama: Özdem Event Manager - Final Tasarım
 * Durum: GOLDEN MASTER (Temiz, Eksiksiz ve Optimize)
 */

:root {
    --ozdem-primary: #2271b1;       /* WordPress Mavisi */
    --ozdem-primary-hover: #135e96;
    --ozdem-secondary: #f0f6fc;
    --ozdem-success: #22c55e;       /* Modern Yeşil */
    --ozdem-danger: #d63638;        /* Hata Kırmızısı */
    --ozdem-text: #1d2327;
    --ozdem-border: #dcdcde;
    --ozdem-bg-light: #fcfcfc;
    --ozdem-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- 1. ANA KAPSAYICI --- */
.ozdem-form-wrapper {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid var(--ozdem-border);
    border-radius: 8px;
    box-shadow: var(--ozdem-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ozdem-text);
    padding: 30px;
    line-height: 1.5;
    box-sizing: border-box;
    position: relative; /* Dil seçici için referans noktası */
}

/* --- 2. HEADER & LOGO --- */
.ozdem-form-logo {
    text-align: center;
    margin-bottom: 15px;
}

.ozdem-form-logo img {
    max-height: 80px;
    width: auto;
    display: inline-block;
}

.ozdem-header-fancy {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 25px;
    position: relative;
}

.ozdem-header-fancy h2 {
    margin: 0 0 10px 0;
    color: var(--ozdem-primary);
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- DİL SEÇİCİ (SAĞ ÜST) --- */
.ozdem-lang-switcher {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.ozdem-lang-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
}

.ozdem-lang-btn:hover {
    background: var(--ozdem-secondary);
    color: var(--ozdem-primary);
    border-color: var(--ozdem-primary);
}

/* Tarih ve Yer Bilgisi */
.ozdem-event-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.ozdem-info-date, .ozdem-info-location {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--ozdem-secondary);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.ozdem-info-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--ozdem-primary);
}

.ozdem-badge {
    display: inline-block;
    background: var(--ozdem-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 5px;
}

/* --- 3. BÖLÜM ÇERÇEVESİ --- */
.ozdem-section-frame {
    background: var(--ozdem-bg-light);
    border: 1px solid var(--ozdem-border);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.ozdem-section-frame h3, 
.common-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--ozdem-primary);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-weight: 600;
}

/* --- 4. FORM ELEMANLARI --- */
.ozdem-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.ozdem-input-group { margin-bottom: 5px; }

.ozdem-field-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 12px;
    color: #444;
}

.ozdem-input, .ozdem-select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--ozdem-border);
    border-radius: 4px;
    font-size: 13px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ozdem-input:focus, .ozdem-select:focus {
    border-color: var(--ozdem-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

/* --- 5. SATIR KARTLARI (Row Item) --- */
.ozdem-row-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid var(--ozdem-border);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.ozdem-row-item[data-type="athlete"] { border-left-color: var(--ozdem-primary); }
.ozdem-row-item[data-type="coach"] { border-left-color: #8e44ad; }
.ozdem-row-item[data-type="parent"] { border-left-color: #e67e22; }
.ozdem-row-item[data-type="official"] { border-left-color: #27ae60; }

.ozdem-row-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ozdem-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f5f5f5;
}

.ozdem-row-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

/* --- YENİ: SPORCU İÇİ VELİ ALANI (Nested) --- */
.athlete-parent-section {
    background-color: #fafafa;
    border: 1px dashed #ccd0d4;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
}
.parent-fields-wrapper {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 2px solid #e67e22; /* Veli rengi */
}

/* --- 6. BUTONLAR --- */
.ozdem-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.ozdem-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--ozdem-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ozdem-add-btn:hover { background-color: var(--ozdem-primary-hover); }

.ozdem-btn-secondary { background-color: #646970; }
.ozdem-btn-secondary:hover { background-color: #4f545a; }

/* Sil Butonu */
.ozdem-remove-row-btn {
    background: transparent;
    color: var(--ozdem-danger);
    border: 1px solid transparent;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.ozdem-remove-row-btn:hover {
    background: #fff0f0;
    border-color: #ffcccc;
}

/* Submit Butonu */
.ozdem-submit-button {
    background: var(--ozdem-success);
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}
.ozdem-submit-button:hover { 
    background: #16a34a; 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.4);
}

/* --- 7. BİLDİRİM KARTLARI --- */
.ozdem-notice-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.ozdem-notice-card.info { border-left: 4px solid var(--ozdem-primary); }
.ozdem-notice-card.danger { border-left: 4px solid var(--ozdem-danger); }
.notice-icon span { font-size: 32px; width: 32px; height: 32px; }
.notice-content h3 { margin: 0 0 5px 0; font-size: 16px; }
.notice-content p { margin: 0; font-size: 13px; }

/* --- 8. KVKK & DİĞERLERİ --- */
.ozdem-kvkk-confirmation {
    margin-top: 25px;
    border: 1px solid var(--ozdem-border);
    border-radius: 6px;
    overflow: hidden;
}
.kvkk-header {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid var(--ozdem-border);
    font-weight: 600;
    font-size: 13px;
    color: #333;
}
.kvkk-content {
    max-height: 120px;
    overflow-y: auto;
    padding: 15px;
    font-size: 12px;
    color: #555;
}
.kvkk-check { padding: 10px 15px; background: #fdfdfd; border-top: 1px solid var(--ozdem-border); }
.kvkk-check label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: var(--ozdem-primary); font-size: 13px; }

/* Sponsorlar */
.ozdem-sponsor-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}
.ozdem-sponsor-container img {
    max-width: 140px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.ozdem-sponsor-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .ozdem-form-wrapper { padding: 15px; margin: 10px; }
    .ozdem-input-grid { grid-template-columns: 1fr; }
    .ozdem-submit-button { width: 100%; }
    .ozdem-action-bar { justify-content: center; }
}

/* --- YENİ: ÖDEME TABLOSU VE AKORDİYON --- */
.ozdem-payment-accordion {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.ozdem-pay-item {
    border-bottom: 1px solid #eee;
}
.ozdem-pay-item:last-child {
    border-bottom: none;
}

.ozdem-pay-header {
    background: #f9f9f9;
    padding: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.ozdem-pay-header:hover {
    background: #f0f6fc;
}
.ozdem-pay-header.active {
    background: #e5f5fa;
    border-left: 4px solid #2271b1;
}

.ozdem-pay-content {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #555;
    display: none; /* JS ile açılacak */
}

/* Detaylı Tablo */
#ozdem-payment-breakdown table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
#ozdem-payment-breakdown td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
#ozdem-payment-breakdown tr:last-child td {
    border-bottom: none;
}

/* Kredi Kartı Formu */
.ozdem-cc-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}