/* promotions.css - Bonuslar ve promosyonlar sayfasi icin ozel stil dosyasi */

body.promotions-page {
  background: #000d24;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
}

/* Ana Wrapper */
.promotions-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 15px;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

/* Sol Sidebar */
.promotions-sidebar {
  width: 260px;
  background: #0a1628;
  border-radius: 8px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05);
  align-self: flex-start;
  max-height: fit-content;
}

.sidebar-title {
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.promotions-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.promotions-menu li {
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.promotions-menu li:last-child {
  border-bottom: none;
}

.promotions-menu button {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  padding: 12px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

/* Hover efekti - soldan saga yuklenme */
.promotions-menu button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(245,161,0,0.3) 0%, rgba(245,161,0,0.1) 100%);
  transition: width 0.3s ease;
  z-index: 0;
}

.promotions-menu button:hover::before {
  width: 100%;
}

.promotions-menu button:hover {
  color: #fff;
}

.promotions-menu button span,
.promotions-menu button {
  position: relative;
  z-index: 1;
}

.menu-dot {
  color: #4a5568;
  font-size: 16px;
  line-height: 1;
  transition: color 0.3s;
}

.promotions-menu button:hover .menu-dot {
  color: #f5a100;
}

/* Sag Icerik Alani */
.promotions-content {
  flex: 1;
  min-width: 0;
}

/* Kategori Butonlari */
.promo-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 0 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.promo-cat-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: #8b9bb4;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.promo-cat-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.promo-cat-btn.active {
  background: #e74c3c;
  color: #fff;
}

/* Promosyon Grid - 3 Kart Yan Yana */
.promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Promosyon Karti - Konteynersiz */
.promo-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  border: none;
}

.promo-card:hover {
  transform: translateY(-3px);
}

.promo-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.promo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
  border-radius: 12px;
}

/* Badge - Gizli */
.promo-card-badge {
  display: none;
}

/* Bonus adi - Resmin altinda */
.promo-card-info {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  margin-top: 8px;
  padding: 0 30px 0 30px;
  background: transparent;
  border-radius: 0;
}

.promo-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0,0,0,1), 0 1px 2px rgba(0,0,0,0.8);
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ok butonu - Sag altta */
.promo-card-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #ff5722;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.promo-card:hover .promo-card-btn {
  transform: scale(1.1);
  background: #e64a19;
}

.promo-card-btn svg {
  width: 16px;
  height: 16px;
  margin-left: 1px;
}

/* Detaylar butonu ve action gizli */
.promo-card-action,
.promo-card-detail-btn {
  display: none;
}

/* Detay Gorunumu */
.promo-detail-view {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.promo-detail-header {
  margin-bottom: 20px;
}

.promo-back-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.promo-back-btn:hover {
  background: #c0392b;
}

.promo-back-btn span {
  font-size: 18px;
}

.promo-detail-content {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  border: none;
}

.promo-detail-banner {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
}

.promo-detail-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.promo-detail-text {
  padding: 25px;
  color: #fff;
  font-size: 14px;
  line-height: 1.8;
}

.promo-detail-text h3 {
  color: #f5a100;
  font-size: 18px;
  margin: 0 0 15px 0;
}

.promo-detail-text p {
  margin: 0 0 12px 0;
}

.promo-detail-text strong {
  color: #fff;
}

/* Sidebar Detay Modal */
.sidebar-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.sidebar-detail-content {
  background: #0d1f35;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-detail-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}

.sidebar-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.sidebar-detail-close {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-detail-close:hover {
  background: #e74c3c;
}

.sidebar-detail-body {
  padding: 25px;
  overflow-y: auto;
  max-height: calc(80vh - 80px);
  color: #c7d6ee;
  font-size: 14px;
  line-height: 1.8;
}

.sidebar-detail-body h3 {
  color: #f5a100;
  font-size: 16px;
  margin: 0 0 15px 0;
}

.sidebar-detail-body p {
  margin: 0 0 10px 0;
}

.sidebar-content-scroll {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Kaydirma cubugu stili */
.sidebar-content-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.sidebar-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(245,161,0,0.5);
  border-radius: 3px;
}

.sidebar-content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(245,161,0,0.8);
}

/* Sidebar aktif buton */
.promotions-menu button.active-sidebar {
  color: #fff;
  background: linear-gradient(90deg, rgba(245,161,0,0.2) 0%, rgba(245,161,0,0.05) 100%);
}

.promotions-menu button.active-sidebar::before {
  width: 100%;
  background: linear-gradient(90deg, rgba(245,161,0,0.4) 0%, rgba(245,161,0,0.1) 100%);
}

.promotions-menu button.active-sidebar .menu-dot {
  color: #f5a100;
}

/* Sidebar icerik kutusu - Gri konteyner */
.sidebar-content-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 25px;
  margin: 0;
  height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-content-title {
  color: #f5a100;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.sidebar-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  min-height: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.8;
}

.sidebar-content-scroll h3 {
  color: #f5a100;
  font-size: 16px;
  margin: 20px 0 12px 0;
}

.sidebar-content-scroll p {
  margin: 0 0 12px 0;
}

.sidebar-content-scroll strong {
  color: #fff;
}

/* Kaydirma cubugu stili */
.sidebar-content-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.sidebar-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(245,161,0,0.5);
  border-radius: 3px;
}

.sidebar-content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(245,161,0,0.8);
}

/* Responsive */
@media (max-width: 1200px) {
  .promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .promotions-wrapper {
    flex-direction: column;
  }
  
  .promotions-sidebar {
    width: 100%;
  }
  
  .promotions-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
  }
  
  .promotions-menu li {
    flex: 1 1 auto;
    min-width: 150px;
  }
  
  .promotions-menu button {
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
  }
}

@media (max-width: 600px) {
  .promotions-grid {
    grid-template-columns: 1fr;
  }
  
  .promo-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
  
  .promo-detail-hero {
    height: 200px;
  }
  
  .promo-detail-hero-title {
    font-size: 20px;
  }
}
