/* ============================================================
   OsmTrip Online — Review.css
   ============================================================ */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Satisfy&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Spectral:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --night: #0c1720;
  --night-2: #16283a;
  --paper: #f6efe0;
  --card: #fffdf8;
  --ink: #17222c;
  --muted: #5c6a76;
  --gold: #c68a2e;
  --gold-dark: #9c6a1d;
  --rust: #9c3a26;
  --line: #e3dabf;
  --shadow: 0 18px 40px rgba(12, 23, 32, 0.16);
}

body {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Spectral", Georgia, serif;
}

/* ======================== Navbar ======================== */
.nav-bar {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  height: 53px;
  background-color: var(--night);
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(198, 138, 46, 0.35);
}

.logo {
  flex: 1;
  font-size: 34px;
  margin-left: 20px;
  font-family: Satisfy;
  color: #f6efe0;
}

ul.menu {
  flex: 2;
  display: flex;
  flex-flow: row wrap;
  list-style: none;
  justify-content: flex-end;
  margin-right: 20px;
}

.menu li {
  flex: none;
  font-size: 16px;
  font-family: "Barlow Condensed";
  text-align: center;
}

.menu li a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #d8dfe6;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 17px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.menu li a:hover,
.menu li a:focus-visible {
  color: var(--gold);
  background-color: rgba(198, 138, 46, 0.1);
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  position: fixed;
  margin-top: 12px;
  right: 20px;
  font-size: 30px;
  color: #f6efe0;
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: none;
  line-height: 1;
}

.menu-toggle:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ======================== Write a Review ======================== */
#write-review {
  background: linear-gradient(180deg, var(--card) 0%, var(--paper) 100%);
  padding: 70px 20px;
}

.review-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  padding: 40px 35px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--line);
}

.review-form-wrap h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.review-form-wrap > p {
  font-family: "Barlow Condensed";
  color: var(--gold-dark);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

#reviewForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

#reviewForm input,
#reviewForm select,
#reviewForm textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#reviewForm input:focus,
#reviewForm select:focus,
#reviewForm textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 138, 46, 0.15);
  background: var(--card);
}

#reviewForm textarea {
  resize: vertical;
  min-height: 100px;
}

#reviewForm button {
  background: var(--night);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Barlow Condensed";
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.15s;
}

#reviewForm button:hover,
#reviewForm button:focus-visible {
  background: var(--gold);
  color: var(--night);
}

#reviewForm button:active {
  transform: scale(0.98);
}

.review-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.review-note a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
}

.review-note a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ======================== All Reviews Page ======================== */
#all-reviews {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px 100px;
}

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.reviews-head h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}

.add-review-btn {
  background: var(--gold);
  color: var(--night);
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-family: "Barlow Condensed";
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: 0.25s;
}

.add-review-btn:hover,
.add-review-btn:focus-visible {
  background: var(--night);
  color: var(--gold);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-name {
  font-weight: 600;
  color: var(--ink);
  font-family: "Spectral";
  font-size: 18px;
}

.review-stars {
  font-size: 14px;
  color: var(--gold);
}

.review-comment {
  color: var(--ink);
  margin-bottom: 14px;
}

.review-date {
  font-size: 13px;
  color: var(--muted);
}

.no-reviews {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  grid-column: 1 / -1;
  padding: 50px 0;
}

/* ======================== Footer ======================== */
footer {
  background: var(--night);
  color: #cdd5db;
  text-align: center;
  padding: 22px 10px;
  margin-top: 120px;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* ======================== Responsive ======================== */
@media (max-width: 992px) {
  .menu-toggle { display: block; }

  .nav-bar {
    justify-content: space-between;
    padding: 0 20px;
  }

  ul.menu {
    position: absolute;
    top: 53px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    background: var(--night);
    margin: 0;
    border-top: 1px solid rgba(198, 138, 46, 0.35);
  }

  ul.menu.active { display: flex; }

  .menu li {
    text-align: left;
    padding: 4px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .menu li a { font-size: 16px; }

  .reviews-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .logo { font-size: 26px; margin-left: 14px; }

  .review-form-wrap {
    padding: 28px 20px;
  }

  .reviews-head h2 {
    font-size: 26px;
  }
}