/**
 * Koza Anti-Spam & Matematik Captcha CSS
 * Ön yüz yorum formu ve WordPress admin paneli stilleri
 */

/* ==========================================================================
   1. ÖN YÜZ (ZİYARETÇİ YORUMLARI FORMU) STİLLERİ
   ========================================================================== */

.koza-anti-spam-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 15px 0 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    clear: both;
    font-family: inherit;
    box-sizing: border-box;
}

.koza-anti-spam-box * {
    box-sizing: border-box;
}

.koza-spam-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.koza-spam-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.koza-spam-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.koza-spam-hint {
    font-size: 13px;
    color: #475569;
}

.koza-spam-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.koza-math-display {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    user-select: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.koza-input-wrapper {
    display: inline-block;
}

.koza-math-input {
    width: 110px !important;
    height: 38px !important;
    background: #ffffff !important;
    border: 2px solid #94a3b8 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.koza-math-input:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.koza-refresh-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    border-radius: 6px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.koza-refresh-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: rotate(45deg);
}

.koza-refresh-btn.rotating {
    animation: kozaSpin 0.6s linear infinite;
}

@keyframes kozaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   2. ADMİN PANELİ STİLLERİ
   ========================================================================== */

.koza-admin-wrap {
    max-width: 960px;
    margin: 25px 20px 40px 0;
}

.koza-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 22px 26px;
    border-radius: 8px;
    border: 1px solid #c3c4c7;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.koza-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.koza-header-icon {
    font-size: 38px;
    width: 38px;
    height: 38px;
    color: #2563eb;
}

.koza-admin-header h1 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
}

.koza-subtitle {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

.koza-header-badge .koza-ver {
    background: #f0f0f1;
    color: #50575e;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #dcdcde;
}

/* İstatistik Kartları */
.koza-stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 782px) {
    .koza-stat-cards {
        grid-template-columns: 1fr;
    }
}

.koza-card {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.koza-card-blocked {
    border-left: 5px solid #dc2626;
}

.koza-card-blocked .koza-card-icon {
    background: #fee2e2;
    color: #dc2626;
}

.koza-card-pending {
    border-left: 5px solid #f59e0b;
    flex-wrap: wrap;
}

.koza-card-pending .koza-card-icon {
    background: #fef3c7;
    color: #d97706;
}

.koza-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.koza-card-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.koza-card-info {
    display: flex;
    flex-direction: column;
}

.koza-card-title {
    font-size: 13px;
    color: #646970;
    font-weight: 500;
    margin-bottom: 3px;
}

.koza-card-val {
    font-size: 26px;
    font-weight: 800;
    color: #1d2327;
    line-height: 1.1;
}

.koza-card-action {
    margin-left: auto;
}

.button-danger {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 12px !important;
}

.button-danger:hover {
    background: #b91c1c !important;
    border-color: #991b1b !important;
    color: #ffffff !important;
}

/* Ayarlar Kutusu */
.koza-settings-box {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.koza-settings-box h2 {
    margin: 0 0 16px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f1;
}

.koza-form-table th {
    width: 320px;
    padding: 16px 10px 16px 0;
    font-size: 14px;
    color: #1d2327;
    vertical-align: top;
}

.koza-form-table td {
    padding: 16px 0;
}

.koza-form-table .description {
    margin-top: 6px;
    color: #646970;
    font-size: 12px;
}

/* Toggle Switch */
.koza-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    vertical-align: middle;
}

.koza-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.koza-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.koza-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.koza-toggle input:checked + .koza-toggle-slider {
    background-color: #2563eb;
}

.koza-toggle input:checked + .koza-toggle-slider:before {
    transform: translateX(20px);
}

.koza-form-actions {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.koza-save-feedback {
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
}
