/* Pin-Up Casino - Light/Clean Design System */

:root {
  /* Color Palette - Light Theme */
  --bg-body: #F5F7FA;
  --bg-sidebar: #FFFFFF;
  --bg-header: #FFFFFF;
  --bg-card: #FFFFFF;

  --primary-green: #2E7D32;
  /* Banner green */
  --primary-red: #E31E24;
  /* Pin-Up Red */
  --accent-gold: #FFD700;

  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #FFFFFF;

  --border-color: #E0E0E0;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.05);

  --sidebar-width: 240px;
  --header-height: 70px;
  --ticker-height: 40px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  padding-bottom: var(--ticker-height);
  /* Space for ticker */
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style-position: inside;
}

/* --- Layout Wrapper --- */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.logo-area {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-area img {
  max-width: 120px;
  height: auto;
}

.sidebar-nav {
  padding: 20px 0;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.nav-item:hover,
.nav-item.active {
  background-color: #F0F7F0;
  /* Light green tint */
  color: var(--primary-green);
  border-left-color: var(--primary-red);
}

.nav-item .icon {
  margin-right: 15px;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.lang-switch {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* --- Main Content --- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  width: calc(100% - var(--sidebar-width));
}

/* --- Header --- */
.top-header {
  height: var(--header-height);
  background-color: var(--bg-header);
  box-shadow: var(--shadow-header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.header-link.special {
  color: var(--primary-red);
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bonus-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-right: 15px;
  display: none;
  /* Show on larger screens */
}

@media (min-width: 1200px) {
  .bonus-text {
    display: block;
  }
}

.btn-login,
.btn-register {
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.btn-login {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-register {
  background-color: var(--primary-red);
  color: white;
}

.btn-login:hover {
  background-color: #f0f0f0;
}

.btn-register:hover {
  opacity: 0.9;
}

/* --- Hero Banner --- */
.hero-banner {
  background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
  color: white;
  padding: 40px 50px;
  margin: 30px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
  display: flex;
  align-items: center;
  min-height: 250px;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-banner h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-banner p {
  font-size: 1.5rem;
  margin-bottom: 25px;
  opacity: 0.95;
}

.btn-banner {
  background-color: var(--primary-red);
  color: white;
  border: none;
  padding: 12px 35px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 30px;
  /* Pill shape */
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.btn-banner:hover {
  transform: translateY(-2px);
}

/* --- Game Categories --- */
.game-categories {
  padding: 0 30px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  /* For scrollbar */
}

.cat-item {
  padding: 8px 16px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
}

.cat-item.active,
.cat-item:hover {
  background-color: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

/* --- Slots Grid --- */
.slots-grid-wrapper {
  padding: 0 30px 40px;
}

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-left: 4px solid var(--primary-red);
  padding-left: 15px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.slot-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.slot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.slot-img-container {
  width: 100%;
  aspect-ratio: 1;
  /* Square images mostly */
  position: relative;
  overflow: hidden;
}

.slot-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.slot-card:hover .slot-img-container img {
  transform: scale(1.1);
}

.slot-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.3s;
}

.slot-card:hover .slot-overlay {
  opacity: 1;
}

.btn-play {
  background-color: var(--primary-red);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
}

.slot-details {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 1px solid #f0f0f0;
}

/* --- SEO Content --- */
.seo-content {
  background-color: white;
  padding: 50px 30px;
  border-top: 1px solid var(--border-color);
}

.seo-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-red);
}

.seo-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
}

.seo-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: #444;
}

.seo-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #555;
  text-align: justify;
}

.seo-content ul,
.seo-content ol {
  margin-left: 20px;
  margin-bottom: 1.5rem;
  color: #555;
}

.seo-content li {
  margin-bottom: 0.5rem;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  margin-top: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 20px;
  margin: 0;
  background-color: #f9f9f9;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: #f0f0f0;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background-color: white;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
  /* Approximate max height */
}

/* --- Winning Ticker --- */
.winning-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--ticker-height);
  background-color: #1a1a1a;
  color: white;
  z-index: 1000;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  background-color: var(--primary-red);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-slide 30s linear infinite;
  padding-left: 20px;
}

.ticker-item {
  margin-right: 40px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.ticker-amount {
  color: var(--primary-green);
  /* Bright green text for money */
  font-weight: 700;
  margin-left: 5px;
}

@keyframes ticker-slide {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* --- Popup --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: white;
  width: 400px;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close-popup:hover {
  color: #333;
}

.popup-content h2 {
  font-size: 2.5rem;
  color: var(--primary-red);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.popup-content p {
  font-size: 1.2rem;
  color: #666;
  margin: 5px 0 20px;
}

.popup-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #1a1a1a;
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  line-height: 1.2;
}

.btn-popup {
  background-color: var(--primary-green);
  color: white;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
  text-transform: uppercase;
}

.btn-popup:hover {
  background-color: #256628;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .layout-wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
  }

  .nav-item {
    flex-direction: column;
    padding: 10px 15px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .nav-item:hover,
  .nav-item.active {
    border-left: none;
    border-bottom-color: var(--primary-red);
  }

  .nav-item .icon {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .hero-banner {
    margin: 20px 15px;
    padding: 30px;
  }

  .hero-banner h1 {
    font-size: 2.5rem;
  }

  .slots-grid-wrapper {
    padding: 0 15px 30px;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-left .header-link {
    display: none;
    /* Simplify header on mobile */
  }
}

@media (max-width: 480px) {
  .slots-grid {
    grid-template-columns: 1fr;
  }

  /* Single column slots on very small screens */
  .popup-content {
    width: 90%;
    padding: 25px;
  }

  .popup-amount {
    font-size: 1.5rem;
  }
}