@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-purple: #794B96;
  --purple-dark: #5a3570;
  --purple-light: #9b6bb8;
  --accent-purple: #E3B2FB;
  --bg-primary: #f5f5f5;
  --bg-card: #ffffff;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  --border-color: #e8eaed;
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --shadow-md: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
  --shadow-lg: 0 2px 4px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navbar */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--primary-purple);
}

.auth-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-login {
  background: transparent;
  color: var(--primary-purple);
  border: 1px solid var(--primary-purple);
}

.btn-login:hover {
  background: var(--primary-purple);
  color: white;
}

.btn-register {
  background: var(--primary-purple);
  color: white;
}

.btn-register:hover {
  background: var(--purple-dark);
}

/* Play Store Layout */
.playstore-layout {
  background: var(--bg-primary);
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
}

.banner-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.banner-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Featured Bonus Card (App Header Style) */
.featured-bonus {
  background: var(--bg-card);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.bonus-header-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.bonus-icon-large {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-light) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.bonus-header-info {
  flex: 1;
}

.bonus-header-info h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bonus-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #fbbf24;
}

.stars i {
  font-size: 1.1rem;
}

.rating-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bonus-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px;
  background: rgba(121, 75, 150, 0.1);
  color: var(--primary-purple);
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(121, 75, 150, 0.2);
}

.bonus-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-install {
  padding: 12px 32px;
  background: var(--primary-purple);
  color: white;
  border-radius: 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-install:hover {
  background: var(--purple-dark);
  box-shadow: var(--shadow-md);
}

.btn-share {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-share:hover {
  background: var(--bg-primary);
  color: var(--primary-purple);
}

/* Screenshots Section */
.bonus-screenshots {
  background: var(--bg-card);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.bonus-screenshots h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.screenshot-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: transform 0.2s;
}

.screenshot-card:hover {
  transform: scale(1.02);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

.screenshot-overlay i {
  color: white;
  font-size: 2rem;
}

/* About Bonus Section */
.about-bonus {
  background: var(--bg-card);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.about-bonus h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 1rem;
}

.bonus-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.detail-item i {
  color: var(--primary-purple);
  font-size: 1.2rem;
}

/* More Bonuses List */
.more-bonuses {
  background: var(--bg-card);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.more-bonuses h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.bonuses-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-color);
}

.bonus-item-card {
  background: var(--bg-card);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background 0.2s;
}

.bonus-item-card:hover {
  background: var(--bg-primary);
}

.bonus-item-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-light) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
}

.bonus-item-info {
  flex: 1;
}

.bonus-item-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.bonus-item-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stars-small {
  display: flex;
  gap: 1px;
  color: #fbbf24;
  font-size: 0.85rem;
}

.bonus-item-rating span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.bonus-item-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.bonus-item-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-small {
  padding: 4px 10px;
  background: rgba(121, 75, 150, 0.1);
  color: var(--primary-purple);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-get {
  padding: 10px 24px;
  background: var(--primary-purple);
  color: white;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-get:hover {
  background: var(--purple-dark);
}

/* Reviews Section */
.bonus-reviews {
  background: var(--bg-card);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.reviews-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.overall-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rating-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stars-large {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  font-size: 1.2rem;
}

.total-reviews {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 12px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.reviewer-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.review-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.review-rating {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  font-size: 0.9rem;
}

.review-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.btn-view-all {
  margin-top: 20px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  color: var(--primary-purple);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-view-all:hover {
  background: var(--bg-primary);
  border-color: var(--primary-purple);
}

/* Related Games */
.related-games {
  background: var(--bg-card);
  padding: 32px 0;
}

.related-games h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.game-app-card {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.game-app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.game-app-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.game-app-info {
  padding: 12px;
}

.game-app-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.game-rating i {
  color: #fbbf24;
  font-size: 0.8rem;
}

.btn-play-small {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-purple);
  color: white;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-play-small:hover {
  background: var(--purple-dark);
}

/* Footer */
.footer {
  background: var(--bg-card);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-purple);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-copy a {
  color: var(--primary-purple);
}

/* Bonus Terms Section */
.bonus-terms {
  background: var(--bg-card);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.bonus-terms h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.terms-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.terms-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
}

.terms-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-card h4 i {
  font-size: 1.2rem;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.terms-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-purple);
  font-weight: bold;
  font-size: 1.2rem;
}

/* How to Claim Section */
.how-to-claim {
  background: var(--bg-primary);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.how-to-claim h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.claim-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.claim-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.claim-step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-purple);
}

.claim-step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.claim-step-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.claim-step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Bonus Comparison Table */
.bonus-comparison {
  background: var(--bg-card);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.bonus-comparison h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table thead {
  background: var(--primary-purple);
  color: white;
}

.comparison-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.comparison-table tbody tr:hover {
  background: var(--bg-primary);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.comparison-table td strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Bonus Tips Section */
.bonus-tips {
  background: var(--bg-primary);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.bonus-tips h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tip-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.tip-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-purple);
  transform: translateY(-4px);
}

.tip-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 16px;
}

.tip-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tip-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Promotional Calendar */
.promo-calendar {
  background: var(--bg-card);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.promo-calendar h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.calendar-description {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.calendar-item {
  display: flex;
  gap: 16px;
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.calendar-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-purple);
}

.calendar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 80px;
  background: var(--primary-purple);
  color: white;
  border-radius: 12px;
  text-align: center;
}

.calendar-date .day {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.calendar-date .date {
  font-size: 0.75rem;
  opacity: 0.9;
}

.calendar-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.calendar-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Bonus FAQ Section */
.bonus-faq {
  background: var(--bg-primary);
  padding: 48px 0;
}

.bonus-faq h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-primary);
}

.faq-question h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.faq-question i {
  color: var(--primary-purple);
  transition: transform 0.3s;
  font-size: 0.9rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bonus-header-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bonus-icon-large {
    width: 100px;
    height: 100px;
    font-size: 3rem;
  }

  .bonus-header-info {
    width: 100%;
  }

  .bonus-actions {
    justify-content: center;
    width: 100%;
  }

  .btn-install {
    flex: 1;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .overall-rating {
    align-items: flex-start;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .navbar-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .banner-content h1 {
    font-size: 1.75rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .bonus-item-card {
    flex-direction: column;
    text-align: center;
  }

  .btn-get {
    width: 100%;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .terms-content,
  .claim-steps,
  .tips-grid,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table-wrapper {
    overflow-x: scroll;
  }

  .comparison-table {
    min-width: 600px;
  }
}