/* Warship Guides — Cobalt-inspired theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --blue: #6495ed;
  --blue-dim: rgba(100, 149, 237, 0.15);
  --blue-border: rgba(100, 149, 237, 0.2);
  --blue-glow: rgba(100, 149, 237, 0.4);
  --glass-bg: rgba(13, 22, 35, 0.82);
  --glass-blur: blur(16px);
  --glass-border: 1px solid rgba(100, 149, 237, 0.15);
  --glass-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
  --glass-radius: 0.5rem;
  --text-main: #c4cdd9;
  --text-muted: #8a96a8;
  --text-white: #ffffff;
  --bg-dark: #101010;
  --bg-card: #171716;
  --transition: 0.25s;
  --sidebar-w: 280px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
  background-image: url('https://i.postimg.cc/Zn2Sn0Wm/site.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: top center;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: #92b4f2; }

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--glass-radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--blue-dim);
  background: rgba(13, 22, 35, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-white);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--text-white); }

.brand img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.brand-title {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--blue-glow);
}

.btn-home {
  white-space: nowrap;
}

.header-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  gap: 0;
}

.header-search input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--blue-border);
  border-right: none;
  border-radius: var(--glass-radius) 0 0 var(--glass-radius);
  color: #fff;
  padding: 0.55rem 1rem;
  font-family: inherit;
}

.header-search input:focus {
  outline: none;
  border-color: rgba(100, 149, 237, 0.6);
  box-shadow: 0 0 12px var(--blue-glow);
}

.header-search button {
  border-radius: 0 var(--glass-radius) var(--glass-radius) 0;
  border: 1px solid var(--blue);
  background: rgba(100, 149, 237, 0.35);
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(100, 149, 237, 0.6);
  background: rgba(100, 149, 237, 0.2);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: rgba(100, 149, 237, 0.45);
  box-shadow: 0 0 12px var(--blue-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--blue-border);
}

.btn-danger {
  border-color: rgba(220, 53, 69, 0.6);
  background: rgba(220, 53, 69, 0.2);
}

.locale-switch {
  display: flex;
  border: 1px solid var(--blue-border);
  border-radius: var(--glass-radius);
  overflow: hidden;
}

.locale-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.locale-switch button.active {
  background: var(--blue-dim);
  color: var(--text-white);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem;
  min-height: calc(100vh - var(--header-h) - 80px);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
  padding: 0.5rem 0;
}

.sidebar-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0.75rem 1rem 0.35rem;
  font-weight: 700;
}

.nav-cat {
  margin-bottom: 0.25rem;
}

.nav-cat-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 4px solid transparent;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: var(--transition);
}

.nav-cat-btn:hover,
.nav-cat-btn.active {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--blue);
  color: #fff;
}

.nav-cat-btn i { width: 1.25rem; text-align: center; color: var(--blue); }

.nav-guides {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.5rem;
}

.nav-guides a {
  display: block;
  padding: 0.45rem 1rem 0.45rem 2.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-left: 2px solid transparent;
}

.nav-guides a:hover,
.nav-guides a.active {
  color: #fff;
  border-left-color: var(--blue);
  background: rgba(100, 149, 237, 0.08);
}

.main { min-width: 0; }

.page-hero {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--blue);
  background: linear-gradient(90deg, var(--blue-dim) 0%, transparent 80%);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  color: var(--text-white);
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 15px var(--blue-glow);
}

.page-hero .lead { color: var(--text-muted); margin: 0; line-height: 1.6; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.guide-card {
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.guide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 149, 237, 0.7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 12px var(--blue-glow);
}

.guide-card h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.1rem;
}

.guide-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.guide-card .meta {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guide-article {
  padding: 2rem 2.5rem;
}

.guide-article header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--blue-dim);
}

.guide-article h1 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 0 15px var(--blue-glow);
}

.guide-article .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.guide-article .breadcrumb a { color: var(--blue); }

.guide-body {
  line-height: 1.75;
  font-size: 1rem;
}

.guide-body h2, .guide-body h3, .guide-body h4 { color: #fff; margin-top: 1.5rem; }

.guide-body img { max-width: 100%; border-radius: 0.35rem; }

.guide-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--blue-border);
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 1rem 0;
}

.guide-body th {
  background: var(--blue-dim);
  color: #fff;
  padding: 0.6rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.guide-body td {
  padding: 0.6rem;
  border-top: 1px solid rgba(100, 149, 237, 0.1);
  text-align: center;
}

.guide-body blockquote {
  border-left: 3px solid var(--blue);
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
}

.search-results {
  margin-top: 1rem;
}

.search-hit {
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-hit:hover { border-color: var(--blue); }

.search-hit h4 { margin: 0 0 0.35rem; color: #fff; }

.search-hit p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* Footer — Cobalt large-footer */
.footer-spacer { height: 4rem; }

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer.large-footer { margin-top: 3rem; }

.footer .top-section,
.footer .bottom-bar {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.footer .top-section {
  border-radius: var(--glass-radius) var(--glass-radius) 0 0;
  border-bottom: none;
  padding: 0.5rem 0 0;
}

.footer .bottom-bar {
  border-radius: 0 0 var(--glass-radius) var(--glass-radius);
  border-top: 1px solid var(--blue-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.footer-col {
  padding: 2rem 2rem;
}

.footer-col:first-child { padding-left: 0.5rem; }

.footer-text-header {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.6rem;
  position: relative;
  display: inline-block;
}

.footer-text-header::after {
  height: 7px;
  border-radius: 10px;
  content: '';
  position: absolute;
  top: calc(50% - 3.5px);
  left: calc(100% + 1rem);
  width: 20px;
  box-shadow: 0 0 10px 0 var(--blue);
  background: var(--blue);
}

.footer-col p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.footer-link,
.footer-link:focus {
  color: rgb(189, 189, 189);
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.footer-link:hover {
  filter: brightness(85%);
  color: rgb(189, 189, 189);
}

.footer .btn-play {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.65rem 1.65rem;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.footer .btn-play i {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.footer .btn-play:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer .btn-play:hover i { margin-left: 4px; }

.other-btn,
.other-btn:focus {
  border: none !important;
  color: white !important;
  font-weight: 600;
  padding: 0.65rem 1.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.other-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px var(--blue-glow);
}

.other-btn i {
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 1rem 1.5rem;
  margin: 0;
  line-height: 1.6;
}

.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-weight: 500;
  font-size: 0.9rem;
}

.copyright-txt { color: rgba(255, 255, 255, 0.9); }

.copyright-txt .site { color: rgba(255, 255, 255, 0.95); }

.large-footer .icon-box {
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  gap: 0.25rem;
  border-radius: 0.25rem;
}

.large-footer .copyright-txt {
  padding: 0.25rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.25rem;
}

.footer .icon {
  color: rgb(189, 189, 189);
  transition: var(--transition);
  padding: 0.35rem 0.5rem;
  font-size: 1.1rem;
}

.footer .icon:hover {
  filter: brightness(85%);
  color: #fff;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { padding: 1.25rem 0.5rem; }
  .footer-copyright { flex-direction: column; text-align: center; }
}

.hidden { display: none !important; }

/* Admin */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--header-h));
}

.admin-nav {
  padding: 1rem 0;
  border-right: 1px solid var(--blue-dim);
  background: rgba(0, 0, 0, 0.25);
}

.admin-nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 4px solid transparent;
  color: var(--text-muted);
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.admin-nav button.active,
.admin-nav button:hover {
  color: #fff;
  background: rgba(100, 149, 237, 0.1);
  border-left-color: var(--blue);
}

.admin-content {
  padding: 1.5rem;
  max-width: 1100px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--blue-border);
  border-radius: var(--glass-radius);
  color: #fff;
  padding: 0.6rem 0.85rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: rgba(100, 149, 237, 0.6);
  box-shadow: 0 0 12px var(--blue-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tabs button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--blue-border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.tabs button.active {
  background: var(--blue-dim);
  color: #fff;
  border-color: var(--blue);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem;
  border-bottom: 1px solid var(--blue-dim);
  text-align: left;
}

.data-table th {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--glass-radius);
  z-index: 9999;
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}

.toast.success { background: #1e5631; color: #fff; border: 1px solid #28a745; }
.toast.error { background: #5c1a1a; color: #fff; border: 1px solid #dc3545; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-wrap {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2rem;
}

.login-wrap h1 {
  margin: 0 0 1.5rem;
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #ffb3b3;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    max-height: none;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--blue-dim);
  }
  .admin-nav button {
    width: auto;
    flex: 1 1 auto;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .header-search { display: none; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #252525; border-radius: 8px; }
