/* ===== Page Styling ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fa;
  color: #070f23;
}
*, *::before, *::after {
  box-sizing: inherit;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: #0072ce;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

/* ===== App Overview ===== */
.app-overview {
  text-align: center;
  margin: 3rem auto;
  padding: 2rem 1rem;
  max-width: 700px;
  background: #e6f0ff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(13,108,232,0.15);
}

.app-overview .app-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.app-overview h2 {
  font-size: 2rem;
  color: #0072ce;
  margin-bottom: 0.5rem;
}

.app-overview p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.download-container {
  margin-top: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0072ce, #00aaff);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0059a5, #00c0ff);
}

.download-container p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ===== Reviews Section ===== */
.app-reviews {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,74,173,0.2);
}

.app-reviews h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0072ce;
}

/* ===== Review Cards ===== */
#reviewsList .review {
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-name {
  font-weight: 600;
  color: #222;
}

.review-date {
  font-size: 12px;
  color: #888;
}

.review-rating {
  color: #FFD700;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.review-comment {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}

/* ===== Review Form ===== */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}

.review-form label {
  font-weight: 500;
}

.review-form textarea {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
}

.review-form input[type="text"],
.review-form input[type="number"],
#reviewsList .review input[type="number"],
#reviewsList .review textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 6px;
}

/* Editable review buttons */
#reviewsList .review button {
  margin-right: 6px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #00aaff, #0072ce);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}
#reviewsList .review button:hover {
  background: linear-gradient(135deg, #0059a5, #00c0ff);
  transform: translateY(-1px);
}

/* ===== Star Rating System ===== */
.stars {
  display: flex;
  gap: 5px;
  font-size: 2rem;
  user-select: none;
}

.stars span {
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s ease, transform 0.1s ease;
}

.stars span:hover,
.stars span.selected {
  color: gold;
  transform: scale(1.1);
}

/* ===== Submit Button ===== */
.review-form button {
  width: 150px;
  align-self: flex-start;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #00aaff, #0072ce);
  color: white;
  transition: background 0.3s ease, transform 0.2s ease;
}

.review-form button:hover {
  background: linear-gradient(135deg, #0059a5, #00c0ff);
  transform: translateY(-2px);
}

/* ===== Rating Summary ===== */
.rating-summary{
  display:flex;
  gap:30px;
  margin-bottom:20px;
  align-items:center;
}

.average-rating{
  text-align:center;
}

.average-rating span{
  font-size:2rem;
  font-weight:bold;
}

.stars-display{
  color:gold;
}

.rating-bars{
  flex:1;
}

.bar-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:4px 0;
}

.bar{
  flex:1;
  height:10px;
  background:#eee;
  border-radius:5px;
  overflow:hidden;
}

.bar div{
  height:100%;
  background:#ffc107;
  width:0%;
}

/* ===== Input Group Styling ===== */
.input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.input-group input {
  width: 100%;
  padding: 12px 10px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  background: transparent;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-bottom: 2px solid #4CAF50;
}

.input-group label {
  position: absolute;
  top: 12px;
  left: 10px;
  color: #888;
  font-size: 14px;
  pointer-events: none;
  transition: 0.3s ease;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -8px;
  left: 8px;
  font-size: 12px;
  color: #4CAF50;
  background: #fff;
  padding: 0 4px;
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #4CAF50;
  transition: width 0.3s;
}

.input-group input:focus ~ .input-highlight {
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .app-overview, .app-reviews {
    margin: 1rem;
    padding: 1.5rem 1rem;
  }

  .app-overview h2 {
    font-size: 1.5rem;
  }

  .app-overview p,
  .download-container p {
    font-size: 1rem;
  }

  .review-form button {
    width: 100%;
  }
}

/* Default star size */
.stars span {
  font-size: 1.2em; /* slightly smaller for desktop too */
  margin-right: 3px;
}

/* Make stars smaller on small screens */
@media (max-width: 480px) {
  .stars span {
    font-size: 1em; /* smaller on mobile */
  }

  /* Optional: reduce spacing a bit */
  .stars span {
    margin-right: 2px;
  }
}
/* ===== Mobile adjustments for reviews and rating summary ===== */
@media (max-width: 480px) {
  /* Star selection & display */
  .stars span {
    font-size: 1em;
    margin-right: 2px;
  }

  /* Review names & meta */
  #reviewsList .review .review-name {
    font-size: 0.9em;
  }
  #reviewsList .review .review-date {
    font-size: 0.75em;
  }

  /* Stars in individual reviews */
  #reviewsList .review .review-rating {
    font-size: 1em;
  }

  /* Comment text */
  #reviewsList .review .review-comment {
    font-size: 0.85em;
  }

  /* Rating summary: average rating number (e.g., 5.0) */
  .average-rating span {
    font-size: 1.4em; /* smaller than desktop 2rem */
  }

  /* Stars next to average rating */
  .stars-display {
    font-size: 1em;
  }

  /* Total reviews count */
  #totalReviews {
    font-size: 0.85em;
  }

  /* Optional: reduce gaps in rating summary bars */
  .rating-summary {
    gap: 15px;
  }

  .bar-row {
    gap: 5px;
  }
}
/* ===== Coming Soon Box ===== */
.coming-soon-box {
  background: #ffffff;
  border: 1px solid #0072ce;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,114,206,0.15);
}

.coming-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0072ce;
  margin-bottom: 8px;
}

.coming-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* Mobile adjustment */
@media (max-width: 480px) {
  .coming-title {
    font-size: 1rem;
  }

  .coming-text {
    font-size: 0.85rem;
  }
}