/* portal.css - NAD Employees Union Public Portal Styles */

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Portal Header ===== */
.portal-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
}

.portal-header .header-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.portal-header .header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.portal-header .header-nav a:hover {
  opacity: 1;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 1px;
}

.hero-title-hi {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero-recognition {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hero-founder {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: transparent;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-btn.primary {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.hero-btn.primary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Sections ===== */
.portal-section {
  padding: 3.5rem 1rem;
}

.portal-section.alt {
  background: var(--bg);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ===== About Grid ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.about-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== Unit Filter ===== */
.unit-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.unit-filter-btn {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.unit-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.unit-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Bearers Grid ===== */
.bearers-container {
  min-height: 100px;
}

.bearers-loading,
.bearers-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.bearer-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.bearer-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.bearer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.bearer-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bearer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bearer-rank {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.bearer-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Contact Grid ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1e3f66 0%, #0f172a 100%);
}

[data-theme="dark"] .about-card,
[data-theme="dark"] .bearer-card,
[data-theme="dark"] .contact-card {
  border: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-title-hi {
    font-size: 1rem;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .portal-section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .bearers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .portal-header .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .portal-header .header-nav.open {
    display: flex;
  }

  .portal-header .header-nav a {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .portal-header .header-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .unit-filter {
    gap: 0.35rem;
  }

  .unit-filter-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}
