:root{
  --bg:#e0f7fb;
  --bg-soft:#f3fbfd;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#0ea5e9;
  --radius:18px;
  --shadow:0 12px 30px rgba(15,23,42,0.10);
  --gap:14px;
}

*{box-sizing:border-box;margin:0;padding:0}

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at top, #bae6fd 0, transparent 55%),
    radial-gradient(circle at bottom, #a5f3fc 0, transparent 55%),
    var(--bg);
  color:#0f172a;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}

.shell{
  max-width:960px;
  margin:16px auto 110px;
  padding:10px;
}

.app{
  border-radius:28px;
  background:linear-gradient(145deg,var(--bg-soft),#ffffff);
  box-shadow:var(--shadow);
  border:1px solid rgba(148,163,184,0.25);
  padding:18px 18px 22px;
}

.header{
  margin-bottom:18px;
}

.title{
  font-weight:700;
  font-size:22px;
  letter-spacing:0.01em;
}

.subtitle{
  font-size:13px;
  color:var(--muted);
  margin-top:4px;
}

.grid{
  display:grid;
  gap:var(--gap);
}

/* Anasayfa grup kartları – 2×2 sabit düzen */
.groups-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--gap);
}

@media(min-width:768px){
  .groups-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)); /* 4 kart için 2×2 ideal */
  }
}

.group-card{
  background:#ffffff;
  border-radius:24px;
  padding:22px 18px;
  box-shadow:0 16px 35px rgba(148,163,184,0.35);
  border:1px solid rgba(148,163,184,0.35);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  transition:transform .16s ease-out, box-shadow .16s ease-out, border-color .16s ease-out;
}

.group-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 45px rgba(148,163,184,0.55);
  border-color:rgba(14,165,233,0.8);
}

.group-icon{
  width:72px;
  height:72px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at 30% 0, #ffffff 0, #e0f2fe 55%);
}

.group-label{
  font-size:15px;
  font-weight:600;
}

/* ============================
   MODÜL KARTLARI (ÖĞRETMEN / ÖĞRENCİ / VELİ)
   EBA tarzı daha büyük ikon + merkezli düzen
============================ */

.modules-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--gap);
}

@media (min-width:640px){
  .modules-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (min-width:900px){
  .modules-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

.card{
  position:relative;
  background:
    radial-gradient(circle at top left,rgba(56,189,248,0.10),transparent 55%),
    radial-gradient(circle at bottom right,rgba(129,140,248,0.12),transparent 55%),
    #ffffff;
  border-radius:24px;
  padding:18px 18px 16px;
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(148,163,184,0.40);
  box-shadow:0 12px 30px rgba(148,163,184,0.32);

  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;

  transform:translateY(0);
  transition:transform .16s ease-out,
             box-shadow .16s ease-out,
             border-color .16s ease-out,
             background .16s ease-out;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(148,163,184,0.55);
  border-color:rgba(14,165,233,0.85);
}

/* İKON ÇERÇEVESİ – daha büyük kare */
.icon-wrap{
  width:96px;
  height:96px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 30% 0,#ffffff 0,#e0f2fe 60%);
  border:1px solid rgba(148,163,184,0.7);
  box-shadow:0 10px 26px rgba(148,163,184,0.45);
}

.module-icon{
  width:80px;
  height:80px;
}

/* Yazı alanı – ortaya hizalı */
.card-main{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  text-align:center;
  min-height:52px;
}

.card-title{
  font-size:14px;
  font-weight:600;
}

.card-sub{
  font-size:12px;
  color:var(--muted);
}

/* Alt satır bilgi */
.card-pill{
  font-size:11px;
  color:#0f766e;
  margin-top:6px;
}

/* Sağ alttaki "Aç ↗" etiketi */
.go-tag{
  position:absolute;
  right:14px;
  bottom:12px;
  font-size:11px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#0369a1;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(224,242,254,0.96);
  border:1px solid rgba(56,189,248,0.7);
}

/* Alt kategori bar (Anasayfa + gruplar) */
.category-bar{
  position:fixed;
  left:0;right:0;bottom:0;
  padding:10px 14px 16px;
  display:flex;
  justify-content:center;
  pointer-events:none;
  z-index:50;
}

.category-inner{
  pointer-events:auto;
  display:flex;
  gap:6px;
  padding:8px;
  border-radius:999px;
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(148,163,184,0.6);
  box-shadow:0 14px 35px rgba(148,163,184,0.55);
  backdrop-filter:blur(12px);
  max-width:620px;
  width:100%;
  justify-content:space-between;
}

.nav-btn{
  flex:1 1 0;
  border:none;
  background:none;
  color:var(--muted);
  font-size:11px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:4px 2px;
  border-radius:14px;
  cursor:pointer;
  text-decoration:none;
}

.nav-btn:focus-visible{
  outline:2px solid #0ea5e9;
  outline-offset:2px;
}

.nicon{
  width:30px;height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(226,232,240,0.9);
  border:1px solid rgba(148,163,184,0.8);
  overflow:hidden;
}

.nlabel{
  white-space:nowrap;
}

.nav-btn.active{
  color:#0f172a;
  font-weight:600;
  background:rgba(14,165,233,0.08);
}

.nav-btn.active .nicon{
  box-shadow:0 0 0 1px rgba(14,165,233,0.9),0 8px 20px rgba(148,163,184,0.7);
}

/* ===========================
   📰 MANŞET / HERO SLIDER
=========================== */

.hero-slider{
  margin:0 0 22px;
}

.hero-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.hero-badge{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  font-size:13px;
  font-weight:600;
  background:#ffffff;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.4);
  box-shadow:0 4px 12px rgba(148,163,184,0.25);
}

.hero-badge span:first-child{
  font-size:15px;
}

.hero-link{
  font-size:12px;
  color:#0369a1;
  background:#e0f2fe;
  padding:6px 10px;
  border-radius:12px;
  border:1px solid rgba(56,189,248,0.6);
  text-decoration:none;
}

/* Çerçeve */
.hero-frame{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background:#000;
  height:0;
  padding-bottom:60%;  /* daha yüksek görünüm */
  box-shadow:0 16px 35px rgba(148,163,184,0.35);
}

/* Kaydırma */
.hero-track{
  position:absolute;
  inset:0;
  display:flex;
  transition:transform .4s ease-out;
}

.hero-slide{
  flex:0 0 100%;
  position:relative;
  text-decoration:none;
  color:#ffffff;
}

/* Resim */
.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  display:block;
  filter:brightness(0.88);
  transition:0.4s ease;
}

.hero-slide:hover img{
  filter:brightness(0.97);
  transform:scale(1.01);
}

/* Yazılar */
.hero-caption{
  position:absolute;
  left:0;right:0;bottom:0;
  padding:14px 14px 16px;
  background:linear-gradient(to top,rgba(0,0,0,0.70),rgba(0,0,0,0));
}

.hero-caption-title{
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.hero-caption-meta{
  margin-top:6px;
  font-size:11px;
  opacity:0.9;
  display:flex;
  align-items:center;
  gap:6px;
}

.hero-caption-meta-dot{
  width:5px;
  height:5px;
  border-radius:999px;
  background:#38bdf8;
}

/* Slider noktaları */
.hero-dots{
  margin-top:10px;
  display:flex;
  justify-content:center;
  gap:6px;
}

.hero-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#cbd5e1;
  border:none;
}

.hero-dot.active{
  background:#0ea5e9;
  width:20px;
  transition:.25s;
}

/* Tablet için */
@media(min-width:768px){
  .hero-frame{
    padding-bottom:48%;  /* daha yatay */
  }
  .hero-caption-title{
    font-size:15px;
  }
} /* 🟢 ÖNEMLİ: @media burada KAPANIYOR */

/* ===========================
   TAKVİM
=========================== */

.calendar-wrapper{
  margin-top:18px;
  background:#ffffff;
  border-radius:20px;
  padding:16px 14px 18px;
  box-shadow:0 12px 30px rgba(148,163,184,.25);
}

.cal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}

.cal-month-year{
  font-weight:600;
  font-size:16px;
}

.cal-nav{
  border:none;
  background:transparent;
  font-size:18px;
  padding:4px 8px;
  cursor:pointer;
  color:#64748b;
}

.cal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:4px;
}

.cal-weekdays{
  margin-top:6px;
  margin-bottom:4px;
  font-size:11px;
  color:#94a3b8;
  text-align:center;
}

.cal-weekdays > div{
  padding:4px 0;
}

.cal-day{
  position:relative;
  border:none;
  background:#f8fafc;
  border-radius:10px;
  font-size:13px;
  padding:10px 0;
  cursor:pointer;
  color:#0f172a;
}

.cal-day-empty{
  background:transparent;
  cursor:default;
}

.cal-day.cal-today{
  border:1px solid #0ea5e9;
}

.cal-day.cal-selected{
  background:#b91c1c;
  color:#ffffff;
}

.cal-dot{
  position:absolute;
  bottom:4px;
  left:50%;
  transform:translateX(-50%);
  width:6px;height:6px;
  border-radius:999px;
  background:#fb923c;
}

/* Alt view tabları */
.view-tabs{
  display:flex;
  justify-content:space-around;
  margin-top:12px;
  margin-bottom:6px;
}

.view-tab{
  flex:1;
  margin:0 4px;
  border:none;
  border-radius:999px;
  padding:6px 0;
  font-size:12px;
  cursor:pointer;
  background:#e5e7eb;
  color:#4b5563;
}

.view-tab.active{
  background:#b91c1c;
  color:#ffffff;
}

/* Etkinlik listesi */
.event-list{
  margin-top:6px;
}

.no-events{
  font-size:12px;
  color:#64748b;
  padding:8px 4px;
}

.event-card{
  background:#fef2f2;
  border-radius:16px;
  padding:10px 12px;
  margin-bottom:8px;
}

.event-date{
  font-size:11px;
  color:#991b1b;
  font-weight:600;
  margin-bottom:4px;
}

.event-title{
  font-size:13px;
  font-weight:600;
  margin-bottom:2px;
}

.event-desc{
  font-size:12px;
  color:#4b5563;
}

/* 🔹 iç sayfalar SAYFASI: 2'li büyük ikon grid */
.modules-2col{
  grid-template-columns:repeat(2,minmax(0,1fr)); /* her zaman 2 sütun */
}

/* Kartı dikey hizala, ikon üstte olsun */
.modules-2col .card{
  flex-direction:column;
  align-items:center;
  text-align:center;
}

/* İkon kutusu ve ikonları büyüt */
.modules-2col .icon-wrap{
  min-width:86px;
  height:86px;
  border-radius:26px;
}

.modules-2col .module-icon{
  width:52px;
  height:52px;
}

/* Yazıları ortaya al */
.modules-2col .card-main{
  align-items:center;
  text-align:center;
}

.modules-2col .card-pill{
  margin-top:6px;
}

/* ===========================
   Sağ Alt FAB Stack (Mezunlar + Öneri + WhatsApp)
   Alt menü ile çakışmaması için bottom değerleri ayarlı
=========================== */

/* WhatsApp FAB */
.wa-fab{
  position:fixed;
  right:16px;
  bottom:90px; /* Alt menü çakışmasın */
  width:58px;
  height:58px;
  background:#22c55e;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(22,163,74,0.40);
  z-index:9999;
  transition:transform .2s ease, box-shadow .2s ease;
}

.wa-fab:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 38px rgba(22,163,74,0.55);
}

.wa-icon{
  width:30px;
  height:30px;
  display:block;
}

/* 💡 Önerim Var – WhatsApp üstü */
.onerim-fab{
  position:fixed;
  right:16px;
  bottom:158px; /* 90 + 68 */
  width:58px;
  height:58px;
  border-radius:999px;
  background:#f59e0b;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(0,0,0,.22);
  z-index:9999;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.onerim-fab:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 38px rgba(0,0,0,.28);
  background:#d97706;
}

/* 🎓 Mezunlarımız – en üst */
.mezunlar-fab{
  position:fixed;
  right:16px;
  bottom:226px; /* 158 + 68 */
  width:58px;
  height:58px;
  border-radius:999px;
  background:#6366f1;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(0,0,0,.22);
  z-index:9999;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mezunlar-fab:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 38px rgba(0,0,0,.28);
  background:#4f46e5;
}

/* Mobil ince ayar */
@media (max-width:640px){
  .wa-fab{ bottom:96px; }
  .onerim-fab{ bottom:164px; }
  .mezunlar-fab{ bottom:232px; }
}
/* ===========================
   Sağ Alt FAB – YAN YANA DÜZEN
   🎓 Mezunlar | 🟢 WhatsApp
   💡 Önerim Var (üstte)
=========================== */

/* WhatsApp */
.wa-fab{
  position:fixed;
  right:16px;
  bottom:90px;
  width:58px;
  height:58px;
  background:#22c55e;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 30px rgba(22,163,74,0.40);
  z-index:9999;
  transition:.2s ease;
}
.wa-fab:hover{
  transform:translateY(-4px);
}

/* Mezunlar – WhatsApp'ın SOLU */
.mezunlar-fab{
  position:fixed;
  right:86px; /* 58 + 12 + 16 */
  bottom:90px;
  width:58px;
  height:58px;
  background:#6366f1;
  color:#fff;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  z-index:9999;
  transition:.2s ease;
}
.mezunlar-fab:hover{
  transform:translateY(-4px);
  background:#4f46e5;
}

/* Önerim Var – ÜSTTE ORTALI */
.onerim-fab{
  position:fixed;
  right:51px; /* iki butonun ortası */
  bottom:158px;
  width:58px;
  height:58px;
  background:#f59e0b;
  color:#fff;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  z-index:9999;
  transition:.2s ease;
}
.onerim-fab:hover{
  transform:translateY(-4px);
  background:#d97706;
}

/* Mobil ince ayar */
@media (max-width:640px){
  .wa-fab,
  .mezunlar-fab{
    bottom:96px;
  }
  .onerim-fab{
    bottom:166px;
  }
}
