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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #0a0a0a;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Color Scheme - Medieval/War Theme */
:root {
  --primary-color: #8b0000; /* Dark Red */
  --secondary-color: #daa520; /* Gold */
  --accent-color: #2f4f4f; /* Dark Slate Gray */
  --text-light: #f5f5dc; /* Beige */
  --text-dark: #1c1c1c; /* Almost Black */
  --background-dark: #0a0a0a;
  --background-light: #1a1a1a;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--background-light);
  border-top: 2px solid var(--primary-color);
  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: 1200px;
  margin: 0 auto;
  color: var(--text-light);
}

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

/* Header */
.header {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 2px solid var(--primary-color);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0.2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(218, 165, 32, 0.1);
  border: 1px solid rgba(218, 165, 32, 0.3);
}

.back-button:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  transform: translateX(-2px);
  box-shadow: 0 4px 8px rgba(218, 165, 32, 0.3);
}

.back-arrow {
  font-size: 1.2rem;
  font-weight: bold;
}

.back-text {
  font-size: 0.9rem;
}

.logo {
  height: 80px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

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

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

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 3px 0;
  transition: 0.3s;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

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

.btn-primary:hover {
  background: #a52a2a;
  transform: translateY(-2px);
}

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

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

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* Hero Section */
.hero {
  background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.7) 0%,
      rgba(26, 26, 26, 0.7) 100%
    ),
    url("images/1.webp") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(139, 0, 0, 0.3) 0%,
    rgba(218, 165, 32, 0.2) 100%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 3rem;
  border-radius: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(218, 165, 32, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--background-light);
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* Game Overview */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.overview-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.overview-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.overview-item h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.overview-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Gameplay */
.gameplay-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.gameplay-text h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.gameplay-text p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.gameplay-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Civilizations */
.civilizations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.civilization-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(218, 165, 32, 0.2);
  transition: transform 0.3s ease;
}

.civilization-card:hover {
  transform: translateY(-5px);
}

.civilization-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.civilization-card h3 {
  color: var(--secondary-color);
  padding: 1rem;
  font-size: 1.2rem;
}

.civilization-card p {
  color: var(--text-light);
  padding: 0 1rem 1rem;
  line-height: 1.6;
}

/* Magic Section */
.magic-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

.magic-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.magic-text h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.magic-text p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Game Modes */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.mode-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(218, 165, 32, 0.2);
  transition: transform 0.3s ease;
}

.mode-card:hover {
  transform: translateY(-5px);
}

.mode-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.mode-card h3 {
  color: var(--secondary-color);
  padding: 1rem;
  font-size: 1.2rem;
}

.mode-card p {
  color: var(--text-light);
  padding: 0 1rem 1rem;
  line-height: 1.6;
}

/* Battle Maps */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.map-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(218, 165, 32, 0.2);
  transition: transform 0.3s ease;
}

.map-card:hover {
  transform: translateY(-5px);
}

.map-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.map-card h3 {
  color: var(--secondary-color);
  padding: 1rem;
  font-size: 1.2rem;
}

.map-card p {
  color: var(--text-light);
  padding: 0 1rem 1rem;
  line-height: 1.6;
}

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.screenshot {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.screenshot:hover {
  transform: scale(1.05);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(218, 165, 32, 0.2);
}

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

.review-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.reviewer strong {
  color: var(--secondary-color);
  display: block;
}

.reviewer span {
  color: var(--text-light);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
}

.faq-question h3 {
  color: var(--text-light);
  font-size: 1.1rem;
}

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

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Download CTA */
.download-cta {
  background: var(--primary-color);
  text-align: center;
}

.download-cta h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.download-cta p {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3,
.newsletter h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.contact-info p,
.newsletter p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-item {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.contact-item strong {
  color: var(--secondary-color);
}

.contact-item a {
  color: var(--text-light);
  text-decoration: none;
}

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

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(245, 245, 220, 0.6);
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.consent-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--secondary-color);
}

.consent-checkbox label {
  color: var(--text-light);
  cursor: pointer;
  flex: 1;
}

.consent-checkbox label a {
  color: var(--secondary-color);
  text-decoration: none;
}

.consent-checkbox label a:hover {
  text-decoration: underline;
}

/* Disabled submit button */
.newsletter-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--accent-color) !important;
}

.newsletter-form button[type="submit"]:disabled:hover {
  transform: none;
  background: var(--accent-color) !important;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(
    135deg,
    var(--background-dark) 0%,
    var(--background-light) 100%
  );
  border: 2px solid var(--secondary-color);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.modal-header h3 {
  color: var(--secondary-color);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  color: var(--text-light);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--secondary-color);
  background: rgba(218, 165, 32, 0.1);
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

.modal-body p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(218, 165, 32, 0.3);
}

.modal-btn {
  min-width: 120px;
  padding: 12px 24px;
}

.error-modal .modal-header h3 {
  color: #ff6b6b;
}

.error-modal {
  border-color: #ff6b6b;
}

/* Footer */
.footer {
  background: var(--text-dark);
  padding: 3rem 0 1rem;
}

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

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

.footer-section p,
.footer-section li {
  color: var(--text-light);
  line-height: 1.6;
}

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

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

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

.footer-logo {
  height: 70px;
  margin-bottom: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(218, 165, 32, 0.2);
  padding-top: 1rem;
  text-align: center;
  color: var(--text-light);
  opacity: 0.8;
}

/* Policy Pages Styles */
.policy-main {
  padding-top: 120px;
  min-height: 100vh;
}

.policy-section {
  padding: 80px 0;
  background: var(--background-dark);
}

.policy-section:nth-child(even) {
  background: var(--background-light);
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.policy-content h1 {
  color: var(--text-light);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.policy-content h2 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin: 3rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

.policy-content h3 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin: 2rem 0 1rem 0;
}

.policy-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.policy-content ul,
.policy-content ol {
  color: var(--text-light);
  margin-left: 2rem;
  margin-bottom: 2rem;
}

.policy-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.policy-content .highlight {
  background: rgba(218, 165, 32, 0.1);
  padding: 1rem;
  border-left: 4px solid var(--secondary-color);
  margin: 1.5rem 0;
}

.policy-content .contact-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(218, 165, 32, 0.2);
  margin: 2rem 0;
}

.policy-content .contact-info strong {
  color: var(--secondary-color);
}

.policy-content .last-updated {
  text-align: center;
  color: var(--text-light);
  opacity: 0.8;
  font-style: italic;
  margin-bottom: 2rem;
}

/* Modal Mobile Styles */
@media (max-width: 960px) {
  .modal-content {
    width: 95%;
    margin: 20px;
    max-height: 90vh;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-header h3 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
  }
}

/* Back Button Mobile Styles */
@media (max-width: 768px) {
  .nav {
    justify-content: space-between;
  }

  .back-button {
    padding: 0.4rem 0.8rem;
  }

  .back-text {
    display: none;
  }

  .back-arrow {
    font-size: 1.4rem;
  }
}

/* Responsive Design */
@media (max-width: 960px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--background-light);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    text-align: center;
    padding: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8),
      0 0 15px rgba(218, 165, 32, 0.4);
  }

  .gameplay-content,
  .magic-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-buttons,
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

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

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

  .policy-main {
    padding-top: 100px;
  }

  .policy-section {
    padding: 60px 0;
  }

  .policy-content h1 {
    font-size: 2rem;
  }

  .policy-content {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .back-button {
    padding: 0.3rem 0.6rem;
  }

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

  section {
    padding: 60px 0;
  }

  section h2 {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }
}
