/**
 * Akademik Yayın Yönetimi - Public CSS
 * Versiyon: 1.0.0
 */

/* ===== GENEL ===== */
.ayy-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.ayy-wrap h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0f172a;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 12px;
}

.ayy-wrap h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 16px;
    color: #1e293b;
}

/* ===== BADGE'LER ===== */
.ayy-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.ayy-badge-gonderildi { background: #dbeafe; color: #1d4ed8; }
.ayy-badge-on_inceleme { background: #fef3c7; color: #92400e; }
.ayy-badge-hakem_surecinde { background: #fed7aa; color: #c2410c; }
.ayy-badge-hakem_tamamlandi { background: #e0e7ff; color: #4338ca; }
.ayy-badge-revizyon_istendi { background: #fce7f3; color: #be185d; }
.ayy-badge-revizyon_geldi { background: #ede9fe; color: #6d28d9; }
.ayy-badge-kabul_edildi { background: #d1fae5; color: #065f46; }
.ayy-badge-dizgi_asamasinda { background: #e0f2fe; color: #075985; }
.ayy-badge-son_okuma { background: #fef9c3; color: #854d0e; }
.ayy-badge-reddedildi { background: #fee2e2; color: #991b1b; }
.ayy-badge-yayin_asamasinda { background: #cffafe; color: #155e75; }
.ayy-badge-yayinlandi { background: #bbf7d0; color: #166534; }
.ayy-badge-erken_yayin { background: #FEF3C7; color: #92400E; }
.ayy-badge-geri_cekildi { background: #f1f5f9; color: #475569; }

/* ===== Online First Liste ===== */
.ayy-online-first-list { margin: 20px 0; }
.ayy-of-item { padding: 20px; margin-bottom: 16px; border: 1px solid #E2E8F0; border-radius: 8px; position: relative; background: #fff; }
.ayy-of-badge { position: absolute; top: 12px; right: 12px; background: #FEF3C7; color: #92400E; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: .5px; }
.ayy-of-title { margin: 0 0 6px; }
.ayy-of-title a { color: #1E293B; text-decoration: none; }
.ayy-of-title a:hover { color: #2563EB; }
.ayy-of-authors { color: #64748B; margin: 0 0 8px; font-size: 14px; }
.ayy-of-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #64748B; margin-bottom: 8px; }
.ayy-of-doi a { color: #2563EB; }
.ayy-of-abstract { margin: 8px 0; }
.ayy-of-abstract summary { cursor: pointer; color: #2563EB; font-size: 14px; }

/* ===== Şablon Sayfası ===== */
.ayy-templates-page { margin: 20px 0; }
.ayy-tpl-group { margin-bottom: 24px; }
.ayy-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ayy-tpl-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #E2E8F0; border-radius: 8px; background: #fff; }
.ayy-tpl-icon { font-size: 28px; }
.ayy-tpl-info { flex: 1; }
.ayy-tpl-info strong { display: block; font-size: 14px; }
.ayy-tpl-info p { margin: 2px 0; color: #64748B; font-size: 13px; }
.ayy-tpl-info small { color: #94A3B8; }

/* ===== Erişim İstatistikleri ===== */
.ayy-stats-card { display: flex; gap: 20px; padding: 12px 16px; background: #F8FAFC; border-radius: 8px; font-size: 14px; }
.ayy-stat-item strong { color: #1E293B; }
.ayy-inline-stats { color: #64748B; font-size: 13px; }
.ayy-badge-sm { padding: 2px 8px; font-size: 11px; }
.ayy-badge-info { background: #dbeafe; color: #1e40af; }
.ayy-badge-success { background: #d1fae5; color: #065f46; }
.ayy-badge-warning { background: #fef3c7; color: #92400e; }

/* ===== GÖNDERİM FORMU ===== */
.ayy-submission-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ayy-form-group {
    margin-bottom: 20px;
}

.ayy-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #334155;
}

.ayy-form-group label .required {
    color: #dc2626;
    margin-left: 2px;
}

.ayy-form-group input[type="text"],
.ayy-form-group input[type="email"],
.ayy-form-group input[type="url"],
.ayy-form-group input[type="number"],
.ayy-form-group textarea,
.ayy-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

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

.ayy-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.ayy-form-group .description {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.ayy-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Dosya Yükleme */
.ayy-file-upload {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.ayy-file-upload:hover,
.ayy-file-upload.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.ayy-file-upload .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.ayy-file-upload p {
    margin: 4px 0;
    font-size: 14px;
    color: #64748b;
}

.ayy-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-top: 8px;
}

.ayy-file-info .filename {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.ayy-file-info .remove-file {
    color: #dc2626;
    cursor: pointer;
    font-size: 12px;
}

/* Butonlar */
.ayy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

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

.ayy-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.ayy-btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.ayy-btn-secondary:hover {
    background: #cbd5e1;
}

.ayy-btn-success {
    background: #059669;
    color: #fff;
}

.ayy-btn-success:hover {
    background: #047857;
    color: #fff;
}

.ayy-btn-danger {
    background: #dc2626;
    color: #fff;
}

.ayy-btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.ayy-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.ayy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== DASHBOARD TABLOLARI ===== */
.ayy-dashboard-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ayy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ayy-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ayy-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ayy-table tr:hover td {
    background: #f8fafc;
}

.ayy-table .ayy-actions {
    white-space: nowrap;
}

.ayy-table .ayy-actions a,
.ayy-table .ayy-actions button {
    margin-right: 6px;
}

/* ===== YAZAR PANELİ ===== */
.ayy-author-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ayy-stat-card {
    text-align: center;
    padding: 20px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ayy-stat-card .ayy-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.ayy-stat-card .ayy-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ===== HAKEM PANELİ ===== */
.ayy-review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.ayy-review-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ayy-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ayy-review-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.ayy-review-card-meta {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.ayy-review-card-meta span {
    margin-right: 16px;
}

.ayy-review-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ===== DEĞERLENDİRME FORMU ===== */
.ayy-review-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
}

.ayy-rating-group {
    margin-bottom: 20px;
}

.ayy-rating-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.ayy-rating-scale {
    display: flex;
    gap: 4px;
}

.ayy-rating-scale input[type="radio"] {
    display: none;
}

.ayy-rating-scale label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 0;
}

.ayy-rating-scale input[type="radio"]:checked + label {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ayy-rating-scale label:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.ayy-rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    padding: 0 4px;
}

/* ===== EDİTÖR PANELİ ===== */
.ayy-editor-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    gap: 4px;
}

.ayy-editor-tabs .ayy-tab-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-size: 14px;
}

.ayy-editor-tabs .ayy-tab-link:hover {
    color: #1e293b;
}

.ayy-editor-tabs .ayy-tab-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.ayy-tab-content {
    display: none;
}

.ayy-tab-content.active {
    display: block;
}

/* Hakem Özet Kutusu */
.ayy-reviewer-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.ayy-reviewer-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.ayy-reviewer-summary-item .label {
    color: #64748b;
}

.ayy-reviewer-summary-item .value {
    font-weight: 600;
    color: #1e293b;
}

/* Karar Formu */
.ayy-decision-form {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 20px;
}

.ayy-decision-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

/* ===== MESAJLAR ===== */
.ayy-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ayy-notice-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ayy-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ayy-notice-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.ayy-notice-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ===== TIMELINE ===== */
.ayy-timeline {
    position: relative;
    padding-left: 24px;
}

.ayy-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.ayy-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.ayy-timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #2563eb;
}

.ayy-timeline-date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.ayy-timeline-content {
    font-size: 14px;
    color: #475569;
}

/* ===== BOŞ DURUM ===== */
.ayy-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}

.ayy-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.ayy-empty-state p {
    font-size: 16px;
    margin-bottom: 16px;
}

/* ===== LOADING ===== */
.ayy-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: ayy-spin 0.6s linear infinite;
}

@keyframes ayy-spin {
    to { transform: rotate(360deg); }
}

/* ===== MODAL ===== */
.ayy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ayy-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.ayy-modal-lg {
    max-width: 720px;
}

.ayy-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.ayy-modal-close:hover {
    color: #1e293b;
}

.ayy-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
    padding-right: 30px;
}

.ayy-modal-content .ayy-form-row {
    margin-bottom: 16px;
}

.ayy-modal-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #334155;
}

.ayy-modal-content select,
.ayy-modal-content textarea,
.ayy-modal-content input[type="text"],
.ayy-modal-content input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

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

.ayy-radio-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    padding: 8px 0;
    cursor: pointer;
}

.ayy-radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.ayy-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== REVIEWER LIST & REVIEW SUMMARY ===== */
.ayy-reviewer-list h4,
.ayy-review-summary h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}

.ayy-table-sm {
    font-size: 13px;
}

.ayy-table-sm th,
.ayy-table-sm td {
    padding: 8px 10px;
}

.ayy-muted {
    color: #94a3b8;
    font-style: italic;
}

.ayy-review-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.ayy-review-card h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #334155;
}

.ayy-scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.ayy-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
}

.ayy-score-label {
    color: #64748b;
}

.ayy-score-value {
    font-weight: 700;
    color: #1e293b;
}

.ayy-review-comment {
    background: #fff;
    border-left: 3px solid #2563eb;
    padding: 10px 14px;
    margin-top: 8px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
}

.ayy-review-comment-editor {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.ayy-review-comment strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #64748b;
}

/* ===== TABS ===== */
.ayy-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.ayy-tab {
    padding: 10px 16px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ayy-tab:hover {
    color: #1e293b;
}

.ayy-tab-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.ayy-tab-count {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.ayy-tab-active .ayy-tab-count {
    background: #dbeafe;
    color: #2563eb;
}

.ayy-table-responsive {
    overflow-x: auto;
}

.ayy-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ayy-wrap {
        padding: 16px 12px;
    }

    .ayy-form-row {
        grid-template-columns: 1fr;
    }

    .ayy-author-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ayy-submission-form {
        padding: 20px;
    }

    .ayy-editor-tabs {
        flex-wrap: wrap;
    }

    .ayy-editor-tabs .ayy-tab-link {
        padding: 8px 14px;
        font-size: 13px;
    }

    .ayy-table {
        font-size: 13px;
    }

    .ayy-table th,
    .ayy-table td {
        padding: 8px 10px;
    }

    .ayy-review-card-header {
        flex-direction: column;
    }

    .ayy-reviewer-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ayy-author-stats {
        grid-template-columns: 1fr;
    }

    .ayy-rating-scale label {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

/* === Faz 1.6 — Yeni stiller === */

/* Outline butonlar */
.ayy-btn-outline {
    background: transparent;
    border: 1px solid #4a5568;
    color: #4a5568;
}
.ayy-btn-outline:hover {
    background: #f7fafc;
    border-color: #2d3748;
    color: #2d3748;
}
.ayy-btn-outline-success {
    background: transparent;
    border: 1px solid #38a169;
    color: #38a169;
}
.ayy-btn-outline-success:hover {
    background: #f0fff4;
    border-color: #2f855a;
}
.ayy-btn-outline-warning {
    background: transparent;
    border: 1px solid #d69e2e;
    color: #d69e2e;
}
.ayy-btn-outline-warning:hover {
    background: #fffff0;
    border-color: #b7791f;
}

/* Gönderim detay bölümleri */
.ayy-submission-details {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 4px;
}
.ayy-submission-details::-webkit-scrollbar{width:5px}
.ayy-submission-details::-webkit-scrollbar-thumb{background:#d6d3d1;border-radius:3px}
.ayy-detail-section {
    padding: 10px 0;
    border-bottom: 1px solid rgba(26,22,20,.06);
}
.ayy-detail-section:last-child {
    border-bottom: none;
}
.ayy-detail-section h5 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
}
.ayy-detail-content {
    padding: 8px 12px;
    background: rgba(26,22,20,.02);
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #4A443E;
}
.ayy-muted {
    color: #A09888;
    font-size: 11.5px;
    font-style: italic;
    margin: 3px 0;
}

/* İntihal form disabled input */
.ayy-input-disabled {
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    border-radius: 4px;
    color: #718096;
}

/* Metabox grid düzeni (WP admin) */
.ayy-metabox-grid .ayy-field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.ayy-metabox-grid .ayy-field {
    flex: 1;
}
.ayy-metabox-grid label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}
.ayy-metabox-compact p {
    margin: 6px 0;
}

/* === Faz 2 — Yeni stiller === */

/* Küçük butonlar */
.ayy-btn-xs {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
}
.ayy-btn-info {
    background: #3182ce;
    color: #fff;
    border: none;
}
.ayy-btn-info:hover {
    background: #2b6cb0;
}

/* Rol seçim kartları */
/* Checkbox grid (kayıt formu konu alanları) */
/* → Registration wrapper içine taşındı */

/* Hakem havuzu kartlar */
.ayy-reviewer-pool {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.ayy-pool-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    border-left: 4px solid #cbd5e0;
}
.ayy-pool-card.ayy-perf-good {
    border-left-color: #38a169;
}
.ayy-pool-card.ayy-perf-ok {
    border-left-color: #d69e2e;
}
.ayy-pool-card.ayy-perf-low {
    border-left-color: #e53e3e;
}
.ayy-pool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.ayy-pool-card-meta {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
}
.ayy-pool-card-meta span {
    display: block;
    margin-bottom: 2px;
}
.ayy-pool-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 8px;
}
.ayy-pool-card-stats span {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Performans kartları */
.ayy-perf-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 16px 0;
}
.ayy-perf-card {
    text-align: center;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
}
.ayy-perf-num {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
}
.ayy-perf-label {
    font-size: 11px;
    color: #718096;
}

/* Galley proof bilgi */
.ayy-galley-info {
    padding: 12px;
    background: #ebf8ff;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Kayıt formu */
.ayy-registration-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

.ayy-registration-wrapper h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.ayy-registration-wrapper > .ayy-notice-info {
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
    color: #7A7268;
    font-size: 0.9375rem;
    padding: 0 0 24px;
    margin: 0;
}

/* Fieldsets */
.ayy-registration-wrapper .ayy-fieldset,
.ayy-registration-wrapper fieldset.ayy-fieldset,
fieldset.ayy-fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 32px !important;
    min-inline-size: auto;
}

.ayy-registration-wrapper .ayy-fieldset legend,
.ayy-registration-wrapper fieldset.ayy-fieldset legend,
fieldset.ayy-fieldset legend {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #A09888;
    padding: 0 0 10px 0 !important;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(26, 22, 20, 0.1);
    width: 100%;
    float: none;
}

/* Form Rows */
.ayy-registration-wrapper .ayy-form-row {
    margin-bottom: 18px;
    display: block !important;
    grid-template-columns: none !important;
}

.ayy-registration-wrapper .ayy-form-row > label {
    display: block !important;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #4A443E;
    margin-bottom: 6px !important;
}

.ayy-registration-wrapper .ayy-form-row input[type="text"],
.ayy-registration-wrapper .ayy-form-row input[type="email"],
.ayy-registration-wrapper .ayy-form-row input[type="password"],
.ayy-registration-wrapper .ayy-form-row input[type="url"],
.ayy-registration-wrapper .ayy-form-row textarea,
.ayy-registration-wrapper .ayy-form-row select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    font-size: 0.9375rem !important;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: #1A1614;
    background: #FAF8F5 !important;
    border: 1px solid rgba(26, 22, 20, 0.18) !important;
    border-radius: 6px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box !important;
    display: block;
}

.ayy-registration-wrapper .ayy-form-row input:focus,
.ayy-registration-wrapper .ayy-form-row textarea:focus,
.ayy-registration-wrapper .ayy-form-row select:focus {
    border-color: #8B2635;
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.08);
}

.ayy-registration-wrapper .ayy-form-row textarea {
    min-height: 80px;
    resize: vertical;
}

.ayy-registration-wrapper .ayy-help {
    font-size: 0.75rem;
    color: #A09888;
    margin-top: 4px;
}

/* Half rows (Ad/Soyad, Şifre/Şifre Tekrar) */
.ayy-registration-wrapper .ayy-form-row-half {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.ayy-registration-wrapper .ayy-form-row-half > div {
    min-width: 0;
}

/* Role cards */
.ayy-registration-wrapper .ayy-role-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}

.ayy-registration-wrapper .ayy-role-card {
    cursor: pointer;
    position: relative;
}

.ayy-registration-wrapper .ayy-role-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none;
}

.ayy-registration-wrapper .ayy-role-card-content {
    border: 2px solid rgba(26, 22, 20, 0.1) !important;
    border-radius: 8px !important;
    padding: 20px 16px !important;
    text-align: center;
    transition: all 0.2s;
    background: #FFFFFF !important;
    cursor: pointer;
}

.ayy-registration-wrapper .ayy-role-card-content:hover {
    border-color: rgba(139, 38, 53, 0.3);
    background: rgba(139, 38, 53, 0.03);
}

.ayy-registration-wrapper .ayy-role-card input:checked + .ayy-role-card-content {
    border-color: #8B2635;
    background: rgba(139, 38, 53, 0.06);
    box-shadow: 0 0 0 1px #8B2635;
}

.ayy-registration-wrapper .ayy-role-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.ayy-registration-wrapper .ayy-role-card-content strong {
    display: block;
    font-size: 0.9375rem;
    color: #1A1614;
}

.ayy-registration-wrapper .ayy-role-card-content p {
    font-size: 0.75rem;
    color: #7A7268;
    margin: 4px 0 0;
}

/* Checkbox grid */
.ayy-registration-wrapper .ayy-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.ayy-registration-wrapper .ayy-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #4A443E;
    cursor: pointer;
}

.ayy-registration-wrapper .ayy-checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8B2635;
}

/* KVKK Checkbox */
.ayy-registration-wrapper .ayy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #4A443E;
    cursor: pointer;
    line-height: 1.5;
}

.ayy-registration-wrapper .ayy-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #8B2635;
    flex-shrink: 0;
}

.ayy-registration-wrapper .ayy-checkbox-label a {
    color: #8B2635;
    font-weight: 600;
}

/* Submit button */
.ayy-registration-wrapper .ayy-form-actions {
    margin-top: 28px;
    text-align: center;
}

.ayy-registration-wrapper .ayy-btn-lg,
.ayy-registration-wrapper .ayy-form-actions .ayy-btn {
    width: 100% !important;
    padding: 14px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: #FAF8F5 !important;
    background: #8B2635 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.ayy-registration-wrapper .ayy-btn-lg:hover,
.ayy-registration-wrapper .ayy-form-actions .ayy-btn:hover {
    background: #6E1E2A !important;
}

/* Login link */
.ayy-registration-wrapper .ayy-text-center {
    text-align: center;
    font-size: 0.8125rem;
    color: #A09888;
}

.ayy-registration-wrapper .ayy-text-center a {
    color: #8B2635;
    font-weight: 600;
}

/* Required asterisk */
.ayy-registration-wrapper .ayy-required::after {
    content: ' *';
    color: #8B2635;
}

/* Responsive */
@media (max-width: 640px) {
    .ayy-registration-wrapper .ayy-form-row-half {
        grid-template-columns: 1fr !important;
    }
    .ayy-registration-wrapper .ayy-role-cards {
        grid-template-columns: 1fr !important;
    }
}

/* Büyük select */
.ayy-select-lg {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

/* ===================================================
   FAZ 2 — Profil Sayfaları (Public)
   =================================================== */
.ayy-profile-wrapper { max-width: 780px; margin: 0 auto; }
.ayy-public-profile { max-width: 780px; margin: 0 auto; }

.ayy-profile-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E2E8F0;
}
.ayy-profile-avatar img { border-radius: 50%; }
.ayy-profile-info h2 { margin: 0 0 6px; font-size: 24px; }
.ayy-profile-affiliation { color: #64748B; font-size: 15px; margin: 4px 0; }

.ayy-profile-section { margin-bottom: 28px; }
.ayy-profile-section h3 {
    font-size: 16px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.ayy-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ayy-tag {
    display: inline-block;
    background: #EBF5FB;
    color: #1E40AF;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
}

.ayy-publication-list .ayy-pub-item {
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
}
.ayy-publication-list .ayy-pub-item:last-child { border-bottom: none; }
.ayy-publication-list .ayy-pub-item a { text-decoration: none; color: #1E293B; }
.ayy-publication-list .ayy-pub-item a:hover { color: #2563EB; }

/* Profil formu */
/* Profil formu (kayıt formu hariç — o .ayy-registration-wrapper'da ayrıca stillendirildi) */
.ayy-profile-wrapper .ayy-form-row { margin-bottom: 16px; }
.ayy-profile-wrapper .ayy-form-row label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.ayy-profile-wrapper .ayy-form-row input,
.ayy-profile-wrapper .ayy-form-row textarea,
.ayy-profile-wrapper .ayy-form-row select {
    width: 100%; max-width: 500px; padding: 8px 12px;
    border: 1px solid #CBD5E1; border-radius: 6px; font-size: 14px;
}
.ayy-profile-wrapper .ayy-form-row textarea { min-height: 80px; }
.ayy-input-disabled { background: #F1F5F9; color: #64748B; cursor: not-allowed; }
.ayy-help { font-size: 12px; color: #94A3B8; margin-top: 4px; }
.ayy-form-actions { margin-top: 20px; }

/* ===================================================
   FAZ 2 — Galley Proof (Yazar görünümü)
   =================================================== */
.ayy-galley-author-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.ayy-galley-author-card h4 { margin: 0 0 10px; color: #1E293B; }
.ayy-galley-file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #EBF5FB;
    border-radius: 6px;
    text-decoration: none;
    color: #1E40AF;
    font-weight: 600;
    margin: 8px 0;
}
.ayy-galley-file-link:hover { background: #DBEAFE; }
.ayy-galley-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.ayy-galley-actions textarea {
    width: 100%; margin-top: 8px; padding: 8px 12px;
    border: 1px solid #CBD5E1; border-radius: 6px;
}
.ayy-galley-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}
.ayy-galley-status-beklemede { background: #FEF3C7; color: #92400E; }
.ayy-galley-status-onaylandi { background: #D1FAE5; color: #065F46; }
.ayy-galley-status-duzeltme_istendi { background: #FEE2E2; color: #991B1B; }

@media (max-width: 640px) {
    .ayy-profile-header { flex-direction: column; align-items: center; text-align: center; }
}

/* ===================================================
   FAZ 3 — Erişim Kontrolü & Makale İstatistikleri
   =================================================== */
.ayy-access-restricted { margin: 20px 0; }
.ayy-access-abstract { opacity: 0.6; }
.ayy-access-wall {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #F8FAFC 30%);
    margin-top: -60px;
    padding-top: 80px;
    border-radius: 12px;
}
.ayy-lock-icon { font-size: 48px; margin-bottom: 12px; }
.ayy-access-wall h3 { color: #1E293B; margin-bottom: 8px; }
.ayy-access-wall p { color: #64748B; }

.ayy-access-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.ayy-access-oa { background: #D1FAE5; color: #065F46; }
.ayy-access-embargo { background: #FEF3C7; color: #92400E; }
.ayy-access-reg { background: #DBEAFE; color: #1E40AF; }
.ayy-access-sub { background: #FEE2E2; color: #991B1B; }

.ayy-stats-card {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    background: #F8FAFC;
    border-radius: 8px;
    margin: 12px 0;
}
.ayy-stat-item { font-size: 14px; color: #475569; }
.ayy-inline-stats { font-size: 13px; color: #94A3B8; }

/* ═══════ Ortak Stepper Bileşeni (v2.9.27) ═══════ */
.ayy-stepper{margin:8px 0 4px}
.ayy-stepper-track{display:flex;align-items:flex-start;gap:0;padding:0 4px}
.ayy-stepper-step{display:flex;flex-direction:column;align-items:center;flex:0 0 auto;min-width:48px;position:relative;z-index:1}
.ayy-stepper-dot{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;border:2.5px solid #d6d3d1;background:#faf8f5;color:#a8a29e;transition:all .25s}
.ayy-stepper-step.done .ayy-stepper-dot{background:#166534;border-color:#166534;color:#fff;font-size:.6rem}
.ayy-stepper-step.active .ayy-stepper-dot{background:#fff;border-color:#8B2635;color:#8B2635;box-shadow:0 0 0 4px rgba(139,38,53,.12);font-size:.75rem;transform:scale(1.1)}
.ayy-stepper-label{font-size:.55rem;font-weight:600;color:#a8a29e;margin-top:3px;text-align:center;line-height:1.1;white-space:nowrap}
.ayy-stepper-step.done .ayy-stepper-label{color:#166534}
.ayy-stepper-step.active .ayy-stepper-label{color:#8B2635;font-weight:700}
.ayy-stepper-line{flex:1;height:3px;background:#e7e5e4;margin-top:13px;min-width:12px;border-radius:2px}
.ayy-stepper-line.done{background:#166534}

/* Açıklama kutusu */
.ayy-stepper-info{margin-top:8px;padding:7px 11px;border-radius:7px;border-left:4px solid #999;display:flex;flex-direction:column;gap:1px}
.ayy-stepper-info-title{font-size:.72rem;font-weight:700;line-height:1.3}
.ayy-stepper-info-desc{font-size:.66rem;color:#4A443E;line-height:1.4}

/* Acil vurgu (urgency=2 için) */
.ayy-stepper-urgent .ayy-stepper-step.active .ayy-stepper-dot{animation:ayy-pulse 1.5s infinite}
@keyframes ayy-pulse{0%,100%{box-shadow:0 0 0 4px rgba(139,38,53,.12)}50%{box-shadow:0 0 0 8px rgba(139,38,53,.06)}}

@media(max-width:480px){
    .ayy-stepper-step{min-width:36px}
    .ayy-stepper-dot{width:24px;height:24px;font-size:.6rem}
    .ayy-stepper-step.active .ayy-stepper-dot{font-size:.65rem}
    .ayy-stepper-label{font-size:.5rem}
    .ayy-stepper-line{margin-top:11px;min-width:8px}
}
