/* =========================
            General Styles
            ========================= */
          body {
            font-family: "Poppins", Arial, sans-serif;
            background: linear-gradient(#000000, #727171);
            color: #ffffff;
            text-align: center;
            padding: 20px;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            /* Remove justify-content: center to prevent footer being pushed off */
          }
/* =========================
          Header
          ========================= */
        header {
          background: url("images/guitar.jgp") 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;
          margin-top: 50px; /* added spacing below nav */
          max-width: 1200px; /* Added max width for desktop viewing */
          width: calc(100% - 20px); /* Fill space with padding */
          margin-left: auto;
          margin-right: auto;
        }

        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 {
          display: inline-block;
          font-family: Georgia, serif;
          font-size: 3rem;
          font-weight: bold;
          text-transform: uppercase;
          text-align: center;
          letter-spacing: -0.02em;
          margin: 0;

          /* Gradient fill */
          background: linear-gradient(60deg, #9146FF 0%, #4feaff 40%, #2332fd 50%, #4918fc 100%);

          -webkit-background-clip: text;
          background-clip: text;
          -webkit-text-fill-color: transparent;

          /* Stroke outline */
          -webkit-text-stroke: 1.6px rgba(0, 0, 0, 0.18);

          /* Optional depth */
          text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.03),
            0 6px 18px rgba(11, 12, 14, 0.18);
        }

        @media (max-width: 600px) {
          header {
            height: 25vh;
            min-height: 150px;
            margin-top: 10px; /* Less spacing on smaller screens */
          }
          header h2 {
            font-size: 2rem; /* Reduced size for mobile */
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.18); /* thinner stroke */
          }
        }


        header h5 {
          font-family: Verdana, sans-serif;
          font-size: 18px;
          font-weight: 400;
          margin-top: 10px;
          color: #fff;
          text-shadow: 0 0 8px #000;
        }

        @media (max-width: 600px) {
          header h5 {
            font-size: 14px;
            margin-top: 5px;
          }
        }
/* =========================
   Navigation Bar
   ========================= */
.horizontal-nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);

    overflow-x: auto;
    scrollbar-width: none;
    min-height: 60px;
    box-sizing: border-box;
}
.horizontal-nav::-webkit-scrollbar { display: none; }

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}
.nav-list li { display: flex; }

/* ========================= Nav Links ========================= */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;  
    height: 70px;
    margin: 0 10px;
    border-radius: 14px;
    color: #f0f0f0;
    font-size: 1.8rem; 
    transition: color 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    position: relative; 
    flex-shrink: 0; 
}

.nav-link i {
    transition: color 0.3s ease;
}

/* ========================= Hover Effects ========================= */
/* Twitch */
.twitch-link:hover {
    background-color: transparent;
    color: #9147ff;
}

/* YouTube */
.youtube-link:hover {
    background-color: transparent;
    color: #cc0000;
}

/* Kick */
.kick-link:hover {
    background-color: transparent;
    color: #09d82c; /* green icon */
}

/* Stream Commands */
.stream-commands-link:hover {
    background-color: transparent;
    color: #00bfae;
}

/* Schedule */
.home-link:hover {
    background-color: transparent;
    color: #ff6ec4;
}

/* Discord */
.discord-link:hover {
    background-color: transparent;
    color: #7289da;
}

/* Hover icon color follows link */
.nav-link:hover i {
    color: inherit;
}

/* ========================= Tab Buttons ========================= */
.tab-buttons {
    display: flex;
    gap: 12px;
}

.stream-commands-link:hover {
    background: linear-gradient(45deg, #00bfae, #9147ff);
    color: #fff;
    box-shadow: 0 0 12px #00bfae, 0 0 12px #9147ff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.twitch-button {
    background-color: #9147ff;
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px 2px rgba(145, 71, 255, 0.6);
}

.twitch-button:hover {
    background-color: #9b4fff;
    box-shadow: 0 0 24px 8px rgba(155, 79, 255, 0.7);
}

.twitch-button.active {
    background-color: #7f39fb;
    box-shadow: 0 0 20px 6px rgba(127, 57, 251, 0.8);
}

/* ========================= Category Filter ========================= */
.category-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-left: -10px;
}

.category-filter-container label { white-space: nowrap; }

#categorySelect {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    appearance: none;
    cursor: pointer;
    min-width: 160px;
}

#categorySelect option { background-color: #222; color: #fff; }

#categorySelect:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 8px #00ffff;
}

/* ========================= Responsive Nav ========================= */
@media (max-width: 800px) {
    .horizontal-nav { flex-direction: column; gap: 12px; }
    .nav-list { flex-wrap: wrap; justify-content: center; }
    .category-filter-container {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .tab-buttons { margin-top: 10px; }
}

        /* =========================
          Headers
          ========================= */
        h1 {
          color: #f1eeee;
          font-size: clamp(1.8rem, 5vw, 2.5rem);
          text-transform: uppercase;
          letter-spacing: 2px;
          margin-bottom: 20px;
          text-shadow: 0 0 10px rgba(99, 226, 243, 0.8),
                      0 0 20px rgba(56, 56, 56, 0.6),
                      0 0 30px rgba(94, 250, 255, 0.4);
        }

/* =========================
   Command Sections
   ========================= */
.command-sections {
  width: 90%;
  max-width: 1200px;
  min-height: 400px;
  background: rgba(20, 20, 30, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px auto;

  justify-items: stretch;
  transition: all 0.3s ease;
}

/* Filtered state: adapt layout for fewer items */
.command-sections.filtered {
  min-height: unset;
  height: auto;
  grid-template-columns: 1fr;
  justify-content: center;
  align-content: start;
}

/* Individual command section */
.command-section {
  background: rgba(50, 50, 60, 0.6);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.command-section:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.command-section h2 {
  font-size: 1.5rem;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(253, 253, 252, 0.8);
  margin-bottom: 10px;
}

.command-section ul {
  list-style-type: none;
  padding: 0;
}

/* Command item styling */
.command-item {
  display: flex;
  align-items: center;
  margin: 5px 0;
  padding: 10px;
  background: rgba(70, 70, 80, 0.8);
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.command-item:hover {
  background: rgba(80, 80, 90, 0.9);
  transform: translateX(5px);
  box-shadow: 0 0 12px rgba(80, 156, 255, 0.5);
}

.command-text {
  cursor: pointer;
  flex: 0 0 120px;
  font-weight: bold;
  color: #af7de7;
  transition: color 0.2s ease;
}

.command-text:hover {
  color: #6882f5;
}

.command-description {
  flex: 1;
  margin-left: 10px;
  text-align: left;
  font-size: 0.9rem;
  color: #ddd;
  white-space: normal;
  word-break: break-word;
}


        /* =========================
          Buttons
          ========================= */
        .fancy-button {
          display: inline-flex;
          align-items: center;
          gap: 10px;
          padding: 12px 20px;
          background: linear-gradient(135deg, #00aaff, #0047b3);
          color: white;
          font-size: clamp(1rem, 2.5vw, 1.2rem);
          font-weight: bold;
          text-decoration: none;
          border-radius: 10px;
          box-shadow: 0 0 15px rgba(0, 119, 204, 0.6);
          transition: all 0.3s ease-in-out;
          border: none;
          cursor: pointer;
          margin-bottom: 20px;
        }
        .fancy-button:hover {
          background: linear-gradient(135deg, #00ccff, #005bb5);
          transform: scale(1.1);
          box-shadow: 0 0 25px rgba(0, 119, 204, 0.8);
        }
        .return-coding-button {
          font-size: 1.2rem;
          padding: 10px 15px;
          background-color: #333;
          color: #ffcc00;
          border-radius: 8px;
          border: 1px solid #ffcc00;
          margin-top: 20px;
          transition: all 0.3s ease;
        }
        .return-coding-button:hover {
          background-color: #ffcc00;
          color: #121212;
          transform: translateY(-3px);
        }

        /* Responsive */
        @media (max-width: 768px) {
          .command-sections { grid-template-columns: 1fr; }
          body { padding: 15px; }
        }
        @media (max-width: 480px) {
          h1 { font-size: 1.8rem; }
          .fancy-button { padding: 8px 12px; font-size: 1rem; }
        }

        /* =========================
        Sleek Glassy Footer (Refined)
        ========================= */
      .site-footer {
          background: rgba(20, 20, 20, 0.164);
          -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;
          position: fixed;
          bottom: 0; /* always visible */
          left: 0;
          right: 0;
          width: 100%;
          max-height: 115px;
          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: background 0.4s ease;
          z-index: 9999;
          border-radius: 12px 12px 0 0;
      }

      .site-footer:hover {
          background: rgba(30, 30, 30, 0.7); /* optional hover effect */
      }


      /* Footer Container */
      .footer-content {
          width: 100%;
          max-width: 550px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          flex-direction: column; /* stacked for better mobile layout */
          gap: 6px;
          margin: 0 auto;
          position: relative;
          font-size: 0.9rem;
          color: #ccc;
      }

      .footer-content p {
          margin: 0;
          font-weight: 300;
          font-size: 12px;
          color: #cfcfcf;
          opacity: 0.85;
      }

      .footer-links {
          display: flex;
          gap: 20px;
          flex-wrap: wrap;
      }

      .footer-links a {
          color: var(--secondary-color, #ccc);
          text-decoration: none;
          transition: color 0.3s ease, text-shadow 0.3s ease;
      }

      .footer-links a:hover {
          color: var(--accent-color, #54eec7);
          text-shadow: 0 0 8px rgba(84, 238, 199, 0.6);
      }

      /* --- Responsive Design for Footer --- */
      @media (max-width: 768px) {
          .footer-content {
              flex-direction: column;
              text-align: center;
              gap: 15px;
          }
      }

      /* =========================
        Glassy Modal Styles
        ========================= */
      .modal {
          display: none; /* hidden by default */
          position: fixed;
          z-index: 10000;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          overflow: auto; /* fallback scroll */
          background-color: rgba(0,0,0,0.6); /* semi-transparent backdrop */
          backdrop-filter: blur(6px);
          transition: opacity 0.3s ease;
      }

      .modal.show {
          display: block;
          opacity: 1;
      }

      .modal-content {
          background: rgba(30,30,30,0.8); /* glassy */
          -webkit-backdrop-filter: blur(10px) saturate(150%);
          backdrop-filter: blur(10px) saturate(150%);
          margin: 50px auto;
          padding: 20px 25px;
          border-radius: 15px;
          width: 90%;
          max-width: 700px;
          max-height: 80vh; /* limit vertical height */
          overflow-y: auto; /* scroll for long content */
          box-shadow: 0 8px 25px rgba(0,0,0,0.5);
          transition: transform 0.3s ease, opacity 0.3s ease;
      }

      .modal-content::-webkit-scrollbar {
          width: 8px;
      }

      .modal-content::-webkit-scrollbar-thumb {
          background-color: rgba(84,238,199,0.6);
          border-radius: 4px;
      }

      .modal-content:hover {
          cursor: grab;
      }

      /* Close button */
      .modal-content .close {
          color: #ccc;
          float: right;
          font-size: 28px;
          font-weight: bold;
          cursor: pointer;
      }

      .modal-content .close:hover {
          color: #54EEC7;
      }

      /* Optional smooth scroll on hover */
      .modal-content:hover {
          scroll-behavior: smooth;
      }

