/* ============================================================================
 * Paragraf Takip — Hızlı Okuma Modülü
 * Frontend Stilleri
 * ========================================================================== */

.pgp-speed-app {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.pgp-speed-app * { box-sizing: border-box; }

/* ----- Başlıklar ----- */
.pgp-speed-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a4a7c;
    margin: 0 0 12px;
    text-align: center;
}

.pgp-speed-subtitle {
    color: #666;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 24px;
    font-size: 15px;
}

.pgp-speed-hero {
    background: linear-gradient(135deg, #5b8def 0%, #8b5cf6 100%);
    padding: 32px 24px;
    border-radius: 16px;
    color: #fff;
    margin-bottom: 24px;
}
.pgp-speed-hero .pgp-speed-title { color: #fff; }
.pgp-speed-hero .pgp-speed-subtitle { color: rgba(255,255,255,0.92); }

/* ----- Bilgi/Hata Mesajları ----- */
.pgp-speed-notice {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    color: #6b4000;
}

.pgp-speed-notice-info {
    background: #e8f4f8;
    border-left: 4px solid #5b8def;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    color: #1a4a7c;
}

.pgp-speed-error {
    background: #fee;
    border-left: 4px solid #dc2626;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    color: #991b1b;
}

.pgp-speed-loading,
.pgp-speed-profile-loading,
.pgp-speed-exercises-loading,
.pgp-speed-mini-loading {
    text-align: center;
    padding: 24px;
    color: #888;
    font-style: italic;
}

.pgp-speed-muted { color: #888; font-size: 14px; }

.pgp-speed-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

/* ----- Profil Kartı ----- */
.pgp-speed-profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.pgp-speed-pf-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.pgp-speed-pf-stat {
    text-align: center;
    padding: 12px 8px;
}

.pgp-speed-pf-num {
    font-size: 28px;
    font-weight: 700;
    color: #5b8def;
    line-height: 1.1;
}

.pgp-speed-pf-lbl {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.pgp-speed-pf-grade {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

/* ----- Egzersiz Kartları ----- */
.pgp-speed-exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.pgp-speed-ex-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pgp-speed-ex-card:hover:not(.locked) {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(91, 141, 239, 0.18);
    border-color: #5b8def;
}

.pgp-speed-ex-card.locked {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.65;
    filter: grayscale(0.4);
}

.pgp-speed-ex-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.pgp-speed-ex-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a4a7c;
    margin-bottom: 6px;
}

.pgp-speed-ex-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    min-height: 36px;
    margin-bottom: 12px;
}

.pgp-speed-ex-lock {
    color: #888;
    font-size: 13px;
    font-style: italic;
    margin-top: 8px;
}

.pgp-speed-ex-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.pgp-speed-ex-level,
.pgp-speed-ex-progress,
.pgp-speed-ex-best,
.pgp-speed-ex-new {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #f0f4ff;
    color: #5b8def;
    font-weight: 500;
}

.pgp-speed-ex-best {
    background: #fef3c7;
    color: #b45309;
}

.pgp-speed-ex-new {
    background: #d1fae5;
    color: #065f46;
}

/* ----- Liderlik Mini ----- */
.pgp-speed-leaderboard-mini {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.pgp-speed-leaderboard-mini h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #1a4a7c;
}

.pgp-speed-mini-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.pgp-speed-mini-row:last-child { border-bottom: none; }

.pgp-speed-mini-rank {
    width: 36px;
    font-weight: 700;
    color: #888;
    text-align: center;
}

.pgp-speed-mini-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.pgp-speed-mini-score {
    font-weight: 700;
    color: #5b8def;
}

.pgp-speed-mini-userrank {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dashed #ddd;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.pgp-speed-mini-more {
    margin-top: 14px;
    text-align: center;
}

.pgp-speed-mini-more a {
    color: #5b8def;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.pgp-speed-mini-more a:hover { text-decoration: underline; }

/* ----- Liderlik Sayfası ----- */
.pgp-speed-lb-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.pgp-speed-lb-tab-group {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.pgp-speed-lb-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.15s;
    font-weight: 500;
}

.pgp-speed-lb-tab:hover {
    background: rgba(91, 141, 239, 0.08);
    color: #5b8def;
}

.pgp-speed-lb-tab.active {
    background: #5b8def;
    color: #fff;
}

.pgp-speed-lb-tbl {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pgp-speed-lb-tbl thead {
    background: #5b8def;
    color: #fff;
}

.pgp-speed-lb-tbl th,
.pgp-speed-lb-tbl td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.pgp-speed-lb-tbl th { font-weight: 600; font-size: 14px; }

.pgp-speed-lb-tbl td.rank { width: 100px; }
.pgp-speed-lb-tbl td.score {
    text-align: right;
    font-weight: 700;
    color: #5b8def;
    width: 100px;
}

.pgp-speed-lb-tbl tr.is-me {
    background: #fff8e1;
    font-weight: 600;
}

.pgp-speed-lb-tbl tr.is-me td.score { color: #b45309; }

.pgp-speed-userrank-note {
    margin-top: 16px;
    text-align: center;
    color: #666;
}
.pgp-speed-userrank-note strong { color: #5b8def; }

/* ----- Egzersiz Placeholder (Hafta 1) ----- */
.pgp-speed-exercise-placeholder {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pgp-speed-exercise-placeholder h2 {
    color: #1a4a7c;
    margin-top: 0;
}

.pgp-speed-debug {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    font-size: 13px;
}

.pgp-speed-debug h3 {
    font-size: 14px;
    color: #555;
    margin: 16px 0 8px;
}

.pgp-speed-debug pre {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 12px;
    border: 1px solid #e0e0e0;
}

.pgp-speed-debug-q {
    background: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
}

.pgp-speed-button {
    display: inline-block;
    padding: 10px 20px;
    background: #5b8def;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s;
}

.pgp-speed-button:hover {
    background: #4a7adf;
    color: #fff;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
    .pgp-speed-title { font-size: 22px; }
    .pgp-speed-hero { padding: 24px 16px; }
    .pgp-speed-pf-num { font-size: 22px; }
    .pgp-speed-ex-icon { font-size: 32px; }
    .pgp-speed-exercises-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .pgp-speed-lb-tbl th, .pgp-speed-lb-tbl td { padding: 10px 8px; font-size: 13px; }
}

/* ============================================================================
 * EGZERSİZ OYNATICILAR (Hafta 2)
 * ========================================================================== */

/* ----- Hazırlık Ekranı ----- */
.pgp-ex-prep {
    background: #fff;
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 24px auto;
}

.pgp-ex-prep-title {
    color: #1a4a7c;
    font-size: 26px;
    margin: 0 0 12px;
}

.pgp-ex-prep-desc {
    color: #555;
    line-height: 1.5;
    margin: 0 0 20px;
}

.pgp-ex-prep-params {
    background: #f0f4ff;
    border-radius: 8px;
    padding: 14px 18px;
    color: #1a4a7c;
    margin-bottom: 24px;
    line-height: 1.5;
    font-size: 15px;
}

.pgp-ex-prep-mode-q {
    color: #888;
    margin: 24px 0 12px;
    font-size: 14px;
}

.pgp-ex-prep-mode-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 10px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

.pgp-ex-prep-mode-btn:hover {
    border-color: #5b8def;
    background: #f0f4ff;
}

.pgp-ex-prep-mode-btn.primary {
    border-color: #5b8def;
    background: #f0f4ff;
}

.pgp-ex-prep-mode-icon {
    font-size: 28px;
    color: #5b8def;
}

.pgp-ex-prep-mode-label {
    font-weight: 700;
    color: #1a4a7c;
    display: block;
    margin-bottom: 2px;
}

.pgp-ex-prep-mode-sub {
    font-size: 13px;
    color: #888;
}

/* ----- Geri Sayım ----- */
.pgp-ex-countdown {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Fullscreen değilse merkezde gözüksün (sayfa içi modda) */
.pgp-speed-exercise:not(:fullscreen) .pgp-ex-countdown {
    position: relative;
    inset: auto;
    min-height: 400px;
    border-radius: 16px;
    background: linear-gradient(135deg, #5b8def 0%, #8b5cf6 100%);
}

.pgp-ex-countdown-num {
    font-size: 180px;
    font-weight: 700;
    color: #5b8def;
    line-height: 1;
}

.pgp-speed-exercise:not(:fullscreen) .pgp-ex-countdown-num {
    color: #fff;
}

.pgp-ex-countdown-num.pulse {
    animation: pgp-pulse 1s ease-in-out;
}

.pgp-ex-countdown-num.go {
    font-size: 96px;
    color: #16a34a;
    animation: pgp-go 0.7s ease-out;
}

.pgp-speed-exercise:not(:fullscreen) .pgp-ex-countdown-num.go {
    color: #fff;
}

@keyframes pgp-pulse {
    0% { transform: scale(0.7); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pgp-go {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ----- Paragraf Hızlı Okuma ----- */
.pgp-ex-paragraph {
    max-width: 800px;
    margin: 24px auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Fullscreen — beyaz arka plan, max okuma alanı */
.pgp-speed-exercise:fullscreen {
    background: #f5f7fa;
    overflow: auto;
    padding: 40px;
}

.pgp-speed-exercise:fullscreen .pgp-ex-paragraph {
    margin: 24px auto;
    max-width: 900px;
}

.pgp-ex-paragraph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.pgp-ex-paragraph-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a4a7c;
}

.pgp-ex-paragraph-timer {
    font-size: 22px;
    font-weight: 700;
    color: #5b8def;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    background: #f0f4ff;
    padding: 6px 14px;
    border-radius: 8px;
}

.pgp-ex-paragraph-body {
    font-size: 18px;
    line-height: 1.8;
    color: #222;
    text-align: justify;
    margin-bottom: 24px;
    padding: 16px 4px;
}

.pgp-ex-paragraph-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.pgp-ex-paragraph-info {
    color: #888;
    font-size: 14px;
}

/* ----- Geçiş Ekranı ----- */
.pgp-ex-transition {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pgp-ex-transition-stat {
    margin-bottom: 20px;
}

.pgp-ex-transition-num {
    font-size: 48px;
    font-weight: 700;
    color: #5b8def;
    line-height: 1;
}

.pgp-ex-transition-lbl {
    color: #888;
    font-size: 14px;
    margin-top: 4px;
}

.pgp-ex-transition-msg {
    color: #555;
    line-height: 1.6;
    margin: 20px 0 24px;
}

/* ----- Anlama Soruları ----- */
.pgp-ex-quiz {
    max-width: 700px;
    margin: 24px auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pgp-ex-quiz-progress {
    color: #5b8def;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.pgp-ex-quiz-q {
    font-size: 18px;
    color: #1a4a7c;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.pgp-ex-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pgp-ex-quiz-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    width: 100%;
    font-size: 15px;
    /* Tema (Kadence) tum <button>'lara beyaz yazi rengi verir; sik metni beyaz
       zemin uzerinde gorunmezdi (v1.1.2 asil bug). Varsayilan koyu rengi zorla.
       .correct/.wrong daha yuksek spesifiklikte oldugu icin tiklayinca yine yesil/kirmizi. */
    color: #1f2d3d !important;
}

.pgp-ex-quiz-opt:hover:not(:disabled) {
    border-color: #5b8def;
    background: #f0f4ff;
}

.pgp-ex-quiz-opt.correct {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534 !important; /* taban renk !important (tema) — burada da gerekli */
}

.pgp-ex-quiz-opt.wrong {
    border-color: #dc2626;
    background: #fee2e2;
    color: #991b1b !important;
}

/* Sunucu puanlı sorularda yalnızca seçim vurgulanır (doğru/yanlış istemciye gelmez) */
.pgp-ex-quiz-opt.picked,
.pgp-ex-tachisto-choice.picked {
    border-color: #5b8def;
    background: #e8efff;
    color: #1e3a8a !important;
}

.pgp-ex-quiz-opt:disabled {
    cursor: default;
    /* Tema (Kadence vb.) disabled butonlara opacity:0.5 / grayscale uygular.
       Sik isaretlenince siklar silikleserdi (v1.1.1 bug). Tema disabled stilini eziyoruz. */
    opacity: 1 !important;
    filter: none !important;
}

.pgp-ex-quiz-opt-letter {
    background: #5b8def;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.pgp-ex-quiz-opt.correct .pgp-ex-quiz-opt-letter { background: #16a34a; }
.pgp-ex-quiz-opt.wrong   .pgp-ex-quiz-opt-letter { background: #dc2626; }

/* ----- Tachistoscope ----- */
.pgp-ex-tachisto {
    max-width: 700px;
    margin: 24px auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
}

.pgp-ex-tachisto-progress {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.pgp-ex-tachisto-stage {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    background: #f8fafc;
    border-radius: 12px;
}

.pgp-ex-tachisto-word {
    font-size: 64px;
    font-weight: 700;
    color: #1a4a7c;
    letter-spacing: 2px;
}

.pgp-ex-tachisto-q {
    font-size: 20px;
    color: #1a4a7c;
    font-weight: 600;
    margin: 20px 0 16px;
}

.pgp-ex-tachisto-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.pgp-ex-tachisto-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 16px;
    font-weight: 500;
    /* Quiz siklari ile ayni: tema beyaz buton yazisini ez, secenek metni gorunsun. */
    color: #1f2d3d !important;
}

.pgp-ex-tachisto-choice:hover:not(:disabled) {
    border-color: #5b8def;
    background: #f0f4ff;
}

.pgp-ex-tachisto-choice.correct {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534 !important;
}

.pgp-ex-tachisto-choice.wrong {
    border-color: #dc2626;
    background: #fee2e2;
    color: #991b1b !important;
}

.pgp-ex-tachisto-choice:disabled {
    cursor: default;
    /* Quiz siklari ile ayni: tema disabled opacity/grayscale'ini ez (silik fix). */
    opacity: 1 !important;
    filter: none !important;
}

.pgp-ex-tachisto-letter {
    background: #5b8def;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.pgp-ex-tachisto-choice.correct .pgp-ex-tachisto-letter { background: #16a34a; }
.pgp-ex-tachisto-choice.wrong   .pgp-ex-tachisto-letter { background: #dc2626; }

/* ----- Kayar Metin (Scrolling) ----- */
.pgp-ex-scrolling {
    max-width: 800px;
    margin: 24px auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pgp-ex-scrolling-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.pgp-ex-scrolling-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a4a7c;
}

.pgp-ex-scrolling-meta {
    font-size: 14px;
    color: #5b8def;
    font-weight: 500;
}

.pgp-ex-scrolling-window {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 50%, #fff 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.pgp-ex-scrolling-text {
    font-size: 22px;
    line-height: 2;
    color: #222;
    padding: 0 24px;
    position: absolute;
    width: calc(100% - 48px);
    top: 100%;
    animation-name: pgp-scroll-up;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    text-align: justify;
}

@keyframes pgp-scroll-up {
    from { transform: translateY(0); }
    to   { transform: translateY(calc(-100% - 400px)); }
}

.pgp-ex-scrolling-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* ----- Sonuç Ekranı ----- */
.pgp-ex-result {
    max-width: 600px;
    margin: 24px auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-align: center;
}

.pgp-ex-result.success {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 30%);
}

.pgp-ex-result.fail {
    background: linear-gradient(180deg, #fef2f2 0%, #fff 30%);
}

.pgp-ex-result-header {
    margin-bottom: 24px;
}

.pgp-ex-result-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 8px;
}

.pgp-ex-result-status {
    font-size: 24px;
    font-weight: 700;
    color: #1a4a7c;
}

.pgp-ex-result-subtitle {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

.pgp-ex-result-score {
    background: #f0f4ff;
    border-radius: 16px;
    padding: 24px 16px;
    margin: 20px auto;
    max-width: 280px;
}

.pgp-ex-result-score-num {
    font-size: 56px;
    font-weight: 700;
    color: #5b8def;
    line-height: 1;
}

.pgp-ex-result-score-lbl {
    color: #888;
    font-size: 14px;
    margin-top: 4px;
}

.pgp-ex-result-breakdown {
    text-align: left;
    margin: 24px auto;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.pgp-ex-result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.pgp-ex-result-row:last-child {
    border-bottom: none;
}

.pgp-ex-result-row.total {
    background: #5b8def;
    color: #fff;
    font-weight: 700;
}

.pgp-ex-result-unlock {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    border: 2px solid #f59e0b;
}

.pgp-ex-result-unlock-icon {
    font-size: 40px;
}

.pgp-ex-result-unlock-text {
    color: #92400e;
    line-height: 1.4;
}

.pgp-ex-result-progress {
    background: #e0e7ff;
    border-radius: 10px;
    padding: 14px 18px;
    color: #3730a3;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

.pgp-ex-result-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.pgp-speed-button.secondary {
    background: #f0f4ff;
    color: #5b8def;
    border: 2px solid #5b8def;
}

.pgp-speed-button.secondary:hover {
    background: #5b8def;
    color: #fff;
}

/* ----- Hata Ekranı ----- */
.pgp-ex-error {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 36px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pgp-ex-error-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* ----- Mobile ----- */
@media (max-width: 600px) {
    .pgp-ex-prep { padding: 24px 16px; }
    .pgp-ex-prep-title { font-size: 22px; }
    .pgp-ex-paragraph { padding: 20px 16px; }
    .pgp-ex-paragraph-body { font-size: 16px; line-height: 1.7; }
    .pgp-ex-paragraph-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pgp-ex-tachisto { padding: 20px 16px; }
    .pgp-ex-tachisto-word { font-size: 48px; }
    .pgp-ex-tachisto-choices { grid-template-columns: 1fr; }
    .pgp-ex-result-icon { font-size: 48px; }
    .pgp-ex-result-score-num { font-size: 42px; }
    .pgp-ex-countdown-num { font-size: 120px; }
    .pgp-ex-scrolling-window { height: 300px; }
    .pgp-ex-scrolling-text { font-size: 18px; }
}

/* ============================================================================
 * HAFTA 3 — Skim Okuma + Hatirlama Testi
 * ========================================================================== */

/* ----- Skim Okuma: gorev ipucu seridi ----- */
.pgp-ex-skim-task {
    margin: 0 0 14px;
    padding: 10px 14px;
    background: #eef4ff;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    color: #1a4a7c;
    font-weight: 600;
    font-size: 14px;
}

/* ----- Hatirlama Testi ----- */
.pgp-ex-memory {
    max-width: 720px;
    margin: 24px auto;
}
.pgp-ex-memory-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.pgp-ex-memory-instr {
    font-size: 17px;
    font-weight: 700;
    color: #1a4a7c;
}
.pgp-ex-memory-timer {
    font-size: 18px;
    font-weight: 700;
    color: #5b8def;
    font-variant-numeric: tabular-nums;
}
.pgp-ex-memory-bar {
    height: 8px;
    background: #e8eef7;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.pgp-ex-memory-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #5b8def, #3f6fd1);
    transition: width 0.1s linear;
}
.pgp-ex-word-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}
.pgp-ex-word-chip {
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #d8e2f0;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2d3d !important; /* tema beyaz buton yazisini ez (sik dersi) */
    text-align: center;
}
.pgp-ex-word-grid.select .pgp-ex-word-chip.selectable {
    cursor: pointer;
    transition: all 0.12s;
}
.pgp-ex-word-chip.selectable:hover {
    border-color: #5b8def;
    background: #f0f5ff;
}
.pgp-ex-word-grid.select .pgp-ex-word-chip.chosen {
    background: #5b8def;
    border-color: #3f6fd1;
    color: #fff !important; /* taban renk !important (tema) */
}
.pgp-ex-memory-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.pgp-ex-memory-count {
    font-size: 15px;
    color: #5a6b7d;
    font-weight: 600;
}

/* ----- RSVP (Duzlem Kayma) ----- */
.pgp-ex-rsvp {
    max-width: 720px;
    margin: 24px auto;
    text-align: center;
}
.pgp-ex-rsvp-meta {
    font-size: 14px;
    color: #5a6b7d;
    margin-bottom: 16px;
}
.pgp-ex-rsvp-stage {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e0e7f0;
    border-radius: 12px;
    margin-bottom: 16px;
}
.pgp-ex-rsvp-guide {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ffd9d9;
    transform: translateX(-50%);
}
.pgp-ex-rsvp-word {
    position: relative;
    font-size: 42px;
    font-weight: 700;
    color: #1a2a3a;
    letter-spacing: 0.5px;
}
.pgp-ex-rsvp-progress {
    height: 6px;
    background: #e8eef7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}
.pgp-ex-rsvp-progress-fill {
    height: 100%;
    width: 0%;
    background: #5b8def;
    transition: width 0.08s linear;
}
.pgp-ex-rsvp-foot {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ----- Pacer (Goz Takipci) ----- */
.pgp-ex-pacer {
    max-width: 760px;
    margin: 24px auto;
}
.pgp-ex-pacer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.pgp-ex-pacer-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a4a7c;
}
.pgp-ex-pacer-meta {
    font-size: 14px;
    color: #5a6b7d;
}
.pgp-ex-pacer-body {
    font-size: 19px;
    line-height: 2.1;
    color: #2a3a4a;
    background: #fff;
    border: 2px solid #e0e7f0;
    border-radius: 12px;
    padding: 20px 24px;
    max-height: 52vh;
    overflow-y: auto;
    margin-bottom: 16px;
}
.pgp-ex-pacer-w {
    padding: 1px 2px;
    border-radius: 4px;
    transition: background 0.05s;
}
.pgp-ex-pacer-w.active {
    background: #ffe27a;
    color: #4a3500;
    font-weight: 600;
}
.pgp-ex-pacer-foot {
    text-align: center;
}

/* ----- Sesli Okuma Hizi: yonerge notu ----- */
.pgp-ex-voice-note {
    margin: 0 0 14px;
    padding: 10px 14px;
    background: #fff4e6;
    border: 1px solid #ffe0b3;
    border-radius: 8px;
    color: #8a5a00;
    font-weight: 600;
    font-size: 14px;
}

/* ----- Goz Kaslari Egzersizi (eye_warmup) ----- */
.pgp-ex-eye {
    max-width: 760px;
    margin: 24px auto;
}
.pgp-ex-eye-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.pgp-ex-eye-instr {
    font-size: 15px;
    font-weight: 600;
    color: #1a4a7c;
}
.pgp-ex-eye-timer {
    font-size: 18px;
    font-weight: 700;
    color: #5b8def;
    font-variant-numeric: tabular-nums;
}
.pgp-ex-eye-stage {
    position: relative;
    height: 360px;
    background: #0f1b2a;
    border-radius: 14px;
    overflow: hidden;
}
.pgp-ex-eye-dot {
    position: absolute;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffe27a, #ff8c42);
    box-shadow: 0 0 16px 4px rgba(255,180,80,0.6);
    left: 50%;
    top: 50%;
}
.pgp-ex-eye-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.pgp-ex-eye-pattern {
    font-size: 13px;
    color: #5a6b7d;
    font-weight: 600;
}

/* ----- Kelime Sutunu (word_column) ----- */
.pgp-ex-column {
    max-width: 480px;
    margin: 24px auto;
    text-align: center;
}
.pgp-ex-column-meta {
    font-size: 13px;
    color: #5a6b7d;
    margin-bottom: 12px;
}
.pgp-ex-column-window {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e0e7f0;
    border-radius: 12px;
    margin-bottom: 16px;
}
.pgp-ex-column-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #ffd9d9;
    transform: translateY(-50%);
    z-index: 2;
}
.pgp-ex-column-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    animation-name: pgp-ex-column-scroll;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
.pgp-ex-col-word {
    font-size: 22px;
    font-weight: 600;
    color: #1f2d3d;
    line-height: 2.0;
    text-align: center;
}
@keyframes pgp-ex-column-scroll {
    from { transform: translateY(320px); }
    to   { transform: translateY(-100%); }
}
.pgp-ex-column-foot {
    text-align: center;
}

/* ============================================================
   ÖDEV ATAMA (Assignments) — 3.6
   ============================================================ */
.pgp-asg { max-width: 760px; margin: 0 auto; }

.pgp-asg-note,
.pgp-asg-empty {
    padding: 14px 16px;
    border-radius: 10px;
    margin: 12px 0;
    font-size: 14px;
}
.pgp-asg-note {
    background: #fff7e6;
    border: 1px solid #ffe0b3;
    color: #8a5a00;
}
.pgp-asg-empty {
    background: #f2f6fb;
    border: 1px solid #dbe6f3;
    color: #5a6b7d;
    text-align: center;
}

.pgp-asg-form {
    background: #ffffff;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.pgp-asg-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.pgp-asg-row label {
    font-size: 13px;
    font-weight: 700;
    color: #1a4a7c;
}
.pgp-asg-row select,
.pgp-asg-row input,
.pgp-asg-row textarea {
    padding: 10px 12px;
    border: 2px solid #d8e2f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2d3d;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.pgp-asg-row select:focus,
.pgp-asg-row input:focus,
.pgp-asg-row textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.pgp-asg-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.pgp-asg-msg { font-size: 14px; font-weight: 600; color: #5a6b7d; }
.pgp-asg-msg.ok { color: #166534; }
.pgp-asg-msg.err { color: #b91c1c; }

.pgp-asg-subtitle {
    font-size: 18px;
    color: #1a4a7c;
    margin: 8px 0 12px;
}
.pgp-asg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pgp-asg-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    padding: 14px 16px;
}
.pgp-asg-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2d3d;
}
.pgp-asg-card-meta { font-size: 14px; color: #5a6b7d; margin-top: 4px; }
.pgp-asg-card-due { font-size: 13px; color: #5a6b7d; margin-top: 2px; }
.pgp-asg-card-notes {
    font-size: 13px;
    color: #42526b;
    margin-top: 6px;
    font-style: italic;
}
.pgp-asg-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 4px;
}
.pgp-asg-badge.active { background: #dcfce7; color: #166534; }
.pgp-asg-badge.off    { background: #f1f5f9; color: #64748b; }

.pgp-asg-card-actions { flex-shrink: 0; }
.pgp-asg-deact {
    padding: 8px 14px;
    border: 1px solid #fca5a5;
    background: #ffffff;
    color: #b91c1c;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}
.pgp-asg-deact:hover { background: #fef2f2; }
.pgp-asg-deact:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 600px) {
    .pgp-asg-card { flex-direction: column; }
    .pgp-asg-card-actions { align-self: flex-end; }
}

/* Öğrenci ödev "Başla" butonu (link olarak buton) */
.pgp-asg-start {
    display: inline-block;
    padding: 9px 16px;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
}
.pgp-asg-start:hover,
.pgp-asg-start:focus {
    background: #1d4ed8;
}

/* ============================================================
   VELI GÖRÜNÜMÜ (Parent) — 3.7
   ============================================================ */
.pgp-par-child {
    background: #ffffff;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.pgp-par-child-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.pgp-par-child-name { font-size: 18px; color: #1a4a7c; margin: 0; }
.pgp-par-child-last { font-size: 13px; color: #5a6b7d; }

.pgp-par-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.pgp-par-stat {
    background: #f5f8fc;
    border: 1px solid #e3ebf5;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}
.pgp-par-stat-val { font-size: 22px; font-weight: 800; color: #1f2d3d; line-height: 1.1; }
.pgp-par-stat-lbl { font-size: 11px; color: #5a6b7d; margin-top: 4px; font-weight: 600; }

.pgp-par-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pgp-par-table th,
.pgp-par-table td {
    padding: 9px 10px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    color: #1f2d3d;
}
.pgp-par-table th {
    font-size: 12px;
    font-weight: 700;
    color: #5a6b7d;
    background: #f7fafd;
}
.pgp-par-table td.num,
.pgp-par-table th.num { text-align: center; }
.pgp-par-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
    .pgp-par-stats { grid-template-columns: repeat(3, 1fr); }
    .pgp-par-table { font-size: 12.5px; }
    .pgp-par-table th, .pgp-par-table td { padding: 7px 6px; }
}

/* ============================================================
   KELIME OKUMA (vocabulary) — kelime kartı
   ============================================================ */
.pgp-ex-vocab { max-width: 620px; margin: 0 auto; text-align: center; }
.pgp-ex-vocab-progress {
    font-size: 13px;
    color: #5a6b7d;
    font-weight: 600;
    margin-bottom: 14px;
}
.pgp-ex-vocab-card {
    background: #ffffff;
    border: 2px solid #dbe6f3;
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(30, 60, 90, 0.06);
}
.pgp-ex-vocab-word {
    font-size: 34px;
    font-weight: 800;
    color: #1a4a7c;
    margin-bottom: 14px;
}
.pgp-ex-vocab-meaning {
    font-size: 19px;
    color: #1f2d3d;
    line-height: 1.5;
}
.pgp-ex-vocab-example {
    font-size: 16px;
    color: #42526b;
    font-style: italic;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}
@media (max-width: 600px) {
    .pgp-ex-vocab-word { font-size: 28px; }
    .pgp-ex-vocab-meaning { font-size: 17px; }
}

/* ============================================================
   SÖZLÜK ÇALIŞMASI — harf grid + mod seçimi
   ============================================================ */
.pgp-sozluk { max-width: 640px; margin: 0 auto; }
.pgp-sozluk-sub { text-align: center; color: #5a6b7d; margin-bottom: 18px; }

.pgp-sozluk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 12px;
}
.pgp-sozluk-letter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 8px;
    background: #ffffff;
    border: 2px solid #dbe6f3;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, transform .1s;
}
.pgp-sozluk-letter:hover { border-color: #2563eb; transform: translateY(-2px); }
.pgp-sozluk-letter-big { font-size: 30px; font-weight: 800; color: #1a4a7c; }
.pgp-sozluk-letter-n { font-size: 12px; color: #5a6b7d; font-weight: 600; }

.pgp-sozluk-modes {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.pgp-sozluk-backwrap { text-align: center; margin-top: 14px; }
.pgp-sozluk-back {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.pgp-sozluk-back:hover { text-decoration: underline; }
.pgp-sozluk-auto {
    margin-top: 12px;
    font-size: 12px;
    color: #5a6b7d;
    text-align: center;
}

/* Sözlük Çalışması — seviye seçici */
.pgp-sozluk-levels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}
.pgp-sozluk-level {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px;
    background: #ffffff;
    border: 2px solid #dbe6f3;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, transform .1s;
}
.pgp-sozluk-level:hover { border-color: #2563eb; transform: translateY(-2px); }
.pgp-sozluk-level-name { font-size: 17px; font-weight: 700; color: #1a4a7c; }
.pgp-sozluk-level-n { font-size: 12px; color: #5a6b7d; font-weight: 600; }

/* Sözlük — anlam-önce (aktif hatırlama) kartı */
.pgp-ex-vocab-ask {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.pgp-ex-vocab-q .pgp-ex-vocab-meaning { font-size: 22px; line-height: 1.5; }
.pgp-ex-vocab-hint { margin-top: 16px; font-size: 13px; color: #8a97a8; font-weight: 600; }
.pgp-ex-vocab-reveal .pgp-ex-vocab-word { color: #166534; }

/* Sözlük — çalışma yönü seçimi */
.pgp-sozluk-dir { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 0 auto; }
.pgp-sozluk-diropt {
    display: block; width: 100%; text-align: left; cursor: pointer;
    padding: 14px 16px; border-radius: 12px;
    border: 2px solid #d7dee8; background: #fff; color: #1f2d3d;
    font-size: 16px; font-weight: 700; line-height: 1.3;
    transition: border-color .15s, background .15s;
}
.pgp-sozluk-diropt small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: #8a97a8; }
.pgp-sozluk-diropt.sel { border-color: #2563eb; background: #eef4ff; }
.pgp-sozluk-diropt.sel small { color: #5b76b0; }
/* harf ipucu (anlamdan kelimeye yönü) */
.pgp-ex-vocab-mask {
    margin-top: 18px; font-size: 30px; font-weight: 800; letter-spacing: 5px;
    color: #2563eb; font-family: 'Courier New', Courier, monospace;
}

/* Öğretmen — sınıf gelişim görünümü */
.pgp-tp-classes { display: flex; flex-wrap: wrap; gap: 14px; }
.pgp-tp-class {
    flex: 1 1 200px; max-width: 280px; cursor: pointer; text-align: left;
    background: #fff; border: 2px solid #e3e9f0; border-radius: 14px; padding: 18px 18px;
    display: flex; flex-direction: column; gap: 4px;
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.pgp-tp-class:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20,40,80,.10); border-color: #2563eb; }
.pgp-tp-class-name { font-size: 18px; font-weight: 800; color: #1f2d3d; }
.pgp-tp-class-n { font-size: 13px; color: #6b7a8d; font-weight: 600; }
.pgp-tp-back {
    display: inline-block; background: none; border: none; cursor: pointer;
    color: #2563eb; font-weight: 700; font-size: 14px; padding: 4px 0; margin-bottom: 10px;
}
.pgp-tp-back:hover { text-decoration: underline; }
.pgp-tp-classtitle { font-size: 19px; font-weight: 800; color: #1f2d3d; margin: 0 0 16px; }

/* Sözlük Yönetimi paneli */
.pgp-va-hint { font-size: 15px; color: #6b7a8d; margin: 0 0 14px; }
.pgp-va-levels { display: flex; flex-wrap: wrap; gap: 14px; }
.pgp-va-level {
    flex: 1 1 200px; max-width: 280px; cursor: pointer; text-align: left;
    background: #fff; border: 2px solid #e3e9f0; border-radius: 14px; padding: 18px;
    display: flex; flex-direction: column; gap: 4px;
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.pgp-va-level:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20,40,80,.10); border-color: #2563eb; }
.pgp-va-level-name { font-size: 18px; font-weight: 800; color: #1f2d3d; }
.pgp-va-level-n { font-size: 13px; color: #6b7a8d; font-weight: 600; }
.pgp-va-title { font-size: 19px; font-weight: 800; color: #1f2d3d; margin: 0 0 16px; }

.pgp-va-form { background: #f7f9fc; border: 1px solid #e3e9f0; border-radius: 14px; padding: 16px; margin-bottom: 22px; }
.pgp-va-frow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pgp-va-frow:last-of-type { margin-bottom: 0; }
.pgp-va-in {
    flex: 1 1 180px; padding: 11px 13px; border: 1px solid #cfd8e3; border-radius: 10px;
    font-size: 15px; color: #1f2d3d; background: #fff;
}
.pgp-va-in:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.pgp-va-in-wide { flex: 2 1 280px; }
.pgp-va-add { flex: 0 0 auto; }
.pgp-va-msg { margin-top: 10px; font-size: 14px; font-weight: 600; min-height: 18px; }
.pgp-va-msg.ok { color: #16a34a; }
.pgp-va-msg.err { color: #dc2626; }

.pgp-va-letter {
    font-size: 15px; font-weight: 800; color: #2563eb; background: #eef4ff;
    padding: 6px 12px; border-radius: 8px; margin: 16px 0 8px; display: inline-block;
}
.pgp-va-word {
    display: flex; align-items: flex-start; gap: 12px; justify-content: space-between;
    padding: 10px 12px; border: 1px solid #eef1f5; border-radius: 10px; margin-bottom: 6px; background: #fff;
}
.pgp-va-word-main { display: flex; flex-direction: column; gap: 2px; }
.pgp-va-word-k { font-size: 16px; font-weight: 800; color: #1f2d3d; }
.pgp-va-word-a { font-size: 14px; color: #4a5568; }
.pgp-va-word-o { font-size: 13px; color: #8a97a8; font-style: italic; }
.pgp-va-del {
    flex: 0 0 auto; cursor: pointer; border: 1px solid #f3c2c2; background: #fff5f5; color: #dc2626;
    font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px;
}
.pgp-va-del:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

/* Sözlük Yönetimi — düzenleme + satır aksiyonları */
.pgp-va-word-act { flex: 0 0 auto; display: flex; gap: 6px; }
.pgp-va-edit-btn {
    cursor: pointer; border: 1px solid #cdd8e6; background: #fff; color: #2563eb;
    font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px;
}
.pgp-va-edit-btn:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.pgp-va-editing { display: block; border-color: #2563eb; background: #f3f8ff; }
.pgp-va-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pgp-va-edit-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.pgp-va-cancel {
    cursor: pointer; border: 1px solid #cdd8e6; background: #fff; color: #6b7a8d;
    font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 10px;
}
.pgp-va-cancel:hover { background: #eef1f5; }

/* Sözlük Yönetimi — toplu içe aktarma */
.pgp-va-import { background: #fffbeb; border: 1px solid #f3e3b3; border-radius: 14px; padding: 16px; margin-bottom: 22px; }
.pgp-va-import-head { font-size: 16px; font-weight: 800; color: #92660c; margin-bottom: 6px; }
.pgp-va-import-hint { font-size: 13px; color: #6b7a8d; margin: 0 0 12px; line-height: 1.5; }
.pgp-va-import-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pgp-va-file { flex: 1 1 220px; font-size: 14px; }
.pgp-va-template { font-size: 13px; font-weight: 700; color: #2563eb; text-decoration: none; }
.pgp-va-template:hover { text-decoration: underline; }
.pgp-va-import-msg { margin-top: 10px; font-size: 14px; font-weight: 600; min-height: 18px; }
.pgp-va-import-msg.ok { color: #16a34a; }
.pgp-va-import-msg.err { color: #dc2626; }

/* ============================================================
   v1.10.0 — Hizli Okuma gelisim gorunumu: renklendirme
   .pgp-par-* hem veli hem ogretmen ogrenci kartlarinda kullanilir.
   ============================================================ */
.pgp-par-child {
    border: 1px solid #e6ecf3; border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15,23,42,.07); background: #fff;
}
.pgp-par-child-head { border-bottom: 2px solid #f0f4f8; padding-bottom: 12px; margin-bottom: 16px; }
.pgp-par-child-name { color: #1d4ed8 !important; }
.pgp-par-stat {
    position: relative; overflow: hidden;
    border: 1px solid #eef2f7; border-radius: 12px;
    background: linear-gradient(160deg,#ffffff,#f8fafc);
    transition: transform .15s ease, box-shadow .15s ease;
}
.pgp-par-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,23,42,.10); }
.pgp-par-stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ho-accent, #2563eb); }
.pgp-par-stat-val { color: #0f172a; font-size: 24px; }
.pgp-par-stat-lbl { color: #64748b; }
.pgp-par-stat:nth-child(6n+1) { --ho-accent: #2563eb; }
.pgp-par-stat:nth-child(6n+2) { --ho-accent: #16a34a; }
.pgp-par-stat:nth-child(6n+3) { --ho-accent: #9333ea; }
.pgp-par-stat:nth-child(6n+4) { --ho-accent: #ea580c; }
.pgp-par-stat:nth-child(6n+5) { --ho-accent: #0d9488; }
.pgp-par-stat:nth-child(6n+6) { --ho-accent: #db2777; }
.pgp-par-table { border-radius: 10px; overflow: hidden; border: 1px solid #eef2f7; }
.pgp-par-table th { background: #f1f5fb; color: #334155; font-weight: 700; }
.pgp-par-table tbody tr:nth-child(even) td { background: #fafbfd; }
.pgp-tp-class {
    border: 1px solid #e6ecf3; border-radius: 14px;
    background: linear-gradient(160deg,#ffffff,#f6f9fc);
    box-shadow: 0 3px 12px rgba(15,23,42,.06);
}
.pgp-tp-class-name { color: #1d4ed8 !important; }
.pgp-ho-merged-box { border-top: 4px solid #9333ea; }
.pgp-ho-merged-box > h3 { color: #6d28d9 !important; }

/* v1.11.0: Hizli okuma odev takibi (tamamlanma rozeti + ilerleme cubugu) */
.pgp-asg-done { font-size: 12px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 2px 9px; border-radius: 20px; margin-left: 6px; white-space: nowrap; }
.pgp-asg-todo { font-size: 12px; font-weight: 700; color: #92660c; background: #fef3c7; padding: 2px 9px; border-radius: 20px; margin-left: 6px; white-space: nowrap; }
.pgp-asg-card.is-done { border-left: 4px solid #16a34a; }
.pgp-asg-card-prog { font-size: 12.5px; color: #64748b; margin-top: 4px; }
.pgp-asg-prog { margin: 8px 0 4px; }
.pgp-asg-prog-bar { background: #eef2f7; height: 8px; border-radius: 5px; overflow: hidden; }
.pgp-asg-prog-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #16a34a); border-radius: 5px; transition: width .5s ease; }
.pgp-asg-prog-txt { font-size: 12.5px; color: #475569; font-weight: 600; margin-top: 5px; }

/* v1.12.0: Odev son tarih uyarisi + ogrenci bazli detay */
.pgp-asg-due-badge { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 12px; background: #eef2f7; color: #475569; margin-left: 4px; white-space: nowrap; }
.pgp-asg-due-badge.soon { background: #fef3c7; color: #92660c; }
.pgp-asg-due-badge.overdue { background: #fee2e2; color: #b91c1c; }
.pgp-asg-detail { background: #eef4ff; color: #1d4ed8; border: 1px solid #dbeafe; border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pgp-asg-detail:hover { background: #dbeafe; }
.pgp-asg-detail-panel { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.pgp-asg-det-sum { font-weight: 700; color: #1e293b; margin-bottom: 8px; font-size: 14px; }
.pgp-asg-det-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pgp-asg-det-table th { text-align: left; color: #64748b; font-weight: 700; padding: 6px 8px; border-bottom: 2px solid #eef2f7; }
.pgp-asg-det-table td { padding: 6px 8px; border-bottom: 1px solid #f0f4f8; }
.pgp-asg-det-table tr:last-child td { border-bottom: none; }

/* ============================================================
   Erişilebilirlik — hareket azaltma tercihi
   Geri sayım/pulse animasyonları kapatılır; RSVP kelime geçişleri ve kayan metin
   egzersizin kendisi olduğu için kaldırılmaz, yumuşak kayma yerine adımlı
   (steps) ilerleme kullanılır; hover/translate geçişleri kapatılır.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .pgp-ex-countdown-num.pulse,
    .pgp-ex-countdown-num.go { animation: none; }
    .pgp-ex-scrolling-text,
    .pgp-ex-column-track { animation-timing-function: steps(60, end); }
    .pgp-ex-rsvp-word,
    .pgp-ex-rsvp-progress-fill,
    .pgp-ex-pacer-w,
    .pgp-ex-memory-bar-fill,
    .pgp-ex-eye-dot { transition: none; }
    .pgp-speed-ex-card,
    .pgp-ex-prep-mode-btn,
    .pgp-ex-quiz-opt,
    .pgp-ex-tachisto-choice,
    .pgp-ex-word-chip,
    .pgp-par-stat,
    .pgp-secim-card { transition: none; }
    .pgp-speed-ex-card:hover,
    .pgp-par-stat:hover,
    .pgp-secim-card:hover { transform: none; }
}
