/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fbf7f6;
  color: #2b2b2b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

/* ==========================================================================
   Header & Banner Section
   ========================================================================== */
.banner-wrapper {
  position: relative;
  width: 100%;
  margin-top: 20px;
  border-radius: 12px;
  overflow: visible; /* Allows the circular logo to overlap cleanly */
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Logo overlayed on top left of the banner */
.logo-wrapper {
  position: absolute;
  top: 15px;
  left: 25px;
  z-index: 10;
}

.logo-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  background-color: #ffffff;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
  margin-top: 10px;
  border-bottom: 1px solid #eae2e0;
}

.main-nav a,
.footer-nav a {
  color: #4a3e3d;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: #a83232;
}

/* ==========================================================================
   Main Content & Typography
   ========================================================================== */
main {
  padding: 30px 0;
}

.hero h1 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.hero h2 {
  font-size: 1.4rem;
  color: #2c2c2c;
  margin: 30px 0 15px 0;
}

.hero p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.hero ul {
  margin: 15px 0 20px 25px;
}

.hero li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

blockquote {
  margin: 15px 0;
  padding: 10px 20px;
  border-left: 4px solid #a83232;
  background-color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  color: #4a4a4a;
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.contact-form {
  margin-top: 30px;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #eae2e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fcfbfa;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #a83232;
}

.submit-btn {
  background-color: #4a3e3d;
  color: #ffffff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #a83232;
}

/* ==========================================================================
   Footer & Social Buttons
   ========================================================================== */
footer {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #eae2e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

/* Horizontal display for all social buttons */
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Uniform sizing for all social buttons (36px high) */
.social-btn {
  height: 36px;
  width: auto;
  border: 0;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ==========================================================================
   Apps Grid & Appbox Cards
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 25px;
}

.appbox {
  background-color: #ffffff;
  border: 1px solid #eae2e0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appbox:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.appbox-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background-color: #fbf7f6;
  display: block;
}

.appbox-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.appbox-body h3 {
  font-size: 1.15rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.appbox-body p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 18px;
  flex-grow: 1;
}

.appbox-link {
  display: inline-block;
  align-self: flex-start;
  background-color: #4a3e3d;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.appbox-link:hover {
  background-color: #a83232;
}

/* ==========================================================================
   App Page Pagination
   ========================================================================== */
.app-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}

.page-btn {
  background-color: #4a3e3d;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-btn:hover {
  background-color: #a83232;
}

.page-btn.disabled {
  background-color: #d9d0ce;
  color: #ffffff;
  pointer-events: none;
  cursor: default;
}

.page-indicator {
  font-weight: 600;
  color: #4a3e3d;
}

/* ==========================================================================
   Content Grids & Boxes (Games / Books & Magazines)
   Shares the same visual language as .apps-grid / .appbox above.
   ========================================================================== */
.games-grid,
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 25px;
}

.game-box,
.book {
  background-color: #ffffff;
  border: 1px solid #eae2e0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-box:hover,
.book:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.game-box img,
.book img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background-color: #fbf7f6;
  display: block;
}

.game-box-body,
.book-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-box-body h3,
.book-body h3 {
  font-size: 1.15rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.game-box-body p,
.book-body p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 18px;
  flex-grow: 1;
}

.game-link,
.download-btn {
  display: inline-block;
  align-self: flex-start;
  background-color: #4a3e3d;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.game-link:hover,
.download-btn:hover {
  background-color: #a83232;
}

/* Small "locked" tag for closed-storage books/films that need access */
.book-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #f1e8e6;
  color: #a83232;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Section Pagination (Games / Books & Magazines / Apps listing pages)
   Reuses the .page-btn / .page-indicator look from App Page Pagination.
   ========================================================================== */
.section-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 30px 0 10px 0;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 600px) {
  .logo-img {
    width: 80px;
    height: 80px;
  }
  
  .logo-wrapper {
    top: 10px;
    left: 15px;
  }
  
  .main-nav {
    gap: 18px;
  }

  .app-pagination,
  .section-pagination {
    flex-wrap: wrap;
  }
}
