/* ====== Tavsiye Videolar — öğrenci sayfası (sitenin diğer sayfalarıyla aynı tasarım) ====== */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka One";
  src: url("fonts/fredoka.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --yesil: #4CAF50;
  --acik-yesil: #8BC34A;
  --koyu-yesil: #2e7d32;
  --orta-yesil: #45a049;
  --gecis: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  --yazi: #333;
  --soluk: #666;
  --baslik-font: "Fredoka One", "Nunito", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body {
  font-family: "Nunito", sans-serif;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234CAF50' fill-opacity='0.07'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--yazi);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--koyu-yesil); outline-offset: 2px; }
[hidden] { display: none !important; }
.gorunmez {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ====== Sayfa çerçevesi ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 1s ease-in-out;
}
.kap { width: 100%; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== Yeşil üst başlık ====== */
.header {
  background: var(--gecis);
  color: #fff;
  padding: 25px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: "";
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
  z-index: 1;
  animation: shine 8s infinite linear;
  transform: skewX(-20deg);
}
@keyframes shine {
  0%   { left: -100%; }
  100% { left: 200%; }
}
.header h1 {
  font-family: var(--baslik-font);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.2;
  margin: 0;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  position: relative;
  z-index: 2;
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ====== Menü ====== */
.menu {
  background: var(--gecis);
  padding: 15px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
  margin-bottom: 25px;
}
.menu a {
  color: #FFFFFF;
  text-decoration: none;
  margin: 5px;
  font-weight: 800;
  display: inline-block;
  padding: 10px 15px;
  background-color: rgba(56, 158, 60, 0.9);
  border-radius: 8px;
  box-shadow: 0 5px 0 #2e7d32, 0 5px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  top: 0;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.menu a:hover {
  background-color: var(--orta-yesil);
  box-shadow: 0 3px 0 #2e7d32, 0 3px 6px rgba(0, 0, 0, 0.3);
  top: 2px;
  transform: translateY(2px) scale(1.05);
}
.menu a:active {
  top: 5px;
  box-shadow: none;
  background-color: var(--koyu-yesil);
  transform: translateY(5px);
}

/* ====== Sayfa başlığı (***TAVSİYE VİDEOLAR***) ====== */
.sayfa-bas { text-align: center; padding: 20px 20px 0; animation: slideUp 0.7s ease-out; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sayfa-baslik, .bolum-bas h2 {
  font-family: var(--baslik-font);
  font-weight: 400;
  color: var(--yesil);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  padding-bottom: 10px;
}
.sayfa-baslik::after, .bolum-bas h2::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 2px;
}
.sayfa-baslik {
  display: block;
  text-align: center;
  text-transform: uppercase;
  font-size: 32px;
  margin: 0 0 12px;
}
.sayfa-alt { margin: 0 0 10px; color: var(--soluk); font-weight: 600; font-size: 1.05rem; }

/* ====== Arama ve konu düğmeleri ====== */
.arac-cubugu {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  margin: 0 -20px;
  padding: 12px 20px 14px;
  border-bottom: 2px solid rgba(76, 175, 80, 0.15);
}
.arac-cubugu .kap { display: flex; flex-direction: column; gap: 12px; }
.ara input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 999px;
  border: 2px solid #c8e6c9;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  font-weight: 600;
}
.ara input:focus { outline: none; border-color: var(--yesil); box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.18); }

.konu-filtre {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px; padding: 4px 20px 8px;
  scroll-snap-type: x proximity; scroll-padding-inline: 20px;
}
.konu-filtre::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .arac-cubugu .kap { flex-direction: row; align-items: flex-start; }
  .ara { flex: 0 0 300px; }
  .konu-filtre { flex-wrap: wrap; margin: 0; padding: 4px 0 8px; overflow: visible; }
}
.cip {
  flex: 0 0 auto; scroll-snap-align: start;
  border: 2px solid var(--yesil);
  background: #fff;
  color: var(--koyu-yesil);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 0 #a5d6a7;
  position: relative; top: 0;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cip span {
  display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px;
  border-radius: 999px; background: #e8f5e9; font-size: 0.8em;
}
.cip:hover { top: 2px; box-shadow: 0 2px 0 #a5d6a7; }
.cip[aria-pressed="true"] {
  background: rgba(56, 158, 60, 0.95);
  border-color: var(--koyu-yesil);
  color: #fff;
  box-shadow: 0 4px 0 #2e7d32, 0 4px 8px rgba(0, 0, 0, 0.15);
}
.cip[aria-pressed="true"] span { background: rgba(255, 255, 255, 0.25); }

/* ====== Bölümler ====== */
main { padding: 0 0 30px; }
.bolum { margin-top: 34px; }
.bolum-bas {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.bolum-bas h2 { display: inline-block; margin: 0; font-size: 28px; line-height: 1.2; }
.paylas {
  border: 0; background: none; cursor: pointer; padding: 4px 0;
  color: var(--koyu-yesil); font-weight: 700; font-size: 0.9rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.paylas:hover { color: var(--yesil); }
.one-cikan .bolum-bas h2::before { content: "★ "; color: #FFC107; }

/* ====== Video kartları ====== */
.izgara {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.kart {
  background: var(--gecis);
  color: #fff;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  animation: kartGiris 0.5s ease-out both;
}
.kart:nth-child(2) { animation-delay: .05s; } .kart:nth-child(3) { animation-delay: .1s; }
.kart:nth-child(4) { animation-delay: .15s; } .kart:nth-child(5) { animation-delay: .2s; }
.kart:nth-child(6) { animation-delay: .25s; } .kart:nth-child(n+7) { animation-delay: .3s; }
@keyframes kartGiris {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.kart:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 30px rgba(76, 175, 80, 0.3); }
.kart::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0; transition: opacity 0.5s ease;
}
.kart:hover::before { opacity: 1; }

.kart-kapak {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; margin: 0; cursor: pointer; overflow: hidden;
  background: #e8f5e9;
}
.kart-kapak img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.kart:hover .kart-kapak img { transform: scale(1.05); }
.oynat {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(46, 125, 50, 0.88);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.55), 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s;
  z-index: 2;
}
.oynat::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff;
}
.kart-kapak:hover .oynat, .kart-kapak:focus-visible .oynat { transform: scale(1.12); background: #4CAF50; }

.kart-kapak.dis {
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}
.dis-alan {
  font-family: var(--baslik-font); color: var(--koyu-yesil); font-size: 1.2rem;
  padding: 0 16px; text-align: center; word-break: break-word;
}
.dis-alan::after { content: " ↗"; }

.kart-govde { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; position: relative; z-index: 2; }
.kart h3 { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.3; letter-spacing: 0.2px; }
.aciklama { margin: 0; font-size: 0.95rem; font-weight: 600; opacity: 0.95; }
.etiketler { display: flex; flex-wrap: wrap; gap: 6px; }
.etiket {
  font-size: 0.75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.25); color: #fff; letter-spacing: 0.3px;
}
.etiket.vurgu { background: #fff; color: var(--koyu-yesil); }
.etiket.acik { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.7); }
.kart-alt {
  margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700;
}
.kart-alt time { opacity: 0.9; }
.kart-alt a { color: #fff; text-decoration: none; }
.kart-alt a:hover { text-decoration: underline; text-shadow: 0 0 8px rgba(255, 255, 255, 0.8); }

.bos { text-align: center; color: var(--soluk); padding: 48px 16px; font-size: 1.1rem; font-weight: 700; }

/* ====== Alt bilgi ====== */
.alt {
  margin-top: 20px; padding: 18px 20px; text-align: center; color: var(--soluk); font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.85); border-radius: 12px; border: 2px solid rgba(76, 175, 80, 0.15);
}
.alt p { margin: 0 auto 6px; max-width: 80ch; }
.alt p:last-child { margin-bottom: 0; font-weight: 700; color: var(--koyu-yesil); }

/* ====== Video oynatıcı penceresi ====== */
#oynatici {
  width: min(960px, 100vw - 24px); max-width: none; padding: 0; border: 0;
  border-radius: 15px; background: #000; color: #fff; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
#oynatici::backdrop { background: rgba(20, 40, 20, 0.85); }
.oynatici-ust { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; background: var(--gecis); }
.oynatici-ust h2 {
  margin: 0; font-size: 1.05rem; font-weight: 800; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kapat {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(46, 125, 50, 0.9); color: #fff; font-size: 1.1rem; font-weight: 800;
  box-shadow: 0 3px 0 #1b5e20;
}
.kapat:hover { background: #1b5e20; }
.oynatici-cerceve { aspect-ratio: 16 / 9; width: 100%; background: #000; }
.oynatici-cerceve iframe { width: 100%; height: 100%; border: 0; display: block; }
.oynatici-alt {
  padding: 10px 18px; background: #1b1b1b; font-size: 0.88rem; font-weight: 700;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px 18px; flex-wrap: wrap;
}
.oynatici-alt a { color: #aed581; }

/* ====== Bildirim ====== */
.bildirim {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--koyu-yesil); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; z-index: 100;
  max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.bildirim.goster { opacity: 1; transform: translate(-50%, 0); }

/* ====== Sınıf düzeyi filtresi ====== */
.sinif-filtre {
  display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 2px -20px 0; padding: 4px 20px 6px;
}
.sinif-filtre::-webkit-scrollbar { display: none; }
.filtre-etiket { flex: 0 0 auto; font-weight: 800; color: var(--koyu-yesil); font-size: 0.88rem; }
.cip.kucuk { padding: 4px 12px; font-size: 0.84rem; box-shadow: 0 3px 0 #a5d6a7; }
.cip.kucuk[aria-pressed="true"] { box-shadow: 0 3px 0 #2e7d32; }
@media (min-width: 900px) { .sinif-filtre { flex-wrap: wrap; margin: 4px 0 0; padding: 4px 0 6px; overflow: visible; } }

/* ====== "Yeni" etiketi ====== */
.yeni-rozet {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: #FFC107; color: #4a3500; font-weight: 800; font-size: 0.8rem;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 3px 0 #c79100, 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: yeniParla 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes yeniParla {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ====== İlgili etkinlik düğmesi ====== */
.etkinlik-dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 4px; padding: 9px 14px; border-radius: 8px;
  background: #fff; color: var(--koyu-yesil); text-decoration: none; font-weight: 800; font-size: 0.92rem;
  box-shadow: 0 4px 0 #2e7d32, 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative; top: 0;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.etkinlik-dugme:hover { top: 2px; box-shadow: 0 2px 0 #2e7d32, 0 2px 6px rgba(0, 0, 0, 0.2); background: #f1f8e9; }
.etkinlik-dugme:active { top: 4px; box-shadow: none; }
.etkinlik-dugme.buyuk { margin: 0 auto 0 0; background: var(--gecis); color: #fff; box-shadow: 0 4px 0 #1b5e20; }
.etkinlik-dugme.buyuk:hover { box-shadow: 0 2px 0 #1b5e20; }

/* ====== Mobil ====== */
@media (max-width: 768px) {
  .izgara { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .header h1 { font-size: 32px; }
  .sayfa-baslik { font-size: 28px; }
  .bolum-bas h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  .container { padding: 14px; }
  .header { padding: 20px 16px; }
  .header h1 { font-size: 26px; }
  .menu { padding: 10px; }
  .menu a { padding: 8px 11px; font-size: 0.82em; }
  .sayfa-bas { padding: 10px 0 0; }
  .sayfa-baslik { font-size: 24px; }
  .arac-cubugu { margin: 0 -14px; padding: 10px 14px 12px; }
  .konu-filtre { margin: 0 -14px; padding: 4px 14px 8px; scroll-padding-inline: 14px; }
  .sinif-filtre { margin: 0 -14px; padding: 4px 14px 6px; }
  .etkinlik-dugme.buyuk { margin: 0; width: 100%; }
  .izgara { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ====== Öğretmen giriş düğmesi (sayfanın kenarında, göze batmayan) ====== */
.sayfa-bas { position: relative; }
.ogretmen-giris {
  position: absolute; top: 0; right: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  background: #fff; color: var(--koyu-yesil);
  border: 2px solid #c8e6c9;
  font-weight: 700; font-size: 0.8rem; text-decoration: none;
  box-shadow: 0 3px 0 #c8e6c9;
  transition: all 0.2s ease;
  top: 0;
}
.ogretmen-giris:hover { border-color: var(--yesil); box-shadow: 0 2px 0 #a5d6a7; transform: translateY(1px); }
@media (max-width: 900px) {
  .ogretmen-giris { position: static; margin: 0 0 14px auto; float: right; }
  .sayfa-baslik { clear: both; }
}
