/* PGP Submission & Review — Frontend Styles */

/* ============================================================
   GENEL WRAPPER
   ============================================================ */
.pgp-sub-wrap, .pgp-rev-wrap {
    max-width: 900px;
    margin: 24px auto;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pgp-sub-title, .pgp-rev-title {
    font-size: 26px;
    margin: 0 0 20px;
    color: #1e3a8a;
}

/* ============================================================
   FORM SEKSIYONLARI
   ============================================================ */
.pgp-sub-section {
    margin: 24px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.pgp-sub-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #1f2937;
}

.pgp-sub-mini {
    font-size: 13px;
    color: #6b7280;
    font-weight: normal;
}

.pgp-sub-req {
    color: #dc2626;
    font-weight: bold;
}

/* ============================================================
   FORM ALANLARI
   ============================================================ */
.pgp-sub-field {
    margin: 12px 0;
}

.pgp-sub-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #374151;
}

.pgp-sub-field input[type="text"],
.pgp-sub-field select,
.pgp-sub-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.pgp-sub-field textarea {
    resize: vertical;
    min-height: 100px;
}

.pgp-sub-field input:focus,
.pgp-sub-field select:focus,
.pgp-sub-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pgp-sub-row {
    display: flex;
    gap: 16px;
}

.pgp-sub-half {
    flex: 1;
}

.pgp-sub-counter {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* ============================================================
   SORULAR (form içinde)
   ============================================================ */
.pgp-sub-questions {
    margin: 8px 0;
}

.pgp-sub-question {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin: 12px 0;
    overflow: hidden;
}

.pgp-sub-q-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.pgp-sub-q-req {
    display: inline-block;
    background: #dbeafe;
    color: #1e3a8a;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.pgp-sub-q-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pgp-sub-q-type select {
    padding: 4px 8px;
    font-size: 13px;
}

.pgp-sub-q-remove {
    background: none;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.pgp-sub-q-remove:hover {
    background: #fee2e2;
}

.pgp-sub-q-body {
    padding: 16px;
}

.pgp-sub-q-body textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

/* ============================================================
   ŞIK BLOĞU
   ============================================================ */
.pgp-sub-options {
    margin-top: 14px;
}

.pgp-sub-options-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 8px;
}

.pgp-sub-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.pgp-sub-opt-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: pointer;
}

.pgp-sub-opt-radio input[type="radio"] {
    margin: 0;
}

.pgp-sub-opt-letter {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
    color: #374151;
    background: #fff;
}

.pgp-sub-opt-radio input[type="radio"]:checked + .pgp-sub-opt-letter {
    background: #22c55e;
    color: #fff;
    border-color: #16a34a;
}

.pgp-sub-option input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.pgp-sub-opt-optional input[type="text"]::placeholder {
    color: #6b7682;
    font-style: italic;
}

/* ============================================================
   BUTONLAR
   ============================================================ */
.pgp-sub-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.pgp-sub-btn-primary {
    background: #2563eb;
    color: #fff;
}

.pgp-sub-btn-primary:hover {
    background: #1d4ed8;
}

.pgp-sub-btn-secondary {
    background: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.pgp-sub-btn-secondary:hover {
    background: #eff6ff;
}

.pgp-sub-add-row {
    margin-top: 12px;
}

.pgp-sub-add-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pgp-sub-submit-section {
    text-align: center;
    background: #ecfdf5;
    border-color: #86efac;
}

.pgp-sub-submit-section .pgp-sub-btn-primary {
    padding: 14px 32px;
    font-size: 16px;
    background: #16a34a;
}

.pgp-sub-submit-section .pgp-sub-btn-primary:hover {
    background: #15803d;
}

.pgp-sub-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #4b5563;
}

/* ============================================================
   MESAJLAR (hata, başarı, editör notu)
   ============================================================ */
.pgp-sub-error,
.pgp-sub-errors {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 12px 0;
}

.pgp-sub-errors ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.pgp-sub-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    font-weight: 600;
}

.pgp-sub-editor-note {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    padding: 14px 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.pgp-sub-editor-note p {
    margin: 6px 0 0;
}

/* v1.5.2: Üstte özet liste */
.pgp-sub-editor-notes-summary {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 4px;
}

.pgp-sub-editor-notes-summary > strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.pgp-sub-editor-notes-summary ul {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
}

.pgp-sub-editor-notes-summary li {
    padding: 8px 12px;
    background: #fffbeb;
    border-radius: 4px;
    margin: 5px 0;
    border-left: 3px solid #f59e0b;
}

.pgp-sub-editor-notes-summary li strong {
    color: #78350f;
}

/* v1.5.2: Inline not kutusu (paragraf textarea üstünde, soru bloğu içinde) */
.pgp-sub-inline-note {
    display: block;
    background: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 3px;
    font-size: 13px;
}

.pgp-sub-inline-note strong {
    color: #78350f;
    margin-right: 4px;
}

.pgp-sub-inline-note-q {
    margin: 0;
    border-radius: 0;
    border-left-width: 4px;
}

/* v1.5.2: Editör review tarafında — her bölüm altındaki not alanı */
.pgp-rev-note-field {
    margin: 10px 0 4px 0;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 5px;
}

.pgp-rev-note-field label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

.pgp-rev-note-hint {
    font-weight: normal;
    color: #6b7280;
    font-style: italic;
    font-size: 12px;
}

.pgp-rev-note-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
    resize: vertical;
}

.pgp-rev-note-field textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.pgp-rev-section {
    margin-bottom: 18px;
}

.pgp-rev-hint {
    background: #eff6ff;
    color: #1e40af;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 13px;
}

/* v1.5.2: Modal'da notlar özet listesi */
.pgp-rev-modal-summary {
    margin: 12px 0;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 5px;
    font-size: 13px;
}

.pgp-rev-summary-empty {
    background: #fef3c7;
    color: #92400e;
    padding: 10px;
    border-radius: 4px;
}

.pgp-rev-summary-list ul {
    margin: 6px 0 0 0;
    padding: 0 0 0 0;
    list-style: none;
}

.pgp-rev-summary-list li {
    padding: 6px 10px;
    background: #fff;
    border-left: 3px solid #f59e0b;
    margin: 4px 0;
    border-radius: 3px;
}

/* v1.5.2: History notes */
.pgp-rev-history-notes {
    margin-top: 8px;
}

.pgp-rev-history-notes .pgp-rev-history-note {
    margin: 4px 0;
    padding: 8px 12px;
    background: #fff;
    border-left: 3px solid #d1d5db;
    border-radius: 3px;
    font-style: normal;
    color: #374151;
    font-size: 13px;
}

.pgp-rev-history-notes .pgp-rev-history-note strong {
    color: #1f2937;
    margin-right: 4px;
}

/* v1.5.5: Yazar Orijinallik Onayı */
.pgp-sub-consent-section {
    background: #fff7ed;
    border: 2px solid #fb923c;
    border-radius: 6px;
    padding: 18px 20px;
    margin: 20px 0;
}

.pgp-sub-consent-section h3 {
    color: #9a3412;
    margin-top: 0;
}

.pgp-sub-consent-box {
    background: #fff;
    border: 1px solid #fdba74;
    border-radius: 5px;
    padding: 14px 16px;
}

.pgp-sub-consent-text {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 12px 14px;
    margin: 0 0 14px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #44403c;
    font-style: italic;
    border-radius: 3px;
}

.pgp-sub-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: #fef3c7;
    border-radius: 5px;
    border: 1px solid #fbbf24;
    transition: background 0.15s;
}

.pgp-sub-consent-check:hover {
    background: #fde68a;
}

.pgp-sub-consent-check input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.pgp-sub-consent-check span {
    flex: 1;
    font-size: 14px;
    color: #78350f;
}

.pgp-sub-consent-mini {
    font-size: 12px;
    color: #78716c;
    margin: 10px 0 0 0;
    font-style: italic;
}

.pgp-sub-consent-mini em {
    color: #b91c1c;
    font-weight: 600;
}

/* Disabled submit button - v1.5.5 */
.pgp-sub-btn-primary:disabled {
    background: #d1d5db !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.pgp-sub-btn-primary:disabled:hover {
    background: #d1d5db !important;
}

/* v1.5.5: Editör panelinde onay durumu kutusu */
.pgp-rev-consent-box {
    border-radius: 6px;
    padding: 12px 16px;
    margin: 14px 0;
}

.pgp-rev-consent-given {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.pgp-rev-consent-missing {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

.pgp-rev-consent-header {
    font-size: 14px;
    margin-bottom: 4px;
}

.pgp-rev-consent-meta {
    font-size: 13px;
    margin: 6px 0 0 0;
    color: #4b5563;
}

.pgp-rev-consent-meta code {
    background: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid #d1d5db;
}

.pgp-rev-consent-text-toggle {
    margin-top: 10px;
    font-size: 13px;
}

.pgp-rev-consent-text-toggle summary {
    cursor: pointer;
    color: #047857;
    font-weight: 500;
}

.pgp-rev-consent-text-toggle p {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    font-style: italic;
}

/* v1.5.5: Rozet — Onaylı / Onaysız */
.pgp-rev-tip-consent {
    background: #d1fae5;
    color: #065f46;
}

.pgp-rev-tip-no-consent {
    background: #fee2e2;
    color: #991b1b;
}

.pgp-rev-btn-approve:disabled {
    background: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.pgp-rev-btn-approve:disabled:hover {
    background: #9ca3af !important;
}
.pgp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.pgp-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 14px;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pgp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.pgp-stat-card .pgp-stat-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.pgp-stat-card .pgp-stat-label {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

.pgp-stat-total .pgp-stat-num    { color: #1e40af; }
.pgp-stat-publish .pgp-stat-num  { color: #16a34a; }
.pgp-stat-pending .pgp-stat-num  { color: #f59e0b; }
.pgp-stat-revision .pgp-stat-num { color: #dc2626; }
.pgp-stat-questions .pgp-stat-num{ color: #7c3aed; }
.pgp-stat-rejected .pgp-stat-num { color: #6b7280; }

.pgp-stat-total    { border-top: 3px solid #1e40af; }
.pgp-stat-publish  { border-top: 3px solid #16a34a; }
.pgp-stat-pending  { border-top: 3px solid #f59e0b; }
.pgp-stat-revision { border-top: 3px solid #dc2626; }
.pgp-stat-questions{ border-top: 3px solid #7c3aed; }
.pgp-stat-rejected { border-top: 3px solid #6b7280; }

@media (max-width: 600px) {
    .pgp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pgp-stat-card .pgp-stat-num { font-size: 24px; }
}

/* v1.5.3: Liste sayfasında "Tip" kolonu badge'leri */
.pgp-rev-tip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pgp-rev-tip-new {
    background: #dbeafe;
    color: #1e40af;
}

.pgp-rev-tip-revision {
    background: #fed7aa;
    color: #9a3412;
}

/* v1.5.3: Detay sayfasında üstte uyarı bantı — düzeltme sonrası geldi */
.pgp-rev-revision-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    padding: 16px 20px;
    margin: 16px 0 24px 0;
    border-radius: 6px;
    color: #78350f;
}

.pgp-rev-revision-banner h3 {
    color: #78350f;
    margin: 0 0 8px 0;
    font-size: 17px;
}

.pgp-rev-revision-banner p {
    margin: 4px 0;
    font-size: 14px;
}

/* v1.5.3: Bölüm bazında "önceki düzeltme isteği" kutusu */
.pgp-rev-prev-request {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 10px 14px;
    margin: 8px 0 4px 0;
    border-radius: 4px;
    color: #7c2d12;
}

.pgp-rev-prev-request strong {
    display: block;
    font-size: 13px;
    color: #7c2d12;
    margin-bottom: 4px;
}

.pgp-rev-prev-request p {
    margin: 4px 0;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    padding: 6px 10px;
    border-radius: 3px;
    font-style: italic;
}

.pgp-rev-prev-request small {
    font-size: 12px;
    color: #9a3412;
    font-style: italic;
}

.pgp-sub-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 6px;
    border: 2px dashed #d1d5db;
}

/* ============================================================
   GÖNDERILERIM TABLOSU
   ============================================================ */
.pgp-sub-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.pgp-sub-table th,
.pgp-sub-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.pgp-sub-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.pgp-sub-badge {
    display: inline-block;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.pgp-sub-note-preview {
    margin-top: 6px;
    font-size: 12px;
    color: #92400e;
    background: #fef3c7;
    padding: 6px 10px;
    border-radius: 3px;
}

.pgp-sub-action-link {
    color: #2563eb;
    text-decoration: none;
    margin-right: 10px;
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.pgp-sub-action-link:hover {
    text-decoration: underline;
}

.pgp-sub-action-danger {
    color: #dc2626 !important;
}

.pgp-sub-action-mute {
    color: #6b7682;
    font-size: 12px;
    font-style: italic;
}

/* ============================================================
   REVIEW (EDİTÖR ONAY)
   ============================================================ */
.pgp-rev-summary {
    background: #eff6ff;
    color: #1e3a8a;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
    margin: 0 0 20px;
}

.pgp-rev-empty {
    background: #d1fae5;
    color: #065f46;
    padding: 24px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.pgp-rev-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.pgp-rev-table th,
.pgp-rev-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.pgp-rev-table th {
    background: #f3f4f6;
    font-weight: 600;
}

.pgp-rev-table-small {
    font-size: 13px;
}

.pgp-rev-author {
    font-family: monospace;
}

.pgp-rev-author small {
    color: #6b7280;
    margin-left: 4px;
}

.pgp-rev-back {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.pgp-rev-back:hover {
    text-decoration: underline;
}

/* Detay sayfası */
.pgp-rev-detail {
    margin-top: 16px;
}

.pgp-rev-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
}

.pgp-rev-meta-item {
    font-size: 14px;
    color: #374151;
}

.pgp-rev-prev-note {
    background: #f3f4f6;
    border-left: 4px solid #9ca3af;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.pgp-rev-paragraph-body {
    background: #fefce8;
    border: 1px solid #fde68a;
    padding: 20px;
    border-radius: 6px;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 20px;
}

.pgp-rev-question {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
}

.pgp-rev-q-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.pgp-rev-q-type {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
}

.pgp-rev-q-tag-req {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.pgp-rev-q-tag-cus {
    background: #ddd6fe;
    color: #5b21b6;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.pgp-rev-q-text {
    font-weight: 600;
    margin: 8px 0;
}

.pgp-rev-q-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pgp-rev-q-options li {
    padding: 8px 12px;
    margin: 4px 0;
    background: #f9fafb;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.pgp-rev-q-correct {
    background: #d1fae5 !important;
    border-color: #86efac !important;
    color: #065f46;
    font-weight: 600;
}

.pgp-rev-q-letter {
    display: inline-block;
    width: 24px;
    font-weight: 700;
    color: #6b7280;
}

.pgp-rev-q-correct-tag {
    margin-left: 12px;
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
}

/* Actions */
.pgp-rev-actions {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 20px;
    margin: 24px 0;
    text-align: center;
}

.pgp-rev-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pgp-rev-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.pgp-rev-btn-primary {
    background: #2563eb;
    color: #fff;
}
.pgp-rev-btn-primary:hover { background: #1d4ed8; }

.pgp-rev-btn-approve {
    background: #16a34a;
    color: #fff;
}
.pgp-rev-btn-approve:hover { background: #15803d; }

.pgp-rev-btn-revise {
    background: #f59e0b;
    color: #fff;
}
.pgp-rev-btn-revise:hover { background: #d97706; }

.pgp-rev-btn-reject {
    background: #dc2626;
    color: #fff;
}
.pgp-rev-btn-reject:hover { background: #b91c1c; }

.pgp-rev-btn-cancel {
    background: #fff;
    color: #4b5563;
    border: 1px solid #d1d5db;
}
.pgp-rev-btn-cancel:hover { background: #f3f4f6; }

/* Geniş tablolar: sarmalayıcı yatay kaydırır (review-list, dashboard, gönderilerim) */
.pgp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.pgp-table-wrap > .pgp-rev-table,
.pgp-table-wrap > .pgp-sub-table { min-width: 640px; }

/* Odak halkası (klavye) */
.pgp-rev-btn:focus-visible, .pgp-sub-btn:focus-visible, .pgp-sub-form input:focus-visible,
.pgp-sub-form textarea:focus-visible, .pgp-sub-form select:focus-visible,
.pgp-rev-note-field textarea:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* Modal (role=dialog, aria-modal) */
.pgp-rev-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgp-rev-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.pgp-rev-modal-content h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.pgp-rev-modal-content p {
    margin: 0 0 16px;
    color: #4b5563;
}

.pgp-rev-modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}

.pgp-rev-modal-buttons {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.pgp-rev-status-info {
    background: #f3f4f6;
    padding: 16px 20px;
    border-radius: 6px;
    color: #374151;
    margin: 24px 0;
}

.pgp-rev-history {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.pgp-rev-history li {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 10px 14px;
    margin: 8px 0;
    font-size: 14px;
}

.pgp-rev-history li small {
    color: #6b7280;
    font-weight: normal;
}

.pgp-rev-history-note {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff;
    border-left: 3px solid #d1d5db;
    border-radius: 3px;
    font-style: italic;
    color: #4b5563;
    font-size: 13px;
}

@media (max-width: 600px) {
    .pgp-sub-row {
        flex-direction: column;
        gap: 8px;
    }
    .pgp-rev-action-buttons {
        flex-direction: column;
    }
    .pgp-rev-action-buttons .pgp-rev-btn {
        width: 100%;
    }
}

/* v1.5.7: Form'da invalid soru bloğu */
.pgp-sub-q-invalid {
    border: 2px solid #dc2626 !important;
    background: #fef2f2;
}

.pgp-sub-q-invalid .pgp-sub-q-header {
    background: #fee2e2 !important;
    color: #991b1b;
}

/* v1.5.7: Rejected paragraflar bilgi mesajı */
.pgp-rev-mini-info {
    font-size: 13px;
    color: #4b5563;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #9ca3af;
    margin: 8px 0 12px 0;
}

.pgp-rev-btn-mini {
    padding: 4px 10px !important;
    font-size: 12px !important;
}

/* v1.5.7: Editör Paneli (Dashboard) */
.pgp-ed-dashboard-intro {
    background: #eff6ff;
    color: #1e40af;
    padding: 12px 18px;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    margin: 0 0 24px 0;
}

.pgp-ed-dashboard-intro a {
    color: #1e40af;
    text-decoration: underline;
}

.pgp-ed-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.pgp-ed-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #6b7280;
    border-radius: 8px;
    padding: 18px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.15s;
}

.pgp-ed-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.pgp-ed-stat-num {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.pgp-ed-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.pgp-ed-stat-action {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.pgp-ed-stat-pending    { border-top-color: #f59e0b; }
.pgp-ed-stat-pending .pgp-ed-stat-num    { color: #f59e0b; }
.pgp-ed-stat-revision   { border-top-color: #dc2626; }
.pgp-ed-stat-revision .pgp-ed-stat-num   { color: #dc2626; }
.pgp-ed-stat-published  { border-top-color: #16a34a; }
.pgp-ed-stat-published .pgp-ed-stat-num  { color: #16a34a; }
.pgp-ed-stat-rejected   { border-top-color: #6b7280; }
.pgp-ed-stat-rejected .pgp-ed-stat-num   { color: #6b7280; }
.pgp-ed-stat-questions  { border-top-color: #7c3aed; }
.pgp-ed-stat-questions .pgp-ed-stat-num  { color: #7c3aed; }

a.pgp-ed-stat-card:hover {
    text-decoration: none;
}

a.pgp-ed-stat-pending:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

/* Hızlı linkler */
.pgp-ed-quick-links {
    margin: 32px 0;
}

.pgp-ed-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.pgp-ed-link-card {
    display: block;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.15s;
}

.pgp-ed-link-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    text-decoration: none;
    color: #1e40af;
}

.pgp-ed-link-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.pgp-ed-link-card small {
    font-size: 12px;
    color: #6b7280;
}

.pgp-ed-link-card:hover small {
    color: #3b82f6;
}

.pgp-ed-recent {
    margin: 32px 0;
}

@media (max-width: 600px) {
    .pgp-ed-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pgp-ed-stat-num { font-size: 28px; }
}

/* v1.6.x–v1.7.x sınıf yönetimi / ödev / iptal stilleri kaldırıldı:
   ilgili sınıf/ödev katmanı ve şablonları silindi; seçiciler
   hiçbir şablonda kullanılmıyor (grep ile doğrulandı). */

@media (prefers-reduced-motion: reduce) {
    .pgp-sub-wrap *, .pgp-rev-wrap * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
