/* =========================
   Global Styles
   ========================= */
body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a, #000000);
  overflow-x: hidden;
  color: #fff;
}

/* =========================
   Header
   ========================= */
header {
  background: url("images/main-page.JPG") no-repeat center center / cover;
  height: 30vh;
  min-height: 200px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  border-radius: 10px;
}

header div {
  position: relative;
  z-index: 2;
}

header h2 {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fdf471;
  text-shadow: 0 0 12px #000;
  margin: 0;
}

header h5 {
  font-family: Verdana, sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin-top: 10px;
  color: #fff;
  text-shadow: 0 0 8px #000;
}

/* =========================
   Navigation Bar
   ========================= */
.horizontal-nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}

.horizontal-nav::-webkit-scrollbar { display: none; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.nav-list li { display: flex; }

.nav-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease-in-out;
  color: #f0f0f0;
}

.nav-list a i {
  margin-right: 8px;
  font-size: 20px;
  color: #f0f0f0;
  transition: color 0.3s ease;
}

.nav-list a:hover i {
  color: #32f2f8; /* optional gradient effect handled via text above */
}

.nav-list a:hover {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(60deg, #be2edd, #00a8ff, #F79F1F);
  background-clip: text;
  box-shadow: 0 0 10px rgba(50, 242, 248, 0.3);
}

.nav-list img {
  margin-right: 8px;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
}

/* =========================
   Two-Column Layout (Responsive)
   ========================= */
.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  flex-wrap: wrap; /* allows stacking on smaller screens */
}

/* Left Column (Top) */
.main-content {
  flex: 1;
  min-width: 280px;
  padding-bottom: 140px;
}

#content {
  padding: 20px;
  background: linear-gradient(135deg, #f2f3f8, #7e39ff);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: all 0.3s ease;
}

#content h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: rgb(92, 26, 245);
}

#content p {
  font-family: Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(40, 40, 40);
  margin-bottom: 12px;
}

/* Right Column (Top) */
.main-updates {
  flex: 1;
  min-width: 280px;
}

#updates {
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #aaf380); /* Twitch purple */
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: all 0.3s ease;
}

#updates h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: rgb(19, 245, 94);
}

#updates p {
  font-family: Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(40, 40, 40);
  margin-bottom: 12px;
}

/* =========================
   Bottom Row
   ========================= */
.left-bottom-column,
.right-bottom-column {
  flex: 1;
  min-width: 280px;
}

/* Tips (Bottom Left) */
#tips {
  padding: 20px;
  background: linear-gradient(135deg, #e6f9ff, #00bcd4); /* Aqua style */
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: all 0.3s ease;
}

#tips h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #008c99;
}

#tips p {
  font-family: Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(30, 30, 30);
  margin-bottom: 12px;
}

/* Extra Right (Bottom Right) */
#extra-right {
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #ff4444); /* YouTube red */
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: all 0.3s ease;
}

#extra-right h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #cc0000;
}

#extra-right p {
  font-family: Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(40, 40, 40);
  margin-bottom: 12px;
}

/* =========================
   Responsive Layout
   ========================= */
@media screen and (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .main-content,
  .main-updates,
  .left-bottom-column,
  .right-bottom-column {
    width: 100%;
    max-width: 600px;
    padding-bottom: 80px;
  }
}

/* =========================
   Collapsible Section Body
   ========================= */
.section-body {
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  max-height: 1000px;
  overflow: hidden;
  opacity: 1;
  padding: 10px 0;
}

.section-body.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0;
}
/* =========================
   Responsive Layout
   ========================= */
@media screen and (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: stretch; /* makes them fill width */
    gap: 20px;
    width: 95%; /* use more space on mobile */
    margin: 20px auto;
  }

  .main-content,
  .main-updates,
  .left-bottom-column,
  .right-bottom-column {
    width: 100%;
    max-width: 100%; /* no artificial limit */
    padding-bottom: 40px; /* less padding for mobile */
  }

  /* Headings a little smaller for phones */
  #content h2,
  #updates h2,
  #tips h2,
  #extra-right h2 {
    font-size: 22px;
  }

  /* Paragraphs scale for readability */
  #content p,
  #updates p,
  #tips p,
  #extra-right p {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* Extra tweak for very small phones (<= 480px) */
@media screen and (max-width: 480px) {
  .content-wrapper {
    gap: 15px;
    width: 100%;
    margin: 15px auto;
  }

  #content,
  #updates,
  #tips,
  #extra-right {
    padding: 15px;
  }

  #content h2,
  #updates h2,
  #tips h2,
  #extra-right h2 {
    font-size: 20px;
  }

  #content p,
  #updates p,
  #tips p,
  #extra-right p {
    font-size: 14px;
  }
}


.toggle-icon {
  margin-left: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
  font-size: 18px;
  vertical-align: middle;
}

.toggle-icon.rotate {
  transform: rotate(180deg); /* points up when open */
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .section-body {
    font-size: 15px;
    padding: 8px 0;
  }

  .toggle-icon {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .section-body {
    font-size: 14px;
    padding: 6px 0;
  }

  .toggle-icon {
    font-size: 14px;
    margin-left: 6px;
  }
}

/* =========================
   About Me Section
   ========================= */
#about-me {
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  width: 90%;
  max-width: 1000px;
  text-align: center;
}

#about-me img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  margin: 0 auto 15px;
  display: block;
}

#about-me p {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  text-align: center;
}

#about-me p::before { content: "✧ "; color: #7e39ff; font-size: 24px; }
#about-me p::after { content: " ✧"; color: #7e39ff; font-size: 24px; }

/* =========================
   Site News
   ========================= */
#site-news {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: rgba(17, 17, 17, 0.014);
  color: #eee;
  border-radius: 10px;
  margin: 10px auto;
  max-width: 900px;
  backdrop-filter: blur(10px);
}

.revamp-notice {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  color: #f0f0f0;
  font-size: 14px;
  text-align: center;
  padding: 8px 0;
  border-radius: 5px;
}

.revamp-notice p {
  display: inline-block;
  padding-left: 100%;
  animation: scrollNotice 40s linear infinite;
}

@keyframes scrollNotice {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* =========================
   Sleek Glassy Footer (Refined)
   ========================= */
footer {
  background: rgba(20, 20, 20, 0.164); /* glassy */
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #eaeaea;
  font-weight: 500;
  text-align: center;
  padding: 8px 10px; /* smaller padding */
  position: fixed;
  bottom: -80px; /* small default hidden offset */
  left: 0;
  right: 0;
  width: 100%;
  max-height: 115px; /* prevents large expansion */
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: bottom 0.5s ease-in-out, background 0.4s ease;
  z-index: 9999;
  border-radius: 12px 12px 0 0; /* rounded top */
}

footer:hover {
  bottom: 0;
  background: rgba(30, 30, 30, 0.7);
}

/* Footer Container */
.footer-container {
  width: 100%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  position: relative;
}

/* Footer Text */
.footer-container p {
  font-size: 12px;
  margin: 0;
  color: #cfcfcf;
  opacity: 0.85;
}

/* Search Bar */
.footer-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

footer:hover .footer-search {
  transform: translateY(0);
  opacity: 1;
}

#search-bar {
  width: 0;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  outline: none;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: width 0.4s ease, opacity 0.3s ease, border-color 0.3s ease;
  opacity: 0;
}

#search-bar.active,
#search-bar:focus {
  width: 220px;
  opacity: 1;
  border-color: #20f1e0;
  background: rgba(0, 0, 0, 0.3);
}

#search-button {
  width: 38px;           /* smaller size */
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0); /* subtle glass look */
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;       /* smaller font to fit */
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);

  /* Soft inner & outer glow */
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.2), 
    0 0 6px rgba(255, 255, 255, 0.3);
}

#search-button:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.25), 
    0 0 10px rgba(255, 255, 255, 0.4);
}



/* Social Links */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  padding-bottom: env(safe-area-inset-bottom);
}

.social-link {
  font-size: 22px;
  color: #f5f5f5;
  opacity: 0.85;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Social Hover Colors */
.social-link:nth-child(1):hover { color: #C13584; }  /* Instagram */
.social-link:nth-child(2):hover { color: #9146FF; }  /* Twitch */
.social-link:nth-child(3):hover { color: #FF0000; }  /* YouTube */
.social-link:nth-child(4):hover { color: #1DA1F2; }  /* Bluesky */
.social-link:nth-child(5):hover { color: #000; }     /* X/Twitter */
.social-link:nth-child(6):hover { color: #171515; }  /* GitHub */

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
  footer {
    bottom: -100px;
    padding: 8px calc(10px + env(safe-area-inset-bottom));
  }
  .footer-container p { font-size: 10px; }
  #search-bar { max-width: 100%; }
  .social-link { font-size: 18px; }
}

@media screen and (max-width: 812px) and (orientation: landscape) {
  footer { bottom: -80px; padding: 10px calc(12px + env(safe-area-inset-bottom)); }
  .footer-container p { font-size: 11px; }
  .social-link { font-size: 16px; }
}

@media screen and (min-width: 1025px) {
  footer { height: auto; bottom: -90px; }
}


