/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Pirate Theme Colors */
  --primary-color: #8b4513; /* Saddle Brown */
  --secondary-color: #daa520; /* Goldenrod */
  --accent-color: #dc143c; /* Crimson */
  --dark-color: #2f1b14; /* Dark Brown */
  --light-color: #f5f5dc; /* Beige */

  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --gray-dark: #343a40;

  /* Typography */
  --font-heading: "Cinzel", serif;
  --font-body: "Open Sans", sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --border-radius: 8px;

  /* Shadows */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.8rem;
}
h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-color);
  color: var(--white);
  padding: 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  gap: 20px;
}

.cookie-content a {
  color: var(--secondary-color);
}

.btn-accept {
  background: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
}

/* Header */
.header {
  background: rgba(47, 27, 20, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 60px;
}

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

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary-color);
  padding: 20px 0;
  box-shadow: var(--shadow-medium);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

/* Hero Section */
.hero {
  background: linear-gradient(
      135deg,
      rgba(47, 27, 20, 0.9),
      rgba(139, 69, 19, 0.9)
    ),
    url("images/hero.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

/* Game Overview */
.game-overview {
  padding: var(--section-padding);
  background: var(--white);
}

.game-overview h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 60px;
  color: var(--gray-medium);
}

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

.feature-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--gray-light);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-icon img {
  width: 80px;
  height: 80px;
}

/* Gameplay Mechanics */
.gameplay {
  padding: var(--section-padding);
  background: var(--light-color);
}

.gameplay h2 {
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
}

.mechanics-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.mechanic-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mechanic-item.reverse {
  direction: rtl;
}

.mechanic-item.reverse > * {
  direction: ltr;
}

.mechanic-content h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.mechanic-content ul {
  list-style: none;
  margin-top: 20px;
}

.mechanic-content li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.mechanic-content li::before {
  content: "⚓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.mechanic-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

/* Target Audience */
.target-audience {
  padding: var(--section-padding);
  background: var(--white);
}

.target-audience h2 {
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.audience-card {
  padding: 30px;
  background: var(--gray-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
}

.audience-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Screenshots */
.screenshots {
  padding: var(--section-padding);
  background: var(--dark-color);
  color: var(--white);
}

.screenshots h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.screenshots .section-intro {
  color: var(--white);
  opacity: 0.8;
}

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

.screenshot-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.screenshot-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.screenshot-item:hover img {
  transform: scale(1.1);
}

.screenshot-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay {
  transform: translateY(0);
}

/* Reviews */
.reviews {
  padding: var(--section-padding);
  background: var(--light-color);
}

.reviews h2 {
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
}

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

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

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.stars {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* System Requirements */
.system-requirements {
  padding: var(--section-padding);
  background: var(--white);
}

.system-requirements h2 {
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
}

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.req-column {
  background: var(--gray-light);
  padding: 40px;
  border-radius: var(--border-radius);
}

.req-column h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.req-column ul {
  list-style: none;
}

.req-column li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.req-column li:last-child {
  border-bottom: none;
}

/* FAQ */
.faq {
  padding: var(--section-padding);
  background: var(--light-color);
}

.faq h2 {
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
}

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

.faq-item {
  background: var(--white);
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.faq-question {
  padding: 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--gray-light);
}

.faq-question h3 {
  margin: 0;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 25px;
  max-height: 200px;
}

/* Newsletter */
.newsletter {
  padding: var(--section-padding);
  background: var(--primary-color);
  color: var(--white);
}

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

.newsletter h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.newsletter-form {
  margin-top: 40px;
}

.form-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.form-group input[type="email"] {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-group a {
  color: var(--secondary-color);
}

.contact-info {
  font-size: 0.9rem;
  opacity: 0.8;
}

.contact-info a {
  color: var(--secondary-color);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 60px;
}

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu.active li {
    margin: 10px 20px;
  }

  .nav-menu.active a {
    padding: 10px 0;
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .mechanic-item,
  .mechanic-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .form-group {
    flex-direction: column;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }

  .features-grid,
  .audience-grid,
  .reviews-grid,
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .feature-card,
  .audience-card,
  .review-card {
    padding: 20px;
  }

  .mechanic-content,
  .req-column {
    padding: 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.audience-card,
.review-card,
.screenshot-item {
  animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

/* Print styles */
@media print {
  .header,
  .cookie-banner,
  .newsletter,
  .footer {
    display: none;
  }

  .hero {
    background: none;
    color: var(--black);
  }

  * {
    box-shadow: none !important;
  }
}
