/* 
 * PachiPlay - Main Stylesheet
 * Modern, responsive design for premium online gaming experience
 */

/* === RESET & BASE STYLES === */
:root {
  --primary-color: #5534A5;
  --secondary-color: #30D5C8;
  --accent-color: #FF6B6B;
  --dark-color: #2A2D34;
  --light-color: #F8F9FA;
  --text-color: #333333;
  --text-light: #FFFFFF;
  --gray-color: #6c757d;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

/* === CONTAINER & LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
  position: relative;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #472a8c;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(85, 52, 165, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.btn-secondary:hover {
  background-color: #28b5ab;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(48, 213, 200, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-large {
  padding: 14px 30px;
  font-size: 1.1rem;
}

/* === HEADER & NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  margin-right: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 20px;
}

.nav-list a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
}

.nav-list a:hover {
  color: var(--primary-color);
  background-color: rgba(85, 52, 165, 0.1);
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* === FEATURED GAMES SECTION === */
.featured-games {
  padding: 100px 0;
  background-color: var(--light-color);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.game-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.game-image {
  height: 200px;
  width: 100%;
  background: linear-gradient(135deg, #5534A5, #7B68EE);
  position: relative;
  overflow: hidden;
}

.game-image::before {
  content: '🎮';
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
  width: 100%;
  height: 100%;
}

.game-card h3 {
  padding: 20px 20px 10px;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.game-card p {
  padding: 0 20px 20px;
  color: var(--gray-color);
  flex-grow: 1;
}

.game-card .btn {
  margin: 0 20px 20px;
}

/* === NEWS SECTION === */
.news-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}

.news-container {
  max-width: 800px;
  margin: 0 auto;
}

.news-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.news-card h3 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

/* === PROMOTIONS SECTION === */
.promotions {
  padding: 100px 0;
  background-color: var(--light-color);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.promo-card {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  border-radius: var(--border-radius);
  padding: 30px;
  color: white;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

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

.promo-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.promo-card p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

/* === ABOUT SECTION === */
.about-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(85, 52, 165, 0.05), rgba(48, 213, 200, 0.05));
}

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

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--dark-color);
}

/* === TESTIMONIALS === */
.testimonials {
  padding: 100px 0;
  background-color: var(--light-color);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.testimonial-content {
  position: relative;
  padding-left: 30px;
}

.testimonial-content::before {
  content: """;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-color);
  opacity: 0.3;
}

.testimonial-author {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* === CONTACT SECTION === */
.contact-section {
  padding: 100px 0;
  background-color: #f0f2f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-info h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.contact-list li {
  margin-bottom: 15px;
  color: var(--gray-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(85, 52, 165, 0.1);
}

/* === FOOTER === */
.footer {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 80px 0 30px;
}

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.footer-logo .tagline {
  font-size: 1rem;
  font-weight: normal;
  color: var(--gray-color);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

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

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-newsletter h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-newsletter p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border-radius: var(--border-radius);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 10px;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 20px;
    gap: 10px;
  }
  
  .nav-list.show {
    display: flex;
  }
  
  .auth-buttons {
    margin-left: auto;
  }
  
  .hero {
    padding: 150px 0 80px;
  }
  
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .games-grid,
  .promo-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .auth-buttons {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form .btn {
    width: 100%;
  }
}

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

/* Placeholder for image until loaded */
.placeholder-image {
  background: linear-gradient(135deg, #5534A5, #30D5C8);
  position: relative;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}
