/* 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: #f5f7fa;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Global Styles */
:root {
  --primary: #2563eb;
  --secondary: #7c3aed;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --amazon: #ff9900;
  --flipkart: #2874f0;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

.logo span {
  color: #fbbf24;
}

nav ul {
  display: flex;
  list-style: none;
}
nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: #fbbf24;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Comparison Header */
.comparison-header {
  text-align: center;
  padding: 2rem 0;
}

.comparison-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.product-name {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Comparison Grid */
.comparison-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 3rem;
}

.platform-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.platform-tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.platform-tab.active {
  border-bottom: 3px solid var(--primary);
  color: var(--primary);
}

.platform-tab.amazon {
  background-color: rgba(255, 153, 0, 0.1);
}

.platform-tab.flipkart {
  background-color: rgba(40, 116, 240, 0.1);
}

.platform-tab.amazon.active {
  border-bottom-color: var(--amazon);
  color: var(--amazon);
}

.platform-tab.flipkart.active {
  border-bottom-color: var(--flipkart);
  color: var(--flipkart);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
}

.comparison-row {
  display: contents;
}

.row-header,
.amazon-data,
.flipkart-data {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.row-header {
  font-weight: 600;
  background-color: #f8fafc;
}

.highlight-row .row-header,
.highlight-row .amazon-data,
.highlight-row .flipkart-data {
  background-color: #f0f7ff;
}

.price-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e63946;
}

.original-price {
  text-decoration: line-through;
  color: var(--gray);
  margin-right: 0.5rem;
}

.discount-badge {
  background: #e63946;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-amazon {
  background: var(--amazon);
  color: #111;
}

.btn-amazon:hover {
  background: #e68a00;
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(255, 153, 0, 0.3);
}

.btn-flipkart {
  background: var(--flipkart);
  color: white;
}

.btn-flipkart:hover {
  background: #1a5fd6;
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(40, 116, 240, 0.3);
}

.rating {
  display: flex;
  align-items: center;
}

.stars {
  color: #fbbf24;
  margin-right: 0.5rem;
}

.platform-logo {
  height: 30px;
  margin-right: 0.5rem;
}

/* Product Images */
.product-images {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #eee;
}

.product-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Key Features */
.key-features {
  margin: 2rem 0;
}

.key-features h2 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Verdict */
.verdict {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.verdict h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.verdict-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.verdict-badge {
  flex-shrink: 0;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

/* Footer */
footer {
  background: #1e293b;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-col h3 {
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.85rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
  }

  .row-header {
    width: 100%;
    padding: 0.75rem;
  }

  .amazon-data,
  .flipkart-data {
    width: 50%;
    padding: 0.75rem;
  }

  .platform-tabs {
    flex-direction: column;
  }

  .verdict-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .product-images {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .amazon-data,
  .flipkart-data {
    width: 100%;
  }

  .comparison-row {
    flex-direction: column;
  }
}
