@import url("./src/style/font.css");

/* ================================================================
   UNIVERSAL MAIN CSS
   Colours and button styles are injected by site-config.js via
   CSS custom properties and a <style> tag for button_css.
   ================================================================ */

/* ── Default variable values (overridden at runtime by site-config.js) ── */
:root {
  --c-font:         'Bank Gothic', sans-serif;
  --btn-color:      #63f6ff;

  --c-primary:      #63f6ff;
  --c-primary-a55:  rgba(99,246,255,.55);
  --c-primary-a40:  rgba(99,246,255,.40);
  --c-primary-a15:  rgba(99,246,255,.15);
  --c-primary-a08:  rgba(99,246,255,.08);
  --c-card-bg:      rgba(5,20,40,.82);
  --c-card-bg-end:  rgba(2,10,25,.90);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  font-family: var(--c-font) !important;
  font-weight: 500 !important;
}

/* ================================================================
   MAIN PAGE
   ================================================================ */

body {
  color: #e6f9ff;
  min-height: 100vh;
}

/* Background image (main page) */
#background {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -1;
  min-width: 100dvw;
  min-height: 100%;
  filter: blur(2px);
  object-fit: cover;
  left: 50%;
  transform: translateX(-50%);
}

/* Dark overlay */
.darken {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -1;
  min-width: 100%;
  min-height: 100%;
  background-color: black;
  opacity: 0.6;
}

.logo img {
  z-index: 100;
  width: 350px;
  filter: drop-shadow(5px 5px 5px rgba(0,0,0,1));
}

.buttons {
  margin: 100px;
  margin-bottom: 120px;
}

/* Base .btn — specific styles come from button_css in site-config.js */
.btn {
  text-decoration: none;
  color: var(--btn-color);
  padding: 20px 25px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  text-wrap: nowrap;
  font-size: 24px;
}

.content {
  display: flex;
  margin: 0 auto;
  width: max-content;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 15px;
}

.text {
  color: white;
  max-width: 800px;
  text-align: center;
  font-size: 18px;
}

/* ================================================================
   REVIEWS PAGE
   ================================================================ */

/* Gradient background on reviews page (sits under the page layer) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, var(--c-card-bg) 0%, var(--c-primary-a08) 60%, transparent 100%);
  pointer-events: none;
  z-index: -2;
}

/* Page shell */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main { flex: 1; }

.footer {
  padding: 40px 0;
  text-align: center;
  color: rgba(180,240,255,0.6);
  margin-top: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  text-transform: uppercase;
  text-shadow:
    0 0 20px var(--c-primary-a55),
    0 0 40px var(--c-primary-a40);
}

.hero__subtitle {
  margin-top: 20px;
  font-size: 1.1rem;
  color: rgba(180,240,255,0.8);
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--c-primary-a40);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  user-select: none;
}

.hero__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px var(--c-primary-a40);
}

.hero__btn--primary {
  background: var(--c-primary-a15);
  color: var(--c-primary);
}

.hero__btn--ghost {
  background: rgba(255,255,255,0.03);
  color: rgba(230,249,255,0.92);
}

/* Hidden admin trigger */
#admin-trigger { cursor: default; }

/* ── Reviews list ── */
.reviews-section { padding: 40px 0 80px; }

.reviews-list {
  display: grid;
  gap: 20px;
  width: 80vw;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Review card ── */
.review-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--c-card-bg);
  border: 1px solid var(--c-primary-a40);
  box-shadow:
    0 0 0 1px var(--c-primary-a08),
    0 0 28px var(--c-primary-a15),
    inset 0 1px 0 rgba(200,150,255,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.review-item__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--c-primary-a40);
  box-shadow: 0 0 12px var(--c-primary-a55);
}

.review-item__bubble {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.review-item__username {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
  text-shadow: 0 0 10px var(--c-primary-a55);
}

.review-item__date {
  font-size: 12px;
  color: var(--c-primary-a55);
  white-space: nowrap;
  flex-shrink: 0;
}

.review-item__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(238,228,255,0.92);
}

.review-item__photo {
  margin-top: 12px;
  max-width: 160px;
  border-radius: 10px;
  display: block;
  position: relative;
  z-index: 2;
  background: transparent;
  box-shadow: none;
}

/* Admin actions */
.review-item__actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.review-item__delete-btn {
  background: transparent;
  border: 1px solid rgba(255,80,80,0.7);
  color: #ff9b9b;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.review-item__delete-btn:hover {
  background: rgba(255,80,80,0.15);
}

/* Load more button */
.reviews-footer {
  margin-top: 40px;
  margin-bottom: 60px;
  text-align: center;
}

.btn--primary {
  background: transparent;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  padding: 14px 40px;
  border-radius: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 0 20px var(--c-primary-a40);
}

.btn--primary:hover {
  background: var(--c-primary-a15);
}

/* Photo modal */
.photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.photo-modal__img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 14px;
  box-shadow: 0 0 60px var(--c-primary-a55);
}

/* Admin logout button */
#admin-logout-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(6,20,35,0.7);
  border: 1px solid rgba(255,80,80,0.75);
  color: #ffb3b3;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: none;
  z-index: 9999;
  box-shadow: 0 0 18px rgba(255,80,80,0.25);
}

#admin-logout-btn:hover {
  background: rgba(255,80,80,0.12);
}

/* Telegram icon & link */
.tg-icon {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  flex-shrink: 0;
  fill: #2AABEE;
}

.tg-link,
.tg-link:visited {
  color: #5493f1;
  text-decoration: none;
}

/* ================================================================
   MEDIA QUERIES
   ================================================================ */

@media only screen and (max-width: 1024px) {
  .content {
    padding: 0;
    margin: 0 auto;
  }

  .logo img {
    margin-top: 50px;
    width: 200px;
  }

  .text {
    max-width: 350px;
    font-size: 18px;
  }

  .buttons {
    margin-top: 40px;
    margin-bottom: 60px;
    margin-left: 0;
    margin-right: 0;
  }

  .btn {
    padding: 10px 25px;
  }
}
