@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css');

:root {
  --primary-color: #BD57E7;
  --accent-primary: #8E4FF8;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-tertiary: #FAFAFA;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-tertiary: #6E6E73;
  --border-color: #D2D2D7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure images load properly */
img[src] {
  opacity: 1;
  transition: opacity 0.3s;
}

img[src=""] {
  opacity: 0;
}

/* Image error handling */
img {
  background-color: var(--bg-secondary);
  background-image: linear-gradient(135deg, rgba(142, 79, 248, 0.1), rgba(189, 87, 231, 0.1));
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.navbar .logo img {
  height: 40px;
}

.navbar-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar-menu li a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-menu li a:hover {
  color: var(--accent-primary);
}

.navbar .auth-buttons {
  display: flex;
  gap: 12px;
}

.btn-login {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-register {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-login:hover {
  background: var(--bg-secondary);
}

.btn-register:hover {
  background: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Main Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: var(--bg-primary);
}

/* Bonus Header */
.bonus-header {
  padding: 48px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.bonus-header-content h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bonus-header-content p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Featured Bonus */
.featured-bonus {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.bonus-card-large {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.bonus-image {
  overflow: hidden;
  background: var(--bg-secondary);
  min-height: 400px;
}

.bonus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

.bonus-details {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bonus-badge {
  display: inline-block;
  background: var(--accent-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  width: fit-content;
}

.bonus-details h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bonus-amount {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.bonus-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bonus-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.bonus-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.bonus-feature i {
  color: var(--accent-primary);
  font-size: 18px;
}

.btn-claim-bonus {
  background: var(--accent-primary);
  color: white;
  padding: 14px 32px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  text-align: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
  width: fit-content;
}

.btn-claim-bonus:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Bonus Promotions */
.bonus-promotions {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.bonus-promotions h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.promotion-card {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.2s;
}

.promotion-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.promotion-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--accent-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}

.promotion-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.promotion-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.promotion-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.promotion-btn {
  background: var(--accent-primary);
  color: white;
  padding: 10px 24px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: all 0.2s;
}

.promotion-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Bonus Screenshots */
.bonus-screenshots {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.bonus-screenshots h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.screenshots-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.screenshots-container::-webkit-scrollbar {
  height: 8px;
}

.screenshots-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.screenshots-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.screenshot-item {
  flex-shrink: 0;
  width: 200px;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-secondary);
}

.screenshot-item img[src=""],
.screenshot-item img:not([src]) {
  background: linear-gradient(135deg, var(--accent-primary), var(--primary-color));
}

/* Game Collection */
.game-collection {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.game-collection h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  background: var(--bg-secondary);
  min-height: 240px;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--accent-primary), var(--primary-color));
}

.game-card img[src=""],
.game-card img:not([src]) {
  background: linear-gradient(135deg, var(--accent-primary), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.btn-play {
  background: var(--accent-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: all 0.2s;
  width: 100%;
  text-align: center;
}

.btn-play:hover {
  background: var(--primary-color);
}

/* Bonus Terms */
.bonus-terms {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.bonus-terms h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.terms-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.term-item {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.term-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.term-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Section */
.faq {
  padding: 32px 0;
}

.faq h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 40px 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo img {
  height: 40px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.footer-copy a {
  color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }

  .navbar-menu {
    display: none;
  }

  .bonus-header-content h1 {
    font-size: 32px;
  }

  .bonus-card-large {
    grid-template-columns: 1fr;
  }

  .bonus-image {
    height: 300px;
  }

  .promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .terms-content {
    grid-template-columns: 1fr;
  }

  .screenshot-item {
    width: 160px;
    height: 320px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 16px;
  }

  .bonus-header-content h1 {
    font-size: 28px;
  }

  .promotions-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-item {
    width: 140px;
    height: 280px;
  }
}
