/* common.css — Shared styles across all MakeNation pages */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #e2e9f0;
  color: #264653;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  background: #1d3557;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  height: 118px;
}
header .container {
  height: 100%;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 100px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  flex-wrap: wrap;
  gap: 4px 0;
}
.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #a3bdd4;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Buttons */
.btn-outline {
  padding: 10px 20px;
  border: 2px solid #1d3557;
  color: #1d3557;
  border-radius: 6px;
  text-decoration: none;
}
.btn-outline:hover {
  background: #1d3557;
  color: white;
}
header .btn-outline {
  border-color: #fff;
  color: #fff;
}
header .btn-outline:hover {
  background: #fff;
  color: #1d3557;
}
.btn-primary {
  background: #1d3557;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background: #15293e;
}
.btn-urgent {
  background: linear-gradient(135deg, #e76f51 0%, #f9844a 100%) !important;
  box-shadow: 0 4px 14px rgba(191, 99, 48, 0.4);
  font-weight: 600;
}
.btn-urgent:hover {
  background: linear-gradient(135deg, #f9844a 0%, #c4563a 100%) !important;
  box-shadow: 0 6px 20px rgba(191, 99, 48, 0.5);
  transform: translateY(-1px);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  color: #777;
  border-top: 1px solid #eee;
}
footer a {
  color: #457b9d;
  text-decoration: none;
  margin: 0 12px;
}
footer a:hover {
  text-decoration: underline;
}

/* Notification Bell */
.notification-bell {
  position: relative;
  cursor: pointer;
  margin-left: 20px;
  font-size: 1.4rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
}
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #f9844a;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* My Jobs nav badge */
.nav-jobs-link {
  position: relative;
}
.nav-jobs-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #a8453a;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* My Requests nav badge */
.nav-requests-link {
  position: relative;
}
.nav-requests-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #5c7a8a;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-height: 450px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.notification-dropdown.active {
  display: block;
}
.notification-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notification-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #1a1a1a;
}
.mark-all-read {
  background: none;
  border: none;
  color: #1d3557;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}
.notification-list {
  max-height: 350px;
  overflow-y: auto;
}
.notification-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.2s;
}
.notification-item:hover {
  background: #e2e9f0;
}
.notification-item.unread {
  background: #f2f2f2;
  border-left: 3px solid #1d3557;
}
.notification-item .title {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.notification-item .message {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 4px;
  line-height: 1.4;
}
.notification-item .time {
  color: #888;
  font-size: 0.75rem;
}
.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Keywords */
.keyword {
  background: #a8dadc;
  color: #1d3557;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.85rem;
  margin-right: 6px;
  display: inline-block;
}

/* Loading spinner */
.loading {
  text-align: center;
  padding: 60px 0;
  color: #888;
}

/* Utility: inline styles replaced */
.hidden { display: none; }
.text-center { text-align: center; }
.text-success { color: #277da1; }
.text-warning { color: #f9c74f; }
.text-error { color: #f9844a; }
.text-muted { color: #888; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.cursor-pointer { cursor: pointer; }
.mt-10 { margin-top: 10px; }

/* Footer credit line (e.g. "Hosted on Netlify") */
.footer-credit { margin-top: 10px; font-size: 0.8rem; color: #999; }
.footer-credit a { color: #999 !important; text-decoration: underline !important; }

/* Internal reference link (dark, bold, no underline) */
.link-body { color: #1d3557; text-decoration: none; font-weight: 600; }
.link-body:hover { text-decoration: underline; }

/* Alert/info boxes — replacing inline styles in template literals */
.alert-box {
  border-radius: 6px;
  padding: 12px;
  font-size: 0.9rem;
}
.alert-box--warning {
  background: #fef9e7;
  border: 1px solid #f9c74f;
}
.alert-box--error {
  background: #fef0eb;
  border: 1px solid #f9844a;
  color: #b5451e;
}
.alert-box--success {
  background: #dff0f5;
  border: 1px solid #a3b8a5;
  color: #3d5a3f;
}
.alert-box--info {
  background: #eef3f5;
  border: 1px solid #a3b8c4;
  color: #3d5a6a;
}

/* Character count indicators (form fields) */
.char-count {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

/* Beta banner (site config) */
.beta-banner {
  background: #D97706;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.9rem;
  z-index: 102;
}
.beta-banner .beta-banner-text {
  display: inline-block;
}
.beta-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

/* Signups paused message (join page) */
.signups-paused {
  background: #fef9e7;
  border: 1px solid #f9c74f;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.signups-paused.hidden {
  display: none;
}
.signups-paused-text {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #8a6d15;
}
.signups-paused-contact {
  margin: 0;
  font-size: 0.9rem;
}
.signups-paused-contact a {
  color: #1d3557;
  font-weight: 600;
}
.signup-form-hidden {
  display: none !important;
}

/* Mobile responsive — common breakpoints */
@media (max-width: 768px) {
  header {
    height: 98px;
  }
  .hamburger {
    display: flex;
  }
  .logo img {
    display: block;
    height: 80px;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1d3557;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    margin: 16px 0;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
  }
  .notification-dropdown {
    width: 300px;
    right: -100px;
  }
}
