/* ===============================
   GUIDE POST MAGAZINE – STYLE.CSS
   =============================== */

/* BASE SETTINGS */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: #fff;
  color: #222;
  line-height: 1.75;
  scroll-behavior: smooth;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #d12020 0%, #b81818 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  z-index: 1000;
  color: white;
  padding: 1.2rem 0;
  transition: all 0.3s ease;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  height: 90px;
  border-radius: 10px;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

/* MAIN LAYOUT */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

/* HERO SECTION */
.hero {
  background: #fafafa;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.cover-image {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

.cover-image:hover {
  transform: scale(1.03);
}

.intro-text {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

/* DOWNLOAD PAGE SUBTEXT */
.intro-sub {
  font-size: 1.3rem;
  font-weight: 500;
  color: #444;
  font-style: italic;
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* BUTTONS */
.button-group {
  margin-top: 1rem;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  margin: 0.5rem;
  background: #d62828;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.button.secondary {
  background: #333;
}

.button:hover {
  background: #a31212;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.button:active {
  transform: scale(0.97);
}

/* GALLERY GRID */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item span {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  background: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* FOOTER */
.site-footer {
  font-size: 1rem;
  text-align: center;
  padding: 3rem 1.5rem;
  line-height: 1.8;
  font-weight: 700;
  background: #d12020;
  color: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.site-footer a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b81818;
  color: white;
  border-radius: 50%;
  width: 108px;
  height: 108px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: #8e1010;
  transform: scale(1.05);
}

.social-links svg {
  width: 54px;
  height: 54px;
  fill: white;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.9s ease forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: none; }
}

/* BACK TO TOP BUTTON */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #d12020;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: #a31212;
  transform: translateY(-4px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .logo {
    height: 70px;
  }

  .site-title {
    font-size: 1.6rem;
  }

  main {
    margin: 1.5rem auto;
  }

  .button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 80%;
    max-width: 300px;
  }

  .gallery-item span {
    font-size: 1.2rem;
  }

  .site-footer {
    font-size: 1.05rem;
  }

  .social-links a {
    width: 84px;
    height: 84px;
  }

  .social-links svg {
    width: 42px;
    height: 42px;
  }

  #backToTop {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}
