/* ===== Global Styles ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #1b1b1b;
  color: #b5b5b5;
}

a { color: #15858c; text-decoration: none; }
a:hover { color: #00bfa6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Notification Bell */
.notif-link { position: relative; display: inline-flex; align-items: center; }
.notif-badge {
  position: absolute; top: -6px; right: -10px;
  background: #ff5353; color: #fff; font-size: 0.75rem;
  padding: 2px 6px; border-radius: 999px; font-weight: 700;
}

/* ==== Hero ==== */
.hero {
  background-color: #1b1b1b;
  text-align: center;
  padding: 60px 20px;
  color: #e0e0e0;
}
.sub { max-width: 720px; margin: 10px auto 24px; }
.cta-row { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.secondary-button { border:1px solid #15858c; padding:10px 16px; border-radius:6px; color:#e0e0e0; }

/* Section Container */
.section-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 60vh;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ===== Top Bar ===== */
.top-bar { background-color: #000; padding: 10px 0; }
.top-bar-flex {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: flex-end; align-items: center;
}

/* ===== Construction Banner ===== */
.construction-banner {
  background-color: #2a2a2a;
  color: #ffcc00;
  text-align: center;
  font-weight: bold;
  padding: 10px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid #15858c;
}

/* ===== Auth Links ===== */
.auth-links { display: flex; align-items: center; gap: 15px; }
.auth-links a, .welcome-msg { color: #b5b5b5; text-decoration: none; font-size: 0.95rem; }
.auth-links .signup {
  color: #fff; background-color: #15858c;
  padding: 8px 14px; border-radius: 4px;
}
.auth-links .signup:hover { background-color: #00bfa6; }
.auth-links .logout {
  color: #fff; background-color: #555;
  padding: 6px 12px; border-radius: 4px; font-weight: bold;
}
.auth-links .logout:hover { background-color: #777; }

/* ===== Header ===== */
.header {
  background-color: #000;
  padding: 20px 0;
  border-bottom: 1px solid #15858c;
}

/* Header Flex Container */
.header-flex {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Brand (logo + title) */
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:#e0e0e0; }
.logo { height: 48px; width: auto; }

/* Site title & tagline */
.site-title {
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  font-size: 2rem;
  color: #e0e0e0;
}
.site-title .tagline {
  margin-left: 6px;
  vertical-align: baseline;
  font-weight: 500;
  color: #00bfa6;
  font-size: 1rem;
}

/* ===== Navigation ===== */
.navbar { display: flex; align-items: center; margin-left: auto; }
.nav-flex {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-flex a { color: #e0e0e0; font-weight: 500; }
.nav-flex a:hover { color: #00bfa6; }

/* ==== Footer ==== */
.footer {
  display: flex; justify-content: center; align-items: center;
  padding: 30px 20px;
  background-color: #121212;
  color: #777;
  font-size: 0.9em;
}

/* ==== Social Share ==== */
.social-share { margin-bottom: 15px; }
.social-share p { margin-bottom: 10px; font-weight: 600; color: #ccc; }
.social-share a {
  margin: 0 10px; font-size: 1.5rem;
  display: inline-block; transition: transform 0.2s ease;
}
.social-share a:hover { transform: scale(1.2); }

/* Badge */
.badge {
  padding: 2px 8px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}

/* Forms */
.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-top: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }

/* Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; width: 100%;
}
.card {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 16px;
}
.link-button { color: #00bfa6; font-weight: 600; }
.link-button:hover { text-decoration: underline; }
.steps { max-width: 700px; margin: 0 auto; text-align: left; line-height: 1.6; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1rem;
}

/* === Mobile behaviour === */
@media (max-width: 760px) {
  .mobile-toggle { display: inline-flex; }
  .navbar { display: none; width: 100%; }
  .navbar.is-open { display: flex; flex-direction: column; }
  .nav-flex { flex-direction: column; gap: 12px; padding: 12px 0; }
  .logo { height: 40px; }
  .site-title { font-size: 1.4rem; }
  .site-title .tagline { font-size: 0.9rem; white-space: normal; }
}

/* Tablet */
@media (min-width: 760px) {
  .site-title { font-size: 1.9rem; }
  .site-title .tagline { font-size: 1.05rem; }
}
/* Desktop */
@media (min-width: 1024px) {
  .site-title { font-size: 2.2rem; }
  .site-title .tagline { font-size: 1.15rem; }
}

/* Grid of cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; width: 100%;
}
.project-card {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.card-link { display: block; }
.thumb-wrap { aspect-ratio: 16/9; background: #0d0d0d; overflow: hidden; }
.thumb { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px; }
.card-title { margin: 0 0 6px; color: #e0e0e0; }
.card-excerpt { margin: 0; color: #b5b5b5; }

.link-button.danger {
  color: #ff5555; background: transparent; border: none; cursor: pointer;
  font-size: 0.9rem;
}
.link-button.danger:hover { text-decoration: underline; }

/* Blog */
.post-hero {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
}

/* ===== Tabs ===== */
.tabs {
  width: 100%;
  max-width: 1100px;
  margin: 12px auto 0;
}
.tablist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.tab-btn {
  appearance: none;
  border: 1px solid #2a2a2a;
  background: #121212;
  color: #e0e0e0;
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-weight: 600;
}
.tab-btn[aria-selected="true"] {
  background: #1b1b1b;
  border-bottom-color: #1b1b1b;
  color: #00bfa6;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* File and photo grid placeholders */
.file-grid, .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.file-card, .photo-card {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px;
}
.photo-card img {
  width: 100%; height: 140px; object-fit: cover; border-radius: 6px;
}

/* --- Centering helpers for sections --- */
.section--narrow { max-width: 980px; margin: 0 auto; }
.section--center { text-align: center; align-items: center; }
.section--center .card { text-align: left; }
.mission .features-grid,
.how-it-works .features-grid { justify-content: center; }

/* Feature icons */
.feature-icon {
  display: block;
  width: 40px;
  height: auto;
  margin: 0 auto 8px;
}

/* ===== Auth Form (Register / Login / Create Project) ===== */
.auth-form {
  max-width: 420px;
  margin: 40px auto;
  padding: 20px;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}

.auth-form h1 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #e0e0e0;
  font-size: 1.6rem;
  text-align: center;
}

.auth-form label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 500;
  color: #e0e0e0;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="file"],
.auth-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
  color: #e0e0e0;
  font-size: 1rem;
  box-sizing: border-box;
}

.auth-form textarea {
  resize: vertical;
  min-height: 120px;
}

.auth-form input[type="file"] {
  padding: 6px;
}

.error-message {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #ff5b5b;
  color: #ffb3b3;
  background: #2a0000;
  border-radius: 8px;
}

.form-footer-text {
  margin-top: 12px;
  text-align: center;
  color: #aaa;
}

/* ===== Call-to-Action Button ===== */
.cta-button {
  display: inline-block;
  background: #15858c;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
  width: 100%;
}

.cta-button:hover {
  background: #00bfa6;
  transform: translateY(-2px);
}

/* ===== Dropdown Styling ===== */
.form select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
  color: #e0e0e0;
  font-size: 1rem;
  appearance: none;
}

.form select:focus {
  outline: none;
  border-color: #15858c;
}

.form input[type="file"]::file-selector-button {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.form input[type="file"]::file-selector-button:hover {
  border-color: #00bfa6;
  color: #00bfa6;
}

.blog-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e0;
}

.blog-title .highlight-x {
  color: #016C7E; /* brand teal */
}

.sub {
  text-align: center;
  color: #aaa;
}

