/* YOX Game Portal - Ana CSS Dosyası
------------------------------------ */

:root {
  /* Ana renkler */
  --primary-color: #d834b0;
  --secondary-color: #7b41d6;
  --dark-bg: #17152e;
  --darker-bg: #0f0d24;
  --light-text: #ffffff;
  --gray-text: #a5a5c9;
  --card-bg: #1e1c3a;
  --card-border: #2a245c;
  
  /* Durum renkleri */
  --success: #4cd137;
  --warning: #fbc531;
  --danger: #e84118;
  --info: #3498db;
  
  /* Gölgeler */
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  
  /* Font boyutları */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  
  /* Geçişler */
  --transition-speed: 0.3s;
}

/* Temel Stillemeler
---------------------- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Butonlar
--------------- */
.btn {
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #c22b9b;
  border-color: #c22b9b;
  box-shadow: 0 0 0 0.2rem rgba(216, 52, 176, 0.25);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #6835be;
  border-color: #6835be;
  box-shadow: 0 0 0 0.2rem rgba(123, 65, 214, 0.25);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-sm {
  padding: 0.35rem 1rem;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: var(--font-size-md);
}

/* Navbar
------------- */
.navbar {
  background-color: var(--darker-bg) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  transition: color var(--transition-speed) ease;
}

.navbar-dark .navbar-nav .nav-link:hover, 
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Arama kutusu */
.navbar .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  border-radius: 50px;
  padding-left: 1rem;
}

.navbar .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.navbar .btn-search {
  border-radius: 0 50px 50px 0;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Hero Section
------------------ */
.hero-section {
  background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--light-text);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--gray-text);
}

.hero-buttons {
  margin-top: 2rem;
}

.hero-buttons .btn {
  margin: 0 0.5rem 1rem;
  min-width: 150px;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}

.element-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(216, 52, 176, 0.7) 0%, rgba(216, 52, 176, 0) 70%);
  top: -100px;
  left: -100px;
  animation: float 7s ease-in-out infinite;
}

.element-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(123, 65, 214, 0.7) 0%, rgba(123, 65, 214, 0) 70%);
  bottom: -150px;
  right: -50px;
  animation: float 9s ease-in-out infinite;
}

.element-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 42, 140, 0.7) 0%, rgba(79, 42, 140, 0) 70%);
  top: 50%;
  right: 15%;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Duyurular ve Haberler
------------------------- */
.news-ticker {
  background-color: var(--darker-bg);
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  background-color: var(--primary-color);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin-right: 1rem;
  flex-shrink: 0;
}

.ticker-content {
  overflow: hidden;
  position: relative;
  height: 24px;
  flex-grow: 1;
}

.ticker-items {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: inline-block;
  color: var(--gray-text);
  margin-right: 50px;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Kartlar ve Bölümler
----------------------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header h2 {
  margin-bottom: 0;
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.view-all {
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.view-all:hover {
  color: var(--secondary-color);
}

.section-title {
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Oyun Kartları */
.game-card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  margin-bottom: 2rem;
  border: 1px solid var(--card-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.game-card.featured {
  border-width: 2px;
  border-color: var(--primary-color);
}

.game-card-image {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.game-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.play-btn {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transform: translateY(20px);
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-btn i {
  margin-right: 0.5rem;
}

.game-card:hover .play-btn {
  transform: translateY(0);
}

.game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: var(--font-size-xs);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  z-index: 2;
}

.game-badge.new {
  background-color: var(--primary-color);
  color: white;
}

.game-badge.hot {
  background-color: var(--danger);
  color: white;
}

.game-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.game-card-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.category {
  color: var(--gray-text);
  font-size: var(--font-size-sm);
}

.rating {
  display: flex;
  align-items: center;
  color: var(--warning);
  font-weight: 600;
}

.rating i {
  margin-right: 0.25rem;
}

.game-desc {
  color: var(--gray-text);
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
  flex-grow: 1;
}

.game-actions {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.favorite-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gray-text);
  transition: all var(--transition-speed) ease;
  border: none;
  cursor: pointer;
}

.favorite-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--light-text);
}

.favorite-btn.active {
  color: var(--danger);
  background-color: rgba(232, 65, 24, 0.2);
}

/* Swiper Slider */
.swiper-container {
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 3rem;
}

.swiper-slide {
  height: auto;
}

.swiper-pagination-bullet {
  background: var(--gray-text);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--primary-color);
}

/* Kategoriler
--------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--card-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
  border-color: var(--primary-color);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: var(--font-size-md);
  margin-bottom: 0.5rem;
}

.game-count {
  font-size: var(--font-size-xs);
  color: var(--gray-text);
}

/* Bildirimler
--------------- */
.notification-badge {
  position: relative;
  display: inline-flex;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-item {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-color);
  transition: background-color var(--transition-speed) ease;
}

.notification-item:hover {
  background-color: var(--darker-bg);
}

.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(216, 52, 176, 0.2);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.notification-content {
  flex-grow: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--light-text);
}

.notification-message {
  color: var(--gray-text);
  font-size: var(--font-size-sm);
  margin-bottom: 0.5rem;
}

.notification-time {
  font-size: var(--font-size-xs);
  color: var(--gray-text);
}

.notification-actions {
  margin-left: 1rem;
  align-self: center;
}

/* Profil ve XP
---------------- */
.profile-header {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--card-border);
}

.profile-info {
  display: flex;
  align-items: center;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.5rem;
  border: 3px solid var(--primary-color);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details {
  flex-grow: 1;
}

.profile-details h2 {
  margin-bottom: 0.5rem;
}

.profile-stats {
  display: flex;
  margin-top: 1rem;
}

.stat-item {
  margin-right: 2rem;
  text-align: center;
}

.stat-item .value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--light-text);
}

.stat-item .label {
  font-size: var(--font-size-xs);
  color: var(--gray-text);
}

.level-info {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.level-badge {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.xp-progress {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.xp-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease;
}

.xp-text {
  display: flex;
  justify-content: space-between;
  color: var(--gray-text);
  font-size: var(--font-size-xs);
}

/* Hero Banner
---------------------- */
.hero-banner {
  position: relative;
  background: linear-gradient(0deg, rgba(13, 11, 38, 0.9) 0%, rgba(23, 21, 46, 0.9) 100%), url('/static/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 0;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light-text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, #d834b0, #7b41d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray-text);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.hero-buttons .btn i {
  margin-right: 0.5rem;
}

.hero-buttons .btn-primary {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  box-shadow: 0 4px 15px rgba(216, 52, 176, 0.3);
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(216, 52, 176, 0.4);
}

.hero-buttons .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
}

.hero-buttons .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Kategoriler Kartları
---------------------- */
.category-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.category-icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--light-text);
}

.category-count-label {
  font-size: 0.8rem;
  color: var(--gray-text);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-tab {
  padding: 0.5rem 1.25rem;
  background-color: var(--card-bg);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--gray-text);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.category-tab:hover {
  background-color: rgba(216, 52, 176, 0.1);
  color: var(--primary-color);
  text-decoration: none;
}

.category-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Mobil Uyumluluk
------------------- */
@media (max-width: 1200px) {
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    margin-bottom: 0.75rem;
    width: 100%;
  }
  
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section-header .view-all {
    margin-top: 0.5rem;
  }
  
  .profile-info {
    flex-direction: column;
    text-align: center;
  }
  
  .avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .profile-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .stat-item {
    margin: 0.5rem;
  }
}