@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Fredoka:wght@500;600;700&display=swap');

/* Maarif Temel Dik Yazı Fontları */
@font-face {
  font-family: 'TemelYazi';
  src: url('../fontlar/TemelYazi.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'TemelYazi-Bold';
  src: url('../fontlar/TemelYazi-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'TemelYazi-KesikKontur';
  src: url('../fontlar/TemelYazi-KesikKontur.otf') format('opentype');
}
@font-face {
  font-family: 'TemelYazi-Kilavuz';
  src: url('../fontlar/TemelYazi-Kilavuz.otf') format('opentype');
}

:root {
  --neon-purple: #9333ea;
  --neon-cyan: #06b6d4;
  --header-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --portal-bg: linear-gradient(180deg, #f0fdf4 0%, #e0f2fe 40%, #fdf4ff 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: url('../assets/bg.png') center center / cover no-repeat fixed;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', 'Fredoka', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
}

.portal-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.portal-header {
  height: 60px;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 2px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 38px;
  max-width: 120px;
  object-fit: contain;
}

.app-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.neon-text {
  background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: rgba(168, 85, 247, 0.35);
  border-color: rgba(192, 132, 252, 0.6);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 32px 18px 16px 18px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ede9fe;
  border: 1.5px solid #c084fc;
  color: #6b21a8;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.15);
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.hero-title span {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: #475569;
  line-height: 1.5;
  font-weight: 500;
}

/* Groups Grid */
.groups-container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 18px 48px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* Group Card Base */
.group-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  border: 2px solid #e2e8f0;
}

.group-card:hover {
  transform: translateY(-4px);
}

/* 1. GRUP THEME (Mor / Lila) */
.group-card.theme-1 {
  border-color: #c084fc;
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}
.group-card.theme-1:hover {
  border-color: #8b5cf6;
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.24);
}
.theme-1 .card-num-badge { background: #ede9fe; color: #6b21a8; }
.theme-1 .card-duration-badge { background: #f3e8ff; color: #7c3aed; }
.theme-1 .btn-start {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
}
.theme-1 .btn-start:hover {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45);
}

/* 2. GRUP THEME (Mavi / Okyanus) */
.group-card.theme-2 {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}
.group-card.theme-2:hover {
  border-color: #0284c7;
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.24);
}
.theme-2 .card-num-badge { background: #e0f2fe; color: #0369a1; }
.theme-2 .card-duration-badge { background: #bae6fd; color: #0284c7; }
.theme-2 .btn-start {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.theme-2 .btn-start:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

/* 3. GRUP THEME (Kehribar / Günbatımı) */
.group-card.theme-3 {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}
.group-card.theme-3:hover {
  border-color: #f59e0b;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.24);
}
.theme-3 .card-num-badge { background: #fef3c7; color: #b45309; }
.theme-3 .card-duration-badge { background: #fde68a; color: #92400e; }
.theme-3 .btn-start {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.theme-3 .btn-start:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* 4. GRUP THEME (Gül / Pembe) */
.group-card.theme-4 {
  border-color: #fda4af;
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
}
.group-card.theme-4:hover {
  border-color: #e11d48;
  box-shadow: 0 14px 34px rgba(225, 29, 72, 0.24);
}
.theme-4 .card-num-badge { background: #ffe4e6; color: #be123c; }
.theme-4 .card-duration-badge { background: #fecdd3; color: #9f1239; }
.theme-4 .btn-start {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}
.theme-4 .btn-start:hover {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

/* 5. GRUP THEME (İndigo / Gece) */
.group-card.theme-5 {
  border-color: #a5b4fc;
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
}
.group-card.theme-5:hover {
  border-color: #6366f1;
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.24);
}
.theme-5 .card-num-badge { background: #e0e7ff; color: #4338ca; }
.theme-5 .card-duration-badge { background: #c7d2fe; color: #3730a3; }
.theme-5 .btn-start {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.theme-5 .btn-start:hover {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* RAKAMLAR THEME (Zümrüt Yeşili) */
.group-card.theme-num {
  border-color: #6ee7b7;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.group-card.theme-num:hover {
  border-color: #10b981;
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.24);
}
.theme-num .card-num-badge { background: #d1fae5; color: #065f46; }
.theme-num .card-duration-badge { background: #a7f3d0; color: #047857; }
.theme-num .btn-start {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.theme-num .btn-start:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-num-badge {
  font-size: 13px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.card-duration-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

/* Letters Row with TemelYazi font and colorful pills (Ortalanmış) */
.card-letters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.letter-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'TemelYazi', sans-serif;
  font-size: 23px;
  font-weight: bold;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  cursor: pointer;
}

.letter-pill:hover {
  transform: scale(1.16) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

/* Colorful Letter Pills for Groups */
.pill-yellow { background: #fef3c7; border-color: #f59e0b; color: #b45309; }
.pill-blue   { background: #dbeafe; border-color: #3b82f6; color: #1d4ed8; }
.pill-green  { background: #dcfce7; border-color: #22c55e; color: #15803d; }
.pill-red    { background: #ffe4e6; border-color: #f43f5e; color: #be123c; }
.pill-purple { background: #ede9fe; border-color: #a855f7; color: #7e22ce; }
.pill-cyan   { background: #cffafe; border-color: #06b6d4; color: #0e7490; }

.pill-a { background: #fef3c7; border-color: #f59e0b; color: #b45309; }
.pill-n { background: #dbeafe; border-color: #3b82f6; color: #1d4ed8; }
.pill-e { background: #dcfce7; border-color: #22c55e; color: #15803d; }
.pill-t { background: #ffe4e6; border-color: #f43f5e; color: #be123c; }
.pill-i { background: #ede9fe; border-color: #a855f7; color: #7e22ce; }
.pill-l { background: #cffafe; border-color: #06b6d4; color: #0e7490; }

.card-actions-row {
  display: flex;
  gap: 8px;
}

.card-btn {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
}

.btn-start:hover {
  transform: translateY(-2px);
}

@media (max-width: 650px) {
  .hero-title { font-size: 24px; }
  .groups-container { grid-template-columns: 1fr; padding: 12px 14px 36px 14px; }
  .group-card { padding: 18px; }
}
