/* ========== BASE ========== */
* { box-sizing: border-box; }
html, body { height: 100%; margin:0; font-family:"Lato",sans-serif; background:#0f1113; color:#fff; }

/* ========== NAVBAR ========== */
.site-header { position: sticky; top:0; z-index:100; }
.nav {
  display:flex; align-items:center; justify-content:space-between;
  padding:0 24px; height:60px;
  background:#16171c;
  font-weight:700; /* Bold font for navbar */
}

/* Left brand */
.nav-left { display:flex; align-items:center; gap:12px; }
.brand-logo { height:80px; }
.brand { font-weight:700; font-size:1.25rem; color:#fff; margin:0; }

/* Center nav */
.nav-center { display:flex; gap:24px; align-items:center; }
.nav-center > a {
    text-decoration: none;
    color: white;
}
.nav-item { position:relative; font-size:0.95rem; cursor:pointer; padding:0 8px; line-height:60px; transition:.2s; font-weight:700; }
.nav-item:hover { color:#00aaff; }
.nav-item:hover::after {
  content:''; position:absolute; bottom:12px; left:0; width:100%; height:2px; background:#00aaff; border-radius:1px;
}

/* Dropdown submenu */
.nav-item.with-submenu { position:relative; }
.submenu {
  display:none; position:absolute; top:100%; left:0; flex-direction:column;
  background:#16171c; min-width:160px; border-radius:6px;
  box-shadow:0 12px 24px rgba(0,0,0,0.6); z-index:50;
}
.with-submenu:hover .submenu { display:flex; }
.submenu a { padding:10px 16px; text-decoration:none; color:#fff; font-size:0.95rem; font-weight:700; border-radius:6px; transition:0.2s; line-height: 1.4;}
.submenu a:hover { background:#222; color:#00aaff; }

/* Right buttons */
.nav-right { display:flex; align-items:center; gap:12px; }
.login-btn { background:#5865F2; color:#fff; padding:6px 16px; border-radius:6px; font-weight:700; text-decoration:none; transition:.2s; }
.login-btn img {font-size: 18px; margin-right: 8px; vertical-align: middle; color: white; height: 25px; width: auto;}
.login-btn:hover { background:#4752c4; }
.premium-btn { background:#FFD700; color:#000; padding:6px 16px; border-radius:6px; font-weight:700; text-decoration:none; transition:.2s; }
.premium-btn:hover { background:#e6c200; }

/* Hamburger (mobile) */
.hamburger { display:none; flex-direction:column; justify-content:center; gap:4px; background:transparent; border:none; cursor:pointer; }
.hamburger span { width:22px; height:3px; background:#fff; border-radius:2px; }

/* ========== MOBILE DRAWER ========== */
.mobile-drawer {
  position:fixed; right:-100%; top:0; width:280px; height:100vh;
  background:#16171c; color:#fff; transition:right .25s ease; z-index:110;
  display:flex; flex-direction:column; border-left:1px solid #222; box-shadow:-4px 0 24px rgba(0,0,0,0.6);
  font-weight:700; /* Bold font */
}
.mobile-drawer.open { right:0; }
.mobile-header { display:flex; justify-content:space-between; align-items:center; padding:16px; border-bottom:1px solid #222; }
.mobile-brand { display:flex; align-items:center; gap:12px; }
.mobile-brand img { height:60px; }
.mobile-links { padding:16px; display:flex; flex-direction:column; gap:8px; overflow:auto; }

/* Mobile links & submenu */
.mobile-links a, .mobile-sub-menu a {
  padding:10px 16px; text-decoration:none; color:#fff; border-radius:6px; transition:0.2s; font-weight:700;
}
.mobile-links a:hover, .mobile-sub-menu a:hover {
  background:#222; color:#00aaff;
}
.mobile-sub { display:flex; flex-direction:column; }
.mobile-sub-menu { display:none; flex-direction:column; padding-left:0; background:#16171c; margin-top:4px; border-radius:6px; box-shadow:0 8px 16px rgba(0,0,0,0.5); }
.mobile-sub.open .mobile-sub-menu { display:flex; animation: fadeIn 0.2s ease forwards; }
@keyframes fadeIn { 0% {opacity:0; transform:translateY(-5px);} 100% {opacity:1; transform:translateY(0);} }

/* Submenu toggle button */
.mobile-sub-toggle {
  width:100%; text-align:left; padding:10px 16px; background:none; border:none; color:#fff; font-size:0.95rem;
  cursor:pointer; display:flex; justify-content:space-between; align-items:center; border-radius:6px; transition:0.2s; font-weight:700;
}
.mobile-sub-toggle:hover { background:#222; color:#00aaff; }

/* Modern close button */
.mobile-close {
  background:#ff4d4d; color:#fff; border:none; font-size:1.25rem; font-weight:700;
  padding:6px 12px; border-radius:50%; cursor:pointer; transition:0.2s;
}
.mobile-close:hover { background:#a63232; }

/* ========== PAGE CONTENT ========== */



/* ========== FOOTERS ========== */
.footer-cta {background: #16171c; padding: 4rem 2rem; text-align: center; color: white;}
.footer-cta h2 {font-size: 2.4rem; font-weight: 700; margin-bottom: 2rem;}
.footer-cta .cta-btn {display: inline-block; background: #fff; color: #4c6fff; padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: .2s;}
.footer-cta .cta-btn:hover {transform: translateY(-2px); opacity: .9;}

.footer {background: #16171c; padding: 4rem 2rem 2rem;}
.footer-inner {max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 4rem;}
.footer-brand img {height: 60px; margin-bottom: 1.2rem;}
.footer-brand p {max-width: 260px; color: #cfcfcf; margin-bottom: 1.4rem; line-height: 1.5;}
.footer-links {display: flex; gap: 4rem;}
.footer-col h4 {margin-bottom: 1rem; font-weight: 700; font-size: 1.05rem;}
.footer-col a {display: block; text-decoration: none; color: #cfcfcf; margin-bottom: .55rem; font-size: .9rem; transition: .2s;}
.footer-col a:hover {color: #fff;}
.footer-bottom {text-align: center; color: #636363; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid #232427; font-size: .85rem;}

/* ========== RESPONSIVE ========== */
@media(max-width:900px){
  .nav-center, .premium-btn, .brand { display:none; }
  .hamburger { display:flex; }
  .feature-block {margin: 4rem 1rem;}
  .feature-block, .feature-block.alt {flex-direction: column; text-align: center;}
  .feature-media {max-width: 90%;}
  .feature-text {order: 1;}
  .feature-media {order: 2;}
  .feature-media img {max-width: 90%; margin: 0 auto;}
  .footer-inner {flex-direction: column; text-align: center;}
  .footer-links {flex-direction: column; gap: 2rem;}
  .footer-brand p {margin: 0 auto;}
}

.create-btn {
  background:#2ecc71;
  padding:8px 14px;
  border:none;
  border-radius:6px;
  font-weight:600;
  cursor:pointer;
}

.modal {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:flex;
  justify-content:center;
  align-items:center;
}
.modal.hidden { display:none; }

.modal-content {
  background:#1f1f1f;
  padding:20px;
  width:600px;
  border-radius:10px;
  color:white;
}
.close { float:right; cursor:pointer;font-size:22px; }
.publish-btn { margin-top:10px; padding:8px; border-radius:6px; }

.search-input {
    width: 100%;
    max-width: 350px;
    padding: 8px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: #1e1e1e;
    border: 1px solid #444;
    color: white;
}

/* ----- Patch Notes Admin Panel Layout ----- */
#patch-notes-admin {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

#create-modal .modal-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-panel {
  padding: 2rem;
  background: #16171c;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 8px;
  border: 1px solid #222;
}

.patch-form input,
.patch-form textarea {
  width: 100%;
  background: #1b1d21;
  border: 1px solid #333;
  padding: 10px;
  color: white;
  border-radius: 6px;
}


.note {
  background: #1b1d21;
  margin: 1rem auto;
  padding: 1.2rem;
  border-radius: 8px;
  max-width: 900px;
}

.note h2 {
  margin: 0 0 .4rem 0;
}

.note-body {
  margin-top: .5rem;
  line-height: 1.6;
}

.search-input {
  display: block;
  width: 100%;
  max-width: 350px;
  margin: 2rem auto;
  background: #1b1d21;
  border: 1px solid #333;
  padding: 10px;
  border-radius: 6px;
  color: white;
}

