body {
  background-image: url("https://www.pixelstalk.net/wp-content/uploads/2016/08/HD-Free-Universe-Download-Photos.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  padding: 20px;
}

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

.nav-bar {
  background: rgba(0, 10, 20, 0.8);
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

.nav-link {
  color: #79b6ca;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  background: rgba(79, 172, 254, 0.2);
  color: #a6d8da;
}

.back-to-main {
  background: rgba(90, 111, 169, 0.3);
  border: 1px solid rgba(79, 172, 254, 0.4);
}

.planet-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(79, 172, 254, 0.3);
}

.planet-title {
  font-size: 3rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.tab-navigation {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e1e1e1;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-width: 140px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: rgba(79, 172, 254, 0.2);
  border-color: rgba(79, 172, 254, 0.5);
  color: #79b6ca;
  font-weight: bold;
}

.tab-content {
  display: none;
  background: rgba(0, 10, 20, 0.7);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.planet-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.planet-image-container {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.planet-main-image {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.planet-info {
  flex: 2;
  min-width: 300px;
}

.planet-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
  color: #a6d8da;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

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

.fact-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid;
}

.tab-input {
  display: none;
}

.tab-labels {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-label {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e1e1e1;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-width: 140px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-label:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

#overview-tab:checked ~ #overview-content,
#facts-tab:checked ~ #facts-content,
#exploration-tab:checked ~ #exploration-content,
#comparison-tab:checked ~ #comparison-content {
  display: block;
}

#overview-tab:checked ~ .tab-labels label[for="overview-tab"],
#facts-tab:checked ~ .tab-labels label[for="facts-tab"],
#exploration-tab:checked ~ .tab-labels label[for="exploration-tab"],
#comparison-tab:checked ~ .tab-labels label[for="comparison-tab"] {
  background: rgba(79, 172, 254, 0.2);
  border-color: rgba(79, 172, 254, 0.5);
  color: #79b6ca;
  font-weight: bold;
}

.mercury #overview-tab:checked ~ .tab-labels label[for="overview-tab"],
.mercury #facts-tab:checked ~ .tab-labels label[for="facts-tab"],
.mercury #exploration-tab:checked ~ .tab-labels label[for="exploration-tab"],
.mercury #comparison-tab:checked ~ .tab-labels label[for="comparison-tab"] {
  background: rgba(91, 88, 86, 0.3);
  border-color: #7e736b;
}

.venus #overview-tab:checked ~ .tab-labels label[for="overview-tab"],
.venus #facts-tab:checked ~ .tab-labels label[for="facts-tab"],
.venus #exploration-tab:checked ~ .tab-labels label[for="exploration-tab"],
.venus #comparison-tab:checked ~ .tab-labels label[for="comparison-tab"] {
  background: rgba(209, 103, 22, 0.3);
  border-color: #d16716;
}

.earth #overview-tab:checked ~ .tab-labels label[for="overview-tab"],
.earth #facts-tab:checked ~ .tab-labels label[for="facts-tab"],
.earth #exploration-tab:checked ~ .tab-labels label[for="exploration-tab"],
.earth #comparison-tab:checked ~ .tab-labels label[for="comparison-tab"] {
  background: rgba(69, 116, 186, 0.3);
  border-color: #4574ba;
}

.mars #overview-tab:checked ~ .tab-labels label[for="overview-tab"],
.mars #facts-tab:checked ~ .tab-labels label[for="facts-tab"],
.mars #exploration-tab:checked ~ .tab-labels label[for="exploration-tab"],
.mars #comparison-tab:checked ~ .tab-labels label[for="comparison-tab"] {
  background: rgba(95, 54, 23, 0.3);
  border-color: #5f3617;
}

.jupiter #overview-tab:checked ~ .tab-labels label[for="overview-tab"],
.jupiter #facts-tab:checked ~ .tab-labels label[for="facts-tab"],
.jupiter #exploration-tab:checked ~ .tab-labels label[for="exploration-tab"],
.jupiter #comparison-tab:checked ~ .tab-labels label[for="comparison-tab"] {
  background: rgba(99, 117, 53, 0.3);
  border-color: #637535;
}

.saturn #overview-tab:checked ~ .tab-labels label[for="overview-tab"],
.saturn #facts-tab:checked ~ .tab-labels label[for="facts-tab"],
.saturn #exploration-tab:checked ~ .tab-labels label[for="exploration-tab"],
.saturn #comparison-tab:checked ~ .tab-labels label[for="comparison-tab"] {
  background: rgba(128, 71, 28, 0.3);
  border-color: #80471c;
}

.uranus #overview-tab:checked ~ .tab-labels label[for="overview-tab"],
.uranus #facts-tab:checked ~ .tab-labels label[for="facts-tab"],
.uranus #exploration-tab:checked ~ .tab-labels label[for="exploration-tab"],
.uranus #comparison-tab:checked ~ .tab-labels label[for="comparison-tab"] {
  background: rgba(11, 145, 212, 0.3);
  border-color: #0b91d4;
}

.neptune #overview-tab:checked ~ .tab-labels label[for="overview-tab"],
.neptune #facts-tab:checked ~ .tab-labels label[for="facts-tab"],
.neptune #exploration-tab:checked ~ .tab-labels label[for="exploration-tab"],
.neptune #comparison-tab:checked ~ .tab-labels label[for="comparison-tab"] {
  background: rgba(44, 39, 203, 0.3);
  border-color: #2c27cb;
}

.mercury-color {
  border-color: #918881;
  color: #c3bcb8;
}
.venus-color {
  border-color: #d4a017e9;
  color: #e67d2c;
}
.earth-color {
  border-color: #4574ba;
  color: #6fc7de;
}
.mars-color {
  border-color: #5f3617;
  color: #ab510d;
}
.jupiter-color {
  border-color: #637535;
  color: #939373;
}
.saturn-color {
  border-color: #80471c;
  color: #a37755;
}
.uranus-color {
  border-color: #0b91d4;
  color: #0b91d4;
}
.neptune-color {
  border-color: #2c27cb;
  color: #635fcb;
}

footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.9rem;
}

.note {
  background: rgba(79, 172, 254, 0.1);
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px solid rgba(79, 172, 254, 0.3);
  font-size: 0.85rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab-btn {
    min-width: 120px;
    padding: 10px 15px;
  }

  .planet-overview {
    flex-direction: column;
    text-align: center;
  }
}

body:not([dir="rtl"]) .nav-link i {
  margin-right: 8px;
}
