/* =====================================================================
   Öğrenci Köşesi — kamu sayfaları + CV kartı (Metronic 8 / assetsDashboard)
   ===================================================================== */
:root { --ok-ana: #1b84ff; --ok-kenar: #eef0f5; --ok-zemin: #f8f9fb; }

/* ── Sahip başlığı ── */
.ok-sahip { border-radius: 14px; overflow: hidden; }
.ok-sahip .ok-bant { height: 6px; background: linear-gradient(90deg, #1b84ff, #7239ea 55%, #17c653); }
.ok-sahip-foto { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .12); }
.ok-sahip h1 { font-size: 1.45rem; font-weight: 700; color: #071437; }
.ok-etiket { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok-ana); }
.ok-ofis { background: var(--ok-zemin); border: 1px solid var(--ok-kenar); border-radius: 12px; padding: 12px 14px; font-size: .85rem; white-space: pre-line; }
.ok-karsilama { white-space: pre-line; color: #4b5675; font-size: .92rem; }

/* ── Filtre çipleri ── */
.ok-cipler { display: flex; flex-wrap: wrap; gap: 8px; }
.ok-cip { border: 1px solid #e1e3ea; background: #fff; color: #4b5675; border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ok-cip:hover { border-color: #b5b5c3; color: #071437; }
.ok-cip.aktif { background: #071437; border-color: #071437; color: #fff; }
.ok-cip .ok-nokta { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ── Paylaşım kartı ── */
.ok-kart { position: relative; display: flex; gap: 14px; padding: 16px; border: 1px solid var(--ok-kenar); border-radius: 12px; background: #fff; margin-bottom: 12px; transition: box-shadow .15s, transform .15s, border-color .15s; color: inherit; text-decoration: none; }
.ok-kart:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .07); border-color: #dfe3ec; transform: translateY(-1px); }
.ok-kart.ok-sabit { border-color: #ffd8b0; background: linear-gradient(180deg, #fffaf4, #fff 60%); }
.ok-kart .ok-ikon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ok-kart .ok-ikon i { font-size: 1.5rem; color: inherit; line-height: 1; } /* keenicons varsayılanı küçük + soluk (text-muted) */
.ok-kart .ok-baslik { font-weight: 700; color: #071437; font-size: 1rem; line-height: 1.35; word-break: break-word; }
.ok-kart a.ok-baslik:hover { color: var(--ok-ana); }
.ok-kart .ok-ozet { color: #5e6278; font-size: .86rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ok-kart .ok-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #99a1b7; font-size: .76rem; margin-top: 8px; align-items: center; }
.ok-kart .ok-meta i { font-size: .9rem; vertical-align: -2px; }
.ok-ders-rozet { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 6px; color: var(--ok-r, #1b84ff); background: color-mix(in srgb, var(--ok-r, #1b84ff) 11%, transparent); text-decoration: none; }
.ok-yeni { font-size: .65rem; font-weight: 800; letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; background: #17c653; color: #fff; text-transform: uppercase; }
.ok-kart-link::after { content: ""; position: absolute; inset: 0; } /* tüm kart tıklanır */
.ok-kart .ok-ic-link { position: relative; z-index: 1; }

/* ── Yaklaşan ── */
.ok-yaklasan { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ok-kenar); text-decoration: none; color: inherit; }
.ok-yaklasan:last-child { border-bottom: 0; }
.ok-takvim { width: 48px; flex-shrink: 0; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--ok-kenar); background: #fff; }
.ok-takvim .ay { background: #f8285a; color: #fff; font-size: .62rem; font-weight: 700; text-transform: uppercase; padding: 2px 0; }
.ok-takvim .gun { font-size: 1.15rem; font-weight: 800; color: #071437; line-height: 1.6; }
.ok-kalan { font-size: .72rem; font-weight: 700; }
.ok-kalan.acil { color: #f8285a; } .ok-kalan.yakin { color: #f6b100; } .ok-kalan.normal { color: #17c653; }

/* ── Ders listesi / kartı ── */
.ok-ders-satir { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #071437; border: 1px solid transparent; }
.ok-ders-satir:hover { background: var(--ok-zemin); border-color: var(--ok-kenar); }
.ok-ders-satir .ok-cizgi { width: 4px; align-self: stretch; border-radius: 4px; background: var(--ok-r, #1b84ff); }
.ok-ders-ust { border-radius: 14px; overflow: hidden; }
.ok-ders-ust .ok-ders-band { padding: 26px 26px 20px; color: #fff; background: linear-gradient(120deg, var(--ok-r, #1b84ff), color-mix(in srgb, var(--ok-r, #1b84ff) 55%, #071437)); }
.ok-ders-ust .ok-ders-band h1 { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 0; }
.ok-ders-ust .ok-ders-kod { display: inline-block; font-weight: 800; letter-spacing: .05em; background: rgba(255,255,255,.18); border-radius: 6px; padding: 2px 10px; font-size: .8rem; margin-bottom: 8px; }

/* ── Haftalık akış ── */
.ok-hafta { position: relative; padding-left: 34px; margin-bottom: 6px; }
.ok-hafta::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -6px; width: 2px; background: var(--ok-kenar); }
.ok-hafta:last-child::before { display: none; }
.ok-hafta .ok-hafta-no { position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem; background: var(--ok-r, #1b84ff); color: #fff; }
.ok-hafta.bos .ok-hafta-no { background: #e9ecf2; color: #99a1b7; }
.ok-hafta .ok-hafta-baslik { font-weight: 700; color: #071437; padding-top: 5px; margin-bottom: 8px; }
.ok-hafta.bos .ok-hafta-baslik { color: #b5b5c3; font-weight: 600; }

/* ── Detay içeriği (temizlenmiş kullanıcı HTML'i) ── */
.ok-icerik { font-size: 1rem; line-height: 1.75; color: #252f4a; word-wrap: break-word; overflow-wrap: anywhere; }
.ok-icerik h2, .ok-icerik h3, .ok-icerik h4 { color: #071437; font-weight: 700; margin: 1.4em 0 .6em; }
.ok-icerik h2 { font-size: 1.35rem; } .ok-icerik h3 { font-size: 1.15rem; } .ok-icerik h4 { font-size: 1.02rem; }
.ok-icerik p { margin: 0 0 1em; }
.ok-icerik a { color: var(--ok-ana); text-decoration: underline; text-underline-offset: 2px; }
.ok-icerik img { max-width: 100%; height: auto; border-radius: 8px; }
.ok-icerik blockquote { border-left: 4px solid var(--ok-ana); background: var(--ok-zemin); margin: 1em 0; padding: 10px 16px; border-radius: 0 8px 8px 0; color: #4b5675; }
.ok-icerik pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .85rem; line-height: 1.55; }
.ok-icerik code { background: #f1f1f4; padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.ok-icerik pre code { background: transparent; padding: 0; color: inherit; }
.ok-icerik table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.ok-icerik table td, .ok-icerik table th { border: 1px solid #e1e3ea; padding: 6px 10px; vertical-align: top; }
.ok-icerik table th { background: var(--ok-zemin); font-weight: 700; }
.ok-icerik ul, .ok-icerik ol { padding-left: 1.4em; margin-bottom: 1em; }
.ok-icerik hr { border-top: 1px solid #e1e3ea; opacity: 1; }

.ok-etkinlik { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #fff8dd; border: 1px solid #ffe7a3; }
.ok-etkinlik.sinav { background: #f1f1f4; border-color: #e1e3ea; } .ok-etkinlik.etkinlik { background: #eef6ff; border-color: #cfe3ff; }
.ok-dosya { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ok-kenar); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.ok-dosya:hover { border-color: #dfe3ec; background: var(--ok-zemin); }
.ok-dosya-ikon { width: 40px; height: 40px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 800; color: #fff; text-transform: uppercase; flex-shrink: 0; }
.ok-dosya-ikon.pdf { background: #f8285a; } .ok-dosya-ikon.doc { background: #1b84ff; } .ok-dosya-ikon.ppt { background: #ff8a00; }
.ok-dosya-ikon.xls { background: #17c653; } .ok-dosya-ikon.zip { background: #78829d; } .ok-dosya-ikon.img { background: #7239ea; }
.ok-dosya-ikon.media { background: #071437; } .ok-dosya-ikon.file { background: #b5b5c3; }
.ok-dosya .ok-dosya-ad { flex: 1 1 auto; min-width: 0; font-weight: 600; color: #071437; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-video { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 12px; }
.ok-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ok-baglanti { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ok-kenar); border-radius: 10px; margin-bottom: 8px; text-decoration: none; color: #071437; }
.ok-baglanti:hover { border-color: var(--ok-ana); color: var(--ok-ana); }
.ok-onizleme { border: 2px dashed #f6b100; background: #fff8dd; border-radius: 12px; padding: 12px 16px; }

/* ── Paylaş çubuğu ── */
.ok-paylas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ok-pb { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e1e3ea; background: #fff; color: #4b5675; transition: transform .12s, box-shadow .12s; cursor: pointer; padding: 0; }
.ok-pb:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15, 23, 42, .1); }
.ok-pb svg { width: 17px; height: 17px; } .ok-pb i { font-size: 1.1rem; }
.ok-pb.wa { color: #25d366; } .ok-pb.tg { color: #229ed9; } .ok-pb.x { color: #000; } .ok-pb.li { color: #0a66c2; } .ok-pb.yerel { color: var(--ok-ana); }
.ok-pb-sm { width: 32px; height: 32px; } .ok-pb-sm svg { width: 15px; height: 15px; }
.ok-qr svg { width: 260px; height: 260px; display: block; margin: 0 auto; }

/* ── CV kartı ── */
.ok-cv { border-radius: 14px; overflow: hidden; border: 1px solid #e6eaf2; }
.ok-cv-ust { padding: 18px 22px; background: linear-gradient(110deg, #f3f8ff 0%, #f6f1ff 55%, #f0fbf4 100%); border-bottom: 1px solid #e6eaf2; }
.ok-cv-ust h2 { font-size: 1.2rem; font-weight: 800; color: #071437; margin: 0; }
.ok-cv .ok-kart { margin-bottom: 10px; padding: 12px 14px; }
.ok-cv-sayi { font-weight: 800; color: #071437; }

@media (max-width: 767px) {
  .ok-sahip-foto { width: 56px; height: 56px; }
  .ok-sahip h1 { font-size: 1.2rem; }
  .ok-ders-ust .ok-ders-band { padding: 18px; }
  .ok-ders-ust .ok-ders-band h1 { font-size: 1.25rem; }
  .ok-kart { padding: 12px; gap: 10px; }
  .ok-kart .ok-ikon { width: 38px; height: 38px; font-size: 1.15rem; }
  .ok-hafta { padding-left: 30px; }
}
@media print {
  .ok-paylas, .ok-cipler, .ok-yazdirma-gizle { display: none !important; }
  .ok-kart { break-inside: avoid; box-shadow: none !important; }
}
