/**
 * Kodmat Akıl ve Zeka Oyunları 10-12
 * Vitrin ve Kart Tasarımı (KIGK-vitrin.css) - Açık Modern Tema (Aşama 4)
 */

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

:root {
  --KIGK-primary: #f59e0b;
  --KIGK-primary-hover: #d97706;
  --KIGK-secondary: #8b5cf6;
  --KIGK-accent: #10b981;
  --KIGK-bg-light: #fefce8;
  --KIGK-card-bg: #ffffff;
  --KIGK-card-border: #e2e8f0;
  --KIGK-text-main: #0f172a;
  --KIGK-text-muted: #475569;
  --KIGK-radius: 24px;
  --KIGK-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08), 0 5px 15px -5px rgba(15, 23, 42, 0.04);
}

.KIGK-vitrin-wrapper {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--KIGK-bg-light);
  color: var(--KIGK-text-main);
  min-height: 100vh;
  padding: 40px 20px 90px;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
}

/* Hero Section */
.KIGK-hero {
  max-width: 1140px;
  margin: 0 auto 70px;
  text-align: center;
  position: relative;
  padding: 80px 30px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #d1fae5 100%);
  border: 1px solid rgba(253, 230, 138, 0.8);
  border-radius: 28px;
  box-shadow: 0 25px 50px -15px rgba(245, 158, 11, 0.15), 0 0 1px 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}

.KIGK-hero-decoration .KIGK-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.KIGK-glow-1 {
  background: var(--KIGK-primary);
  top: -120px;
  left: -80px;
  opacity: 0.15;
}

.KIGK-glow-2 {
  background: var(--KIGK-accent);
  bottom: -120px;
  right: -80px;
  opacity: 0.18;
}

.KIGK-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.KIGK-hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.KIGK-pill-badge {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #fde68a;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.KIGK-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 18px;
  color: #0f172a;
  line-height: 1.15;
}

.KIGK-hero-subtitle {
  font-size: 1.25rem;
  color: #334155;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 500;
}

.KIGK-hero-cta-box {
  display: flex;
  justify-content: center;
}

.KIGK-hero-cta {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #e11d48 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.KIGK-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px -5px rgba(245, 158, 11, 0.6);
  color: #ffffff;
}

/* 3 Kartlı Bilgilendirme Bölümü */
.KIGK-info-section {
  max-width: 1140px;
  margin: 0 auto 80px;
}

.KIGK-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.KIGK-info-card {
  background: #ffffff;
  border: 1px solid var(--KIGK-card-border);
  border-radius: var(--KIGK-radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--KIGK-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.KIGK-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -12px rgba(15, 23, 42, 0.12);
  border-color: #c7d2fe;
}

.KIGK-info-icon {
  font-size: 3.2rem;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 20px;
  margin-bottom: 22px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.KIGK-info-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

.KIGK-info-desc {
  font-size: 0.98rem;
  color: var(--KIGK-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Activities Section */
.KIGK-activities-section {
  max-width: 1140px;
  margin: 0 auto;
}

.KIGK-section-header {
  margin-bottom: 44px;
  text-align: center;
}

.KIGK-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.KIGK-section-desc {
  font-size: 1.15rem;
  color: var(--KIGK-text-muted);
  margin: 0 auto;
  max-width: 680px;
  line-height: 1.6;
}

/* Grid & Cards */
.KIGK-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.KIGK-card {
  background: var(--KIGK-card-bg);
  border: 1px solid var(--KIGK-card-border);
  border-radius: var(--KIGK-radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--KIGK-shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.KIGK-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--KIGK-primary), #3b82f6, var(--KIGK-accent));
  opacity: 0.9;
  transition: height 0.3s ease;
}

.KIGK-card:hover {
  transform: translateY(-8px);
  border-color: #a5b4fc;
  box-shadow: 0 25px 45px -12px rgba(99, 102, 241, 0.18);
}

.KIGK-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.KIGK-card-icon {
  font-size: 2.8rem;
  background: #f1f5f9;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.KIGK-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.KIGK-age-tag {
  background: #e0f2fe;
  color: #0284c7;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #bae6fd;
}

.KIGK-status-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
}

.KIGK-status-tag[data-status="in_progress"] {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.KIGK-status-tag[data-status="completed"] {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.KIGK-card-body {
  flex-grow: 1;
}

.KIGK-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.KIGK-card-subtitle {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--KIGK-primary);
  margin: 0 0 14px;
}

.KIGK-card-desc {
  font-size: 0.98rem;
  color: var(--KIGK-text-muted);
  line-height: 1.6;
  margin: 0 0 22px;
}

.KIGK-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.KIGK-skill-pill {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Card Progress */
.KIGK-card-progress {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
}

.KIGK-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.KIGK-progress-label {
  color: var(--KIGK-text-muted);
  font-weight: 600;
}

.KIGK-progress-val {
  color: #0f172a;
  font-weight: 700;
}

.KIGK-badge-val {
  color: #ec4899;
}

.KIGK-progress-bar-container {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 14px;
}

.KIGK-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--KIGK-primary), #06b6d4);
  border-radius: 6px;
  transition: width 0.6s ease;
}

/* Card Footer & Button */
.KIGK-card-footer {
  margin-top: auto;
}

.KIGK-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.4px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.KIGK-card-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(245, 158, 11, 0.55);
  color: #ffffff;
}

.KIGK-btn-lock {
  background: #f1f5f9;
  color: #64748b;
  box-shadow: none;
  border: 1px solid #cbd5e1;
}

.KIGK-btn-lock:hover {
  background: #e2e8f0;
  color: #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .KIGK-hero-title {
    font-size: 2.3rem;
  }
  .KIGK-hero-subtitle {
    font-size: 1.08rem;
  }
  .KIGK-info-grid {
    grid-template-columns: 1fr;
  }
  .KIGK-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   AŞAMA 4.2: BAĞIMSIZ TAM EKRAN (STANDALONE) VİTRİN CSS
   ======================================================== */

html,
body.KIGK-standalone-page,
body.KIGK-vitrin-standalone-page {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100%;
  background: #f8fafc;
  overflow-x: hidden;
}

body.KIGK-standalone-page #wpadminbar,
body.KIGK-vitrin-standalone-page #wpadminbar {
  display: none !important;
}

body.KIGK-standalone-page {
  margin-top: 0 !important;
}

.KIGK-vitrin-standalone-shell {
  width: 100%;
  min-height: 100vh;
  background: #f8fafc;
}

/* 4. Vitrin wrapper üst boşluğu daha düzgün olsun */
.KIGK-vitrin-standalone-page .KIGK-vitrin-wrapper {
  min-height: 100vh;
  padding: 32px 20px 80px;
}

/* 5. Vitrin içinde küçük bir “Kodmat’a Dön” butonu - Modern Premium Görünüm */
.KIGK-back-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #312e81;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(199, 210, 254, 0.85);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.09);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  box-sizing: border-box;
}

.KIGK-back-site-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.KIGK-back-site-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(99, 102, 241, 0.35);
}

.KIGK-back-site-link:hover .KIGK-back-site-icon {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .KIGK-vitrin-standalone-page .KIGK-vitrin-wrapper {
    padding: 20px 14px 60px;
  }

  .KIGK-vitrin-standalone-page .KIGK-hero {
    padding: 54px 18px;
    margin-bottom: 48px;
  }

  .KIGK-vitrin-standalone-page .KIGK-hero-title {
    font-size: 2.15rem;
  }

  .KIGK-vitrin-standalone-page .KIGK-hero-subtitle {
    font-size: 1rem;
  }

  .KIGK-back-site-link {
    padding: 7px 14px;
    font-size: 0.85rem;
    gap: 6px;
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .KIGK-back-site-link {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 5px;
    margin-bottom: 16px;
  }
}

/* ========================================================
   AŞAMA KIGK-ACCESS-1: ÜYELİK POPUP (ACCESS MODAL) CSS
   ======================================================== */

.KIGK-access-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  opacity: 0;
  pointer-events: none;
}

.KIGK-access-modal.KIGK-access-modal-open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.KIGK-access-modal-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(5px);
}

.KIGK-access-modal-card {
  position: relative !important;
  z-index: 2 !important;
  transform: translateY(0);
  box-sizing: border-box;
  width: min(100%, 520px);
  min-height: 0;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.22), transparent 36%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 38%),
    #ffffff;
  border: 2px solid rgba(186, 230, 253, 0.9);
  border-radius: 28px;
  padding: 42px 42px 34px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.KIGK-access-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.95);
  color: #334155;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.KIGK-access-modal-spark {
  position: absolute;
  top: 28px;
  left: 30px;
  font-size: 2rem;
}

.KIGK-access-modal-rocket {
  position: absolute;
  right: 36px;
  bottom: 28px;
  font-size: 2rem;
}

.KIGK-access-modal-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  font-size: 2.8rem;
  background: linear-gradient(135deg, #2563eb, #14b8a6, #f59e0b);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25);
}

.KIGK-access-modal-card h3 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 900;
}

.KIGK-access-modal-card p {
  max-width: 390px;
  margin: 0 auto 26px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.55;
}

.KIGK-access-modal-actions {
  display: grid;
  gap: 12px;
  margin: 0 auto 22px;
  max-width: 390px;
}

.KIGK-access-modal-primary,
.KIGK-access-modal-secondary {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
}

.KIGK-access-modal-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.KIGK-access-modal-secondary {
  color: #0f172a;
  background: #ffffff;
  border: 2px solid #dbeafe;
}

.KIGK-access-modal-note {
  max-width: 360px;
  margin: 0 auto;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.KIGK-access-modal-body-lock {
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .KIGK-access-modal {
    padding: 16px;
  }

  .KIGK-access-modal-card {
    width: min(100%, 460px);
    min-height: auto;
    padding: 34px 22px 28px;
    border-radius: 24px;
  }

  .KIGK-access-modal-icon {
    width: 74px;
    height: 74px;
    font-size: 2.3rem;
    margin-bottom: 20px;
  }

  .KIGK-access-modal-card h3 {
    font-size: 1.55rem;
  }

  .KIGK-access-modal-card p {
    font-size: 0.95rem;
  }

  .KIGK-access-modal-primary,
  .KIGK-access-modal-secondary {
    min-height: 54px;
  }

  .KIGK-access-modal-spark {
    top: 22px;
    left: 22px;
    font-size: 1.5rem;
  }

  .KIGK-access-modal-rocket {
    right: 22px;
    bottom: 22px;
    font-size: 1.5rem;
  }
}

/* ========================================================
   Mavi Tema Kart (Bruce'un Kayıp Çantası)
   ======================================================== */
.KIGK-card.KIGK-theme-blue::before {
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}

.KIGK-card.KIGK-theme-blue .KIGK-card-icon {
  background: #f0f9ff;
  border-color: #e0f2fe;
  position: relative;
}

.KIGK-card.KIGK-theme-blue .KIGK-card-subtitle {
  color: #0284c7;
}

.KIGK-card.KIGK-theme-blue .KIGK-skill-pill {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.KIGK-card.KIGK-theme-blue .KIGK-progress-bar-fill {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.KIGK-card.KIGK-theme-blue .KIGK-card-btn {
  background: linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
  box-shadow: 0 8px 20px -4px rgba(6, 182, 212, 0.4);
}

.KIGK-card.KIGK-theme-blue .KIGK-card-btn:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
  box-shadow: 0 12px 25px -4px rgba(6, 182, 212, 0.55);
}

/* Publication notices are separate from student progress badges. */
.KIGK-vitrin-wrapper .KIGK-hero{margin-bottom:16px}
.KIGK-weekly-notice{max-width:1140px;margin:0 auto 64px;box-sizing:border-box;padding:13px 18px;border:1px solid #a7dfc9;border-radius:14px;background:#eaf8f1;color:#22654d;font-size:15px;font-weight:700;text-align:center}
.KIGK-release-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.4}
.KIGK-new-badge{color:#176344;background:#dcfce7;border:1px solid #a7e5bd}
.KIGK-coming-badge{color:#655083;background:#f1eafa;border:1px solid #d9cbed}
.KIGK-coming-section{max-width:1140px;margin:60px auto 0}
.KIGK-coming-card{justify-content:flex-start;border-style:dashed;box-shadow:none}
.KIGK-coming-card::before{background:#baa7cf;height:3px}
.KIGK-coming-card:hover{transform:none;box-shadow:none;border-color:var(--KIGK-card-border)}
.KIGK-coming-card .KIGK-card-desc{margin-bottom:0}
.KIGK-card-header{gap:12px}.KIGK-card-icon{flex-shrink:0}
@media(max-width:480px){.KIGK-weekly-notice{font-size:14px;padding:12px;margin-bottom:40px}.KIGK-card{padding:22px;min-width:0}.KIGK-card-title,.KIGK-card-desc{overflow-wrap:anywhere}.KIGK-coming-section{margin-top:40px}}
