/* ===========================
   HARFCAN.CSS
   Ana sayfa ve liste sayfaları
   =========================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  text-align: center;
  padding: 2rem 1rem 3rem;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-20%) translateY(-20%); }
  50% { transform: translateX(20%) translateY(20%); }
}

header .logo {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

header .logo img {
  height: 70px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

header h1 {
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

header p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.harfcan-character {
  width: 60px;
  height: 60px;
  background: #FFD93D;
  border-radius: 50%;
  margin: 1rem auto 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: bounce 2s ease-in-out infinite;
}

.harfcan-character::before {
  content: '🧒';
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Grade Section */
.grade-section {
  margin-bottom: 2rem;
}

.grade-section > p {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  line-height: 1.8;
}

/* Intro Visual */
.intro-visual {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.4rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Game Card */
.game-card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4facfe, #00f2fe, #43e97b, #f093fb);
  background-size: 300% 100%;
  animation: gradient-move 4s ease infinite;
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* Card Emoji */
.card-emoji {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.game-card:hover .card-emoji {
  transform: scale(1.2) rotate(5deg);
}

.game-card h3 {
  color: #2d3748;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.game-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
  line-height: 1.5;
}

/* Article Count Badge */
.article-count {
  display: inline-block;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

/* Category Card (larger) */
.category-card {
  border: 2px solid transparent;
  background-clip: padding-box;
}

.category-card:hover {
  border-color: rgba(79, 172, 254, 0.3);
}


/* Button */
.button {
  display: inline-block;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.35);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.4rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .intro-visual {
    font-size: 1.8rem;
    letter-spacing: 0.2rem;
  }

  .card-emoji {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1.5rem 1rem 2rem;
  }

  header h1 {
    font-size: 1.2rem;
  }

  .container {
    padding: 1rem 0.8rem;
  }

  .game-card {
    padding: 1.5rem 1.2rem;
  }
}
