/*
 * Fun88 Theme - Main Stylesheet
 * Version: 1.0.0
 */

/* ====================
   Header Styles
   ==================== */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}

.nav-desktop {
  flex: 1;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #333;
  font-weight: 500;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #0066cc;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn-login,
.btn-register {
  padding: 10px 20px;
  font-size: 14px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  position: relative;
  transition: background-color 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: transform 0.3s ease;
}

.menu-toggle-icon::before {
  top: -8px;
}

.menu-toggle-icon::after {
  top: 8px;
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  background-color: #fff;
  border-top: 1px solid #eee;
  padding: 20px 0;
}

.nav-menu-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu-mobile li {
  margin-bottom: 15px;
}

.nav-menu-mobile a {
  color: #333;
  font-size: 16px;
  padding: 10px 0;
  display: block;
}

.mobile-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-login-full,
.btn-register-full {
  width: 100%;
  padding: 12px 20px;
  text-align: center;
}

/* ====================
   Hero Section
   ==================== */
.hero-section {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: #fff;
  padding: 80px 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 15px 30px;
  font-size: 16px;
}

.hero-buttons .btn-secondary {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}

.hero-buttons .btn-secondary:hover {
  background-color: #fff;
  color: #0066cc;
}

/* ====================
   Content Sections
   ==================== */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #0066cc;
  margin: 15px auto 0;
}

/* Intro Section */
.intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.stat-item {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #0066cc;
}

.stat-item h3 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0066cc;
  margin: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stat-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0066cc;
  margin: 0;
}

/* License Section */
.license-content {
  max-width: 900px;
  margin: 0 auto;
}

.license-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.license-list li {
  background-color: #fff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #0066cc;
}

.license-list h3 {
  color: #0066cc;
  margin-bottom: 10px;
}

.license-list p {
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* Games Section */
.games-content {
  max-width: 1000px;
  margin: 0 auto;
}

.game-category {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.game-category h3 {
  color: #0066cc;
  font-size: 1.5rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.game-category ul {
  margin-top: 15px;
}

.game-category li {
  margin-bottom: 10px;
  line-height: 1.8;
  color: #555;
}

/* Advantages Section */
.advantages-content {
  max-width: 1000px;
  margin: 0 auto;
}

.advantage-item {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.advantage-item h3 {
  color: #0066cc;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.advantage-item ul {
  margin-top: 15px;
  padding-left: 20px;
}

.advantage-item li {
  margin-bottom: 10px;
  line-height: 1.8;
  color: #555;
}

/* Guide Section */
.guide-content {
  max-width: 900px;
  margin: 0 auto;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.step-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0066cc, #004499);
}

.step-item h3 {
  color: #0066cc;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* FAQ Section */
.faq-content {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #0066cc;
}

.faq-item h3 {
  color: #0066cc;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.faq-item p {
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-content h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* ====================
   Page Templates
   ==================== */
.page-hero {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 2.2rem;
  margin: 0;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.page-content h2 {
  color: #0066cc;
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  color: #333;
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.page-content ul,
.page-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
  color: #555;
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.promotion-item {
  background-color: #f8f9fa;
  padding: 25px;
  margin: 25px 0;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
}

.promotion-item h3 {
  color: #0066cc;
  margin-top: 0;
}

.contact-info {
  padding: 25px;
  margin: 25px 0;
  border-radius: 8px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.contact-info li:last-child {
  border-bottom: none;
}

.contact-form {
  background-color: #f8f9fa;
  padding: 30px;
  margin: 30px 0;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ====================
   Single & Archive
   ==================== */
.single-content,
.archive-content,
.index-content {
  min-height: 50vh;
}

.entry-header {
  margin-bottom: 30px;
}

.entry-title {
  color: #0066cc;
  font-size: 2rem;
  margin-bottom: 15px;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  color: #004499;
}

.post-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.post-meta span {
  margin-right: 20px;
}

.entry-content {
  color: #555;
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3 {
  color: #0066cc;
  margin-top: 30px;
  margin-bottom: 15px;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
  color: #555;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.post-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.post-item {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.entry-summary {
  color: #666;
  line-height: 1.8;
  margin: 20px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #0066cc;
  text-decoration: none;
}

.pagination a:hover {
  background-color: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

.pagination .current {
  background-color: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

/* ====================
   Footer
   ==================== */
.site-footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066cc;
}

.footer-section p {
  line-height: 1.8;
  color: #aaa;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #0066cc;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 10px;
  color: #aaa;
}

.footer-seo {
  border-top: 1px solid #333;
  padding-top: 30px;
  margin-bottom: 30px;
}

.footer-seo p {
  color: #888;
  line-height: 1.8;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* ====================
   Responsive Design
   ==================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .nav-mobile {
    display: block;
  }
  
  .header-actions {
    display: none;
  }
  
  .hero-section {
    padding: 50px 0;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .intro-stats,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .guide-steps {
    grid-template-columns: 1fr;
  }
  
  .page-content {
    padding: 25px;
  }
  
  .page-hero h1 {
    font-size: 1.6rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .entry-title {
    font-size: 1.6rem;
  }
  
  .stat-card,
  .advantage-item,
  .game-category,
  .faq-item,
  .promotion-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .page-content h2 {
    font-size: 1.4rem;
  }
  
  .page-content h3 {
    font-size: 1.2rem;
  }
}

/* ====================
   Utility Classes
   ==================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* ====================
   Accessibility
   ==================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: auto;
  z-index: 9999;
  background-color: #fff;
  padding: 10px;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ====================
   Content Images
   ==================== */
.content-image {
  margin: 30px 0;
  text-align: center;
}

.content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-image figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

@media (max-width: 768px) {
  .content-image {
    margin: 20px 0;
  }
  
  .content-image figcaption {
    font-size: 13px;
  }
}
