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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #e53935;
  color: #ffffff;
  border-color: #e53935;
}

.btn-primary:hover {
  background-color: #c62828;
  border-color: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(229, 57, 53, 0.3);
}

.btn-secondary {
  background-color: #1e88e5;
  color: #ffffff;
  border-color: #1e88e5;
}

.btn-secondary:hover {
  background-color: #1565c0;
  border-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(30, 136, 229, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #e53935;
  border-color: #e53935;
}

.btn-outline:hover {
  background-color: #e53935;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Header */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 80px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e53935;
  position: relative;
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e53935;
}

/* Navigation */
.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #e53935;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e53935;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: #333333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #322929 0%, #c62828 100%);
  color: #ffffff;
  overflow: hidden;
  margin-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("images/herobg.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-headline {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Styles */
.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #e53935;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Featured Platforms */
.featured-platforms {
  padding: 5rem 0;
  background-color: #f5f5f5;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.all-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .all-platforms-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

.platform-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(229, 57, 53, 0.1);
}

.platform-card.featured {
  border-color: #e53935;
  position: relative;
}

.platform-card.featured::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #e53935, #1e88e5, #43a047);
  border-radius: 18px;
  z-index: -1;
  opacity: 0.1;
}

.platform-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.platform-logo img {
  height: 60px;
  width: auto;
}

.platform-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.badge.editor-choice {
  background-color: #43a047;
  color: #ffffff;
}

.badge.rating-high {
  background-color: #1e88e5;
  color: #ffffff;
  font-size: 1.25rem;
  min-width: 60px;
}

.platform-name {
  color: #e53935;
  margin-bottom: 0.5rem;
}

.platform-tagline {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

.platform-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Ratings */
.platform-ratings {
  margin-bottom: 1.5rem;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.rating-label {
  font-weight: 500;
  min-width: 80px;
  font-size: 0.875rem;
}

.rating-bar {
  flex: 1;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, #43a047 0%, #ffb300 50%, #e53935 100%);
  transition: width 0.3s ease;
}

.rating-value {
  font-weight: 600;
  color: #333;
  min-width: 30px;
  text-align: right;
}

/* Features */
.platform-features {
  margin-bottom: 1.5rem;
}

.platform-features h4 {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1rem;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.features-list li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #43a047;
  font-weight: bold;
}

/* Bonus */
.platform-bonus {
  background: linear-gradient(135deg, #ffb300, #ff8f00);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: center;
}

.bonus-badge {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.bonus-details {
  margin-bottom: 0.5rem;
}

.bonus-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.bonus-description {
  font-size: 1rem;
}

.bonus-terms {
  font-size: 0.75rem;
  opacity: 0.8;
  margin: 0;
}

/* Platform Details */
.platform-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.detail-item {
  text-align: center;
}

.detail-label {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 600;
  color: #333;
}

/* Platform Actions */
.platform-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.platform-actions .btn {
  flex: 1;
  min-width: 140px;
}

.all-platforms-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: wrap;
}

.all-platforms-actions .btn {
  width: 100%;
  min-width: 140px;
}

/* Methodology Section */
.methodology {
  padding: 5rem 0;
  background-color: #ffffff;
}

.methodology-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.methodology-card {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.methodology-card h3 {
  color: #e53935;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: #333333;
  color: #ffffff;
  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: #e53935;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 30px;
  width: auto;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e53935;
}

.footer-tagline {
  color: #cccccc;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
  color: #e53935;
}

.legal-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.legal-icon {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.legal-icon:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid #555555;
  padding-top: 1rem;
  text-align: center;
  color: #cccccc;
  font-size: 0.875rem;
}

.disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 0.75rem 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

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

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

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

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
  }

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

  .all-platforms-grid {
    grid-template-columns: 1fr;
  }

  .platform-actions {
    flex-direction: column;
  }

  .all-platforms-actions {
    flex-direction: column;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .platform-details {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .detail-item {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

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

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

  .platform-card {
    padding: 1.5rem;
  }

  .platform-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .platform-badges {
    flex-direction: row;
    align-items: center;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus {
  outline: 2px solid #e53935;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .hero,
  .mobile-menu-btn {
    display: none;
  }

  .platform-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
