/* giris.css - Kitametam Ortak Stil Dosyası */

:root {
  /* Temel Renkler */
  --bg-body: #f4f7f6;
  --bg-card: #ffffff;
  --text-main: #2c3e50;
  --text-light: #7f8c8d;
  
  /* Sınıf Renkleri (Varsayılan Mavi) */
  --theme-color: #3498db; 
  --theme-dark: #2980b9;
  --theme-light: rgba(52, 152, 219, 0.1);

  /* Tasarım Değişkenleri */
  --radius-lg: 20px;
  --radius-md: 15px;
  --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.08);
  --shadow-hover: 0 15px 35px -5px rgba(0,0,0,0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- ÖZEL SINIF TEMALARI --- 
   Body etiketine class verilerek (örn: <body class="sinif-6">) 
   sayfa rengi değiştirilebilir. */

.sinif-5 { --theme-color: #3498db; --theme-dark: #2980b9; --theme-light: rgba(52, 152, 219, 0.1); }
.sinif-6 { --theme-color: #9b59b6; --theme-dark: #8e44ad; --theme-light: rgba(155, 89, 182, 0.1); }
.sinif-7 { --theme-color: #e67e22; --theme-dark: #d35400; --theme-light: rgba(230, 126, 34, 0.1); }
.sinif-8 { --theme-color: #2ecc71; --theme-dark: #27ae60; --theme-light: rgba(46, 204, 113, 0.1); }

/* --- TEMEL AYARLAR --- */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* --- HEADER --- */
header {
  background: linear-gradient(135deg, var(--text-main), var(--theme-dark));
  color: white;
  padding: 40px 20px 60px; /* Alt kavis için ekstra boşluk */
  text-align: center;
  border-radius: 0 0 30px 30px;
  margin-bottom: -30px; /* İçeriğin header içine girmesi için */
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

header nav a {
  color: white;
  background: rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

header nav a:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* --- LAYOUT --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2; /* Header'ın üstüne çıkması için */
}

/* Bölüm Kutuları (Beyaz Alanlar) */
.bolum-kapsayici {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  overflow: hidden;
}

/* Özel: "Önerilen / Bu Hafta" Bölümü */
.bolum-kapsayici.onerilen {
  border: 2px solid rgba(243, 156, 18, 0.3);
  background: #fffcf5;
}

.bolum-baslik {
  padding: 20px 30px;
  font-size: 1.3rem;
  font-weight: 800;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bolum-baslik::before {
  content: '';
  display: block;
  width: 6px;
  height: 24px;
  background: var(--theme-color);
  border-radius: 4px;
}

/* --- GRID SİSTEMİ --- */
.etkinlik-grid, .etkinlik-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 30px;
}

/* --- KART TASARIMI --- */
.etkinlik-kart {
  background: var(--bg-card);
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-md);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.etkinlik-kart:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--theme-light);
  background: #fff;
}

/* İkon Alanı */
.etkinlik-ikon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.etkinlik-ikon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.etkinlik-kart:hover .etkinlik-ikon {
  transform: scale(1.1) rotate(5deg);
}

/* İçerik Metinleri */
.etkinlik-icerik h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 700;
}

.etkinlik-icerik p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Index Sayfası İçin Buton */
.git-btn {
  margin-top: 20px;
  padding: 8px 20px;
  background: var(--bg-body);
  color: var(--text-main);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: 0.2s;
}

.etkinlik-kart:hover .git-btn {
  background: var(--theme-color);
  color: white;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 600px) {
  header {
    padding-bottom: 50px;
    border-radius: 0 0 20px 20px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .bolum-kapsayici {
    border-radius: 15px;
  }
  
  .etkinlik-grid, .etkinlik-container {
    padding: 15px; /* Mobilde grid boşluğunu azalt */
    grid-template-columns: 1fr; /* Mobilde tek sütun */
    gap: 15px;
  }

  .etkinlik-kart {
    flex-direction: row; /* Mobilde ikon solda, yazı sağda */
    text-align: left;
    align-items: flex-start;
    padding: 20px;
  }

  .etkinlik-ikon {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    margin-right: 20px;
    flex-shrink: 0;
  }
  
  .etkinlik-icerik h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  /* Index sayfasındaki buton mobilde gizlenebilir veya küçültülebilir */
  .git-btn { display: none; } 
}


/* Veli Girişi Butonu Stilleri */
.veli-giris-alani {
  margin-top: 15px;
  text-align: center;
}

.veli-giris-btn {
  display: inline-block;
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.veli-giris-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #1a252f, #3b8d99);
}