/* ========== COMMON SITE STYLES & BASE ========== */

/* Font Declarations */
@font-face {
  font-family: "LatoRegular";
  src: url("fonts/Lato/Lato-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "LatoItalic";
  src: url("fonts/Lato/Lato-Italic.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "LatoLight";
  src: url("fonts/Lato/Lato-Light.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "LatoLightItalic";
  src: url("fonts/Lato/Lato-LightItalic.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "LatoBoldItalic";
  src: url("fonts/Lato/Lato-BoldItalic.ttf") format("truetype");
  font-display: swap;
}

/* CSS Variables */
:root {
  --landing-text-size: 3rem;
  --h1-size: 2.5rem;
  --h2-size: 1.75rem;
  --h3-size: 1.25rem;
  --body-size: 1rem;

  --bg-color: #020931;
  --text-color-primary: white;
  --text-color-secondary: rgb(255, 255, 230);
  --line-color: rgb(182, 216, 255);
  --star-glow-primary: #faf394;
  --star-glow-secondary: #ffffff;

  --category-text-shadow: 0px 3px 5px rgba(0, 0, 0, 0.9);
  --loading-star-animation-duration: 1.5s;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Animated Starfield Background */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-color);
  z-index: -1;
  overflow: hidden;
}

/* Common Layout Elements (Shared Page Wrapper) */
.guestbook-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color-primary);
  font-family: "LatoRegular", sans-serif;
}

.guestbook-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-out;
}

.guestbook-header h1 {
  font-family: "LatoBoldItalic", sans-serif;
  font-size: var(--h1-size);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.guestbook-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.title-icon {
  width: 1.35em;
  height: 1.35em;
  max-width: 1.35em;
  max-height: 1.35em;
  display: inline-block;
  opacity: 0.9;
  flex-shrink: 0;
}

.guestbook-header p {
  font-family: "LatoLightItalic", sans-serif;
  font-size: var(--h3-size);
  color: var(--text-color-secondary);
  margin-bottom: 1.5rem;
}

.back-btn-container {
  width: 100%;
  max-width: 800px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: flex-start;
  animation: fadeIn 1s ease-out;
}

.back-btn {
  color: white;
  text-decoration: none;
  font-family: "LatoRegular", sans-serif;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-color);
  box-shadow: 0 0 10px rgba(182, 216, 255, 0.15);
  transform: translateX(-2px);
}

.back-btn:hover .button-icon {
  transform: translateX(-3px);
}

.guestbook-content {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Shared UI Components */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.separator {
  width: 60%;
  height: 1px;
  border: none;
  border-top: 1px solid var(--line-color);
  opacity: 0.5;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.loading-comments {
  text-align: center;
  color: var(--text-color-secondary);
  font-style: italic;
}

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

@media (max-width: 600px) {
  .guestbook-container {
    padding: 2rem 1rem;
  }
}
