* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #0d0d0f;
  color: #f1f1f1;
  overflow-x: hidden;
}

/* Üst Bar */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  border-bottom: 1px solid #262629;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 55px;
  height: 55px;
  border-radius: 6px;
  object-fit: cover;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.brand-name span {
  color: #FFD700;
}

.topbar-title {
  font-style: bold;
  color: #FFD700;
  font-size: 1.3rem;
  padding-right: 55px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Dil Seçici Buton */
.lang-btn {
  background: transparent;
  border: 1px solid #777;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lang-btn:hover {
  border-color: #FFD700;
  color: #FFD700;
}

/* Sağ Üst Menü Butonu */
.menu-btn {
  background: transparent;
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.menu-btn:hover {
  background: #FFD700;
  color: #0d0d0f;
}

/* Sağdan Kayarak Açılan Yan Menü */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1001;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #141417;
  border-left: 2px solid #FFD700;
  padding: 25px;
  transition: right 0.35s ease;
  z-index: 1002;
  overflow-y: auto;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #2a2a2e;
  font-weight: bold;
  color: #FFD700;
  font-size: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  color: #FFD700;
}

.sidebar-links {
  list-style: none;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-links a {
  text-decoration: none;
  color: #e2e2e2;
  font-size: 1.1rem;
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  transition: 0.25s;
}

.sidebar-links a:hover {
  background: rgba(255, 215, 0, 0.12);
  color: #FFD700;
  padding-left: 18px;
}

.admin-link {
  color: #FFD700 !important;
  border: 1px dashed rgba(255, 215, 0, 0.4);
}

/* YÖNETİCİ GİRİŞ / PANEL MODALI */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 2000;
  padding: 20px;
}

.admin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal {
  background: #16161a;
  border: 2px solid #FFD700;
  border-radius: 12px;
  width: 100%;
  max-width: 550px;
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.close-modal-btn:hover {
  color: #FFD700;
}

.admin-modal h2 {
  color: #FFD700;
  margin-bottom: 10px;
}

.admin-modal p {
  color: #a5a5ad;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

#loginForm, .admin-panel-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-modal input, .admin-modal textarea {
  padding: 12px;
  background: #0d0d0f;
  border: 1px solid #27272c;
  border-radius: 6px;
  color: #fff;
  outline: none;
}

.admin-modal input:focus, .admin-modal textarea:focus {
  border-color: #FFD700;
}

.file-upload-label {
  font-size: 0.85rem;
  color: #FFD700;
}

.admin-logs {
  margin-top: 25px;
}

.log-box {
  background: #0d0d0f;
  border: 1px solid #27272c;
  border-radius: 6px;
  padding: 10px;
  max-height: 120px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: #00ffcc;
  font-family: monospace;
}

.logout-btn {
  margin-top: 20px;
  width: 100%;
}

/* Ana Ekran Yazısı (Hero) */
.hero {
  padding: 160px 5% 80px;
  text-align: center;
  background: radial-gradient(circle at top, #24200a 0%, #0d0d0f 70%);
}

.badge {
  background: rgba(255, 215, 0, 0.12);
  color: #FFD700;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 3.2rem;
  margin: 18px 0;
  color: #ffffff;
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
  color: #b0b0b5;
  font-size: 1.1rem;
}

/* Genel Bölümler */
.section {
  padding: 70px 6%;
}

.dark-section {
  background-color: #121215;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.section-desc {
  text-align: center;
  color: #9e9ea4;
  margin-bottom: 45px;
}

/* 4 Dikey Oyun Kartı */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.game-card {
  background: #18181c;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #27272c;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: #FFD700;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.15);
}

.game-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000;
}

.game-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.game-card:hover .game-poster img {
  transform: scale(1.05);
}

.game-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-info h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.game-info p {
  font-size: 0.92rem;
  color: #a5a5ad;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.steam-tag {
  font-size: 0.85rem;
  font-weight: bold;
  color: #FFD700;
}

/* 3D İNTERAKTİF DUYURULAR */
.announcements-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.announcement-3d-card {
  background: #18181c;
  border: 1px solid #27272c;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-style;
  cursor: pointer;
}

.announcement-3d-card:hover {
  border-color: #FFD700;
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.ann-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000;
}

.ann-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ann-card-inner {
  padding: 24px;
  transform: translateZ(20px);
}

.ann-date {
  font-size: 0.85rem;
  color: #FFD700;
  display: block;
  margin-bottom: 8px;
}

.ann-card-inner h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.ann-card-inner p {
  color: #a5a5ad;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Stüdyomuz Ekip Grupları */
.team-group-container {
  margin-bottom: 60px;
}

.group-category-title {
  font-size: 1.6rem;
  color: #FFD700;
  margin-bottom: 25px;
  border-left: 4px solid #FFD700;
  padding-left: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.team-card {
  background: #18181c;
  border: 1px solid #27272c;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  border-color: #FFD700;
  transform: translateY(-5px);
}

.sponsor-card {
  text-decoration: none;
  color: inherit;
  border: 1px dashed #FFD700;
}

.sponsor-link-tag {
  margin-top: 15px;
  font-size: 0.85rem;
  color: #FFD700;
  font-weight: bold;
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD700;
  margin-bottom: 15px;
}

.team-card h3 {
  color: #fff;
  margin-bottom: 5px;
}

.team-role {
  display: block;
  color: #FFD700;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card p {
  color: #a5a5ad;
  font-size: 0.9rem;
  flex-grow: 1;
}

/* İletişim Formu */
.contact-form {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  padding: 14px;
  background: #18181c;
  border: 1px solid #27272c;
  border-radius: 6px;
  color: #fff;
  outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: #FFD700;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn.primary {
  background: #FFD700;
  color: #0d0d0f;
}

.btn.primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.btn.secondary {
  border: 1px solid #FFD700;
  color: #FFD700;
  background: transparent;
}

.btn.secondary:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* Footer & Sosyal Medya */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #262629;
  color: #777;
  background: #09090b;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.social-icon {
  color: #bbb;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid #262629;
  border-radius: 20px;
  transition: 0.3s;
}

.social-icon:hover {
  color: #FFD700;
  border-color: #FFD700;
  background: rgba(255, 215, 0, 0.08);
}

/* Mobil Uyum Ayarları */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .topbar-title {
    display: none; /* Mobilde taşmayı önlemek için gizlenir */
  }
}