/* Shared site styles, loaded by templates/base.html */

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  color: white;
  font-size: 120%;
  font-weight: bolder;
}

* {
  margin: 0;
  padding: 0;
}

.background-gradient {
  background-image: url("/static/images/background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  color: white;
  text-shadow: 2px 2px black;
}

/* Buttons have solid backgrounds, so the page's text shadow only blurs them (esp. light hover states) */
.btn {
  text-shadow: none;
}

/* Shared content panel used by every page */
.page {
  max-width: 1000px;
  margin: 1.5rem 1rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  font-weight: normal;
}

.page p {
  max-width: 60ch;
}

.page h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.page h2 {
  font-size: 1.4rem;
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 6px;
  border-bottom: 2px solid #4da3ff;
}

.page h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.4rem;
  color: #9fd1ff;
}

.page p {
  margin-bottom: 0.75rem;
}

.page ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.page li {
  margin: 3px 0;
}

/* Two-column button grid with small icons (Support, Links) */
.btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1rem;
}

.btn-grid .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
  background: #fff;
}

/* Navbar */
.navbar {
  padding: 0.5rem 1rem;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 0.75rem;
  padding: 0.25rem;
}

.navbar-title {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #fff;
}

.logo-image {
  max-height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.nav-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;  /* Hide scrollbar in IE and Edge */
  scrollbar-width: none;  /* Hide scrollbar in Firefox */
}

.nav-container::-webkit-scrollbar {
  display: none;  /* Hide scrollbar in Chrome/Safari/Opera */
}

.nowrap {
  white-space: nowrap;
}

.boxed-nav-item {
  margin: 0.2rem 0.15rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.boxed-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-link {
  font-weight: 500;
  transition: all 0.2s ease;
}

.bright-text {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.weather-widget {
  padding: 0.5rem;
  border-radius: 0.25rem;
}

/* Button sections side by side in two columns (Support, Links) */
.section-cols {
  columns: 2 300px;
  column-gap: 2rem;
}

.section-cols section {
  break-inside: avoid;
  padding-top: 0.5rem;
}

.section-cols h3 {
  margin-top: 0;
}

/* Feature cards with an icon (Internet, IP Phones). Set --accent on the page. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.feature {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.feature i {
  font-size: 1.5rem;
  color: var(--accent, #9fd1ff);
  line-height: 1;
}

.feature b {
  display: block;
  margin-bottom: 0.15rem;
}

.partner-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.partner-logo img {
  max-width: 100%;
}

/* Call-to-action strip at the bottom of a page */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: rgba(77, 163, 255, 0.15);
  border: 1px solid rgba(77, 163, 255, 0.4);
}

.cta p {
  margin: 0;
}

/* Click-to-copy (password lists) */
.copyable {
  cursor: pointer;
  font-family: Consolas, monospace;
}

.copyable:hover {
  color: #9fd1ff;
}

.copyable.copied::after {
  content: "  Copied!";
  color: #7CFC00;
  font-family: inherit;
  font-size: 0.8em;
}

@media (max-width: 991px) {
  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .boxed-nav-item {
    width: 100%;
    text-align: center;
    margin: 0.25rem 0;
    font-size: 0.9rem;
  }

  .weather-widget {
    margin-top: 1rem;
    justify-content: center;
    font-size: 0.9rem;
  }

  .logo-container {
    margin-bottom: 0.5rem;
  }

  .logo-image {
    max-height: 50px;
  }
}

/* Keep the footer at the bottom on short pages */
body.background-gradient {
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-top: 2px solid #4da3ff;
  font-size: 0.8rem;
  font-weight: normal;
  text-align: center;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer a {
  color: #9fd1ff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .page {
    margin: 1rem 0.5rem;
    padding: 1rem 1.25rem;
  }
}
