/* ═══════════════════════════════════════════
   Webreta Yazılı Danışmanlık — Frontend CSS
   ═══════════════════════════════════════════ */

.wryd-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    max-width: 900px;
}
.wryd-wrap * { box-sizing: border-box; }

/* ── Geri butonu ── */
.wryd-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color .15s;
}
.wryd-back:hover { color: #c9a456; }

/* ── Boş durum ── */
.wryd-empty {
    text-align: center;
    padding: 56px 24px;
    background: #fafbfc;
    border: 1.5px dashed #dde1e7;
    border-radius: 16px;
}
.wryd-empty-icon {
    width: 72px; height: 72px; border-radius: 20px;
    background: linear-gradient(135deg, #1a1a2e, #2d2562);
    display: flex; align-items: center; justify-content: center;
    color: #c9a456;
    margin: 0 auto 20px;
}
.wryd-empty h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; color: #1a1a2e; }
.wryd-empty p  { font-size: 13px; color: #888; margin: 0; max-width: 380px; margin: 0 auto; }

/* ── Kart Listesi ── */
.wryd-list { display: flex; flex-direction: column; gap: 14px; }

.wryd-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid #eceef2;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.wryd-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); border-color: #d8dbe2; }
.wryd-card--completed { opacity: .75; }

.wryd-card-img {
    width: 100px;
    flex-shrink: 0;
    overflow: hidden;
}
.wryd-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.wryd-card-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.wryd-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wryd-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.wryd-badge--active   { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.wryd-badge--completed { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }

.wryd-card-date {
    font-size: 11px;
    color: #aaa;
}

.wryd-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

/* Progress bar */
.wryd-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wryd-progress-bar {
    flex: 1;
    height: 5px;
    background: #eceef2;
    border-radius: 10px;
    overflow: hidden;
}
.wryd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a456, #e8c97e);
    border-radius: 10px;
    transition: width .4s;
}
.wryd-progress-text {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
}

.wryd-card-action {
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.wryd-btn-enter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1a1a2e, #2d2562);
    color: #c9a456;
    text-decoration: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
}
.wryd-btn-enter:hover { opacity: .88; transform: translateY(-1px); color: #c9a456; }

.wryd-btn-done {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ══════════════════════════════════
   Detay Sayfası
   ══════════════════════════════════ */

.wryd-detail-header {
    background: linear-gradient(135deg, #0f0c2a 0%, #1a1650 60%, #2d1f6e 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.wryd-day-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201,164,86,.18);
    border: 1px solid rgba(201,164,86,.35);
    color: #c9a456;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.wryd-detail-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.wryd-detail-sub {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin: 0;
}

/* Gün noktaları */
.wryd-detail-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    max-width: 340px;
}

.wryd-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 700;
    transition: transform .1s;
    cursor: default;
    flex-shrink: 0;
}
.wryd-dot.past   { background: rgba(201,164,86,.25); }
.wryd-dot.today  { background: #c9a456; color: #1a1a2e; transform: scale(1.3); }
.wryd-dot.future { background: rgba(255,255,255,.08); }
.wryd-dot.locked { background: rgba(201,164,86,.15); cursor: not-allowed; }
.wryd-dot.clickable { background: rgba(201,164,86,.4); cursor: pointer; text-decoration: none; }
.wryd-dot.clickable:hover { background: #c9a456; color: #1a1a2e; transform: scale(1.15); }
.wryd-dot-more {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    font-weight: 600;
    padding-left: 4px;
}

/* PDF Bölümü */
.wryd-pdf-section {
    background: #fff;
    border: 1.5px solid #eceef2;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}

.wryd-pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #eceef2;
    background: #fafbfc;
}
.wryd-pdf-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.wryd-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #1a1a2e, #2d2562);
    color: #c9a456;
    text-decoration: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    transition: opacity .15s;
}
.wryd-btn-download:hover { opacity: .85; color: #c9a456; }

.wryd-pdf-embed {
    background: #f5f6f8;
    min-height: 400px;
}
.wryd-pdf-embed iframe {
    display: block;
    width: 100%;
    min-height: 780px;
    border: none;
}

/* PDF yok durumu */
.wryd-no-pdf {
    text-align: center;
    padding: 52px 24px;
    background: #fafbfc;
    border: 1.5px solid #eceef2;
    border-radius: 14px;
    margin-bottom: 14px;
    color: #aaa;
}
.wryd-no-pdf svg { display: block; margin: 0 auto 16px; color: #c9a456; }
.wryd-no-pdf h3 { font-size: 15px; font-weight: 700; color: #555; margin: 0 0 8px; }
.wryd-no-pdf p  { font-size: 12px; color: #aaa; margin: 0; }

/* Uyarı notu */
.wryd-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #fdf8ec;
    border: 1px solid #f0dfa0;
    border-radius: 10px;
    font-size: 12px;
    color: #7a5c10;
    line-height: 1.5;
}
.wryd-note svg { flex-shrink: 0; margin-top: 1px; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .wryd-card { flex-direction: column; }
    .wryd-card-img { width: 100%; height: 160px; }
    .wryd-card-action { padding: 0 18px 18px; }
    .wryd-detail-header { padding: 20px; flex-direction: column; }
    .wryd-detail-progress { max-width: 100%; }
    .wryd-detail-title { font-size: 18px; }
    .wryd-pdf-embed iframe { min-height: 480px; }
}

/* ── Rapor / Tip etiketleri ── */
.wryd-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.wryd-badge--pending {
    background: #fff3cd;
    color: #856404;
}
.wryd-btn-waiting {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #aaa;
    font-style: italic;
}
.wryd-card-sub {
    font-size: 12px;
    color: #999;
    margin: 4px 0 0;
}

/* ── PDF sekmeleri (çoklu rapor) ── */
.wryd-pdf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.wryd-pdf-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid #e4e7ed;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: all .15s;
}
.wryd-pdf-tab:hover, .wryd-pdf-tab.active {
    border-color: #c9a456;
    background: #fffdf5;
    color: #b8922d;
}

/* ── Rapor tipi — liste kartı ── */
.wryd-card--pending .wryd-badge--pending {
    background: #fff8e7;
    color: #b8860b;
    border: 1px solid #f0d87a;
}
.wryd-card-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.wryd-btn-waiting {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: #f7f7f9;
    color: #b0b0b8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
}

/* ── Rapor tipi — detay: çoklu PDF sekmeleri ── */
.wryd-rapor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.wryd-rapor-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f3f4f8;
    color: #555;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
    border: 1.5px solid transparent;
}
.wryd-rapor-tab:hover { background: #ebe9f8; color: #3d3068; }
.wryd-rapor-tab.active {
    background: #1a1a2e;
    color: #c9a456;
    border-color: #c9a456;
}

/* ── Program detay: nokta no-pdf durumu ── */
.wryd-dot.no-pdf { opacity: .45; }
