/**
 * AllOpen layout — structure only (dark-safe defaults).
 * Theme/colors live in feed-pro.css. Do not reintroduce light-theme comment colors here.
 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: Arimo, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: 60px;
  min-height: 100vh;
}

img, video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* —— Nav —— */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid #262626;
  padding: 0.55rem 0;
  backdrop-filter: blur(14px);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo img,
.nav-logo-img {
  height: 24px !important;
  width: auto !important;
  max-height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-left: 1rem;
  flex: 1;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.55rem;
  border-radius: 0;
  white-space: nowrap;
  border: none;
  background: none;
  position: relative;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #fff;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.user-anon {
  font-size: 0.8rem;
  color: #cfcfcf;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.nav-toggle .bar {
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 0.75rem 0 1.5rem;
    background: #0a0a0a;
    border-bottom: 1px solid #262626;
    transition: left 0.28s ease;
    z-index: 9999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  .nav-user {
    flex-direction: column;
    align-items: stretch;
    margin: 0.5rem 0 0;
    gap: 0;
    padding-top: 0.5rem;
    border-top: 1px solid #262626;
  }

  .nav-user .user-anon {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    color: #e63946;
    font-weight: 600;
  }

  .nav-menu .nav-user .nav-link,
  .nav-menu .nav-user button.notif-bell-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    border-radius: 0;
    text-align: left;
  }

  .nav-menu .nav-user button.notif-bell-link span:not(.notif-badge) {
    display: inline;
  }

  .nav-menu .nav-user .notif-bell-link .notif-badge {
    position: static;
    margin-left: auto;
    border-color: #0a0a0a;
  }

  .nav-menu:not(.user-logged-in) .nav-link[href*="profile"] {
    display: none;
  }

  .nav-menu.user-logged-in .nav-link[href*="login"],
  .nav-menu.user-logged-in .nav-link[href*="register"] {
    display: none;
  }
}

@media (min-width: 769px) {
  .nav-menu.user-logged-in .nav-link[href*="login"],
  .nav-menu.user-logged-in .nav-link[href*="register"] {
    display: none;
  }

  .nav-menu:not(.user-logged-in) .nav-link[href*="profile.html"] {
    display: none;
  }
}

/* —— Page shell —— */
.main-content {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 0 5rem;
}

.welcome-section {
  padding: 1.5rem 1rem 0.5rem;
  text-align: center;
}

.welcome-container {
  max-width: 640px;
  margin: 0 auto;
}

.welcome-section h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  margin-bottom: 0.35rem;
}

.welcome-section .highlight {
  color: #e63946;
}

.welcome-subtitle {
  color: #cfcfcf;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.welcome-description {
  color: #9a9a9a;
  font-size: 0.92rem;
  max-width: 36rem;
  margin: 0 auto 1rem;
}

.welcome-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin: 1rem 0;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ddd;
  font-size: 0.85rem;
}

.welcome-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.welcome-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
}

.welcome-btn.primary {
  background: #e63946;
  color: #fff;
}

.welcome-btn.secondary {
  background: transparent;
  border: 1px solid #404040;
  color: #f5f5f5;
}

/* —— Search —— */
.search-section {
  padding: 0.75rem 1rem 0.25rem;
}

.search-container {
  max-width: 540px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 0.25rem 0.35rem 0.25rem 0.9rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #f5f5f5;
  padding: 0.55rem 0;
  outline: none;
}

.search-actions {
  display: flex;
  align-items: center;
}

.search-btn,
.search-clear-btn,
.close-search-btn {
  background: transparent;
  border: none;
  color: #cfcfcf;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
}

.search-hint {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  color: #737373;
  font-size: 0.75rem;
  margin-top: 0.45rem;
  padding: 0 0.35rem;
}

.search-results {
  margin-top: 0.75rem;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #262626;
}

.search-results-content {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
}

/* —— Auth —— */
.auth-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.75rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-logo {
  display: block;
  width: 40px;
  height: 40px;
  max-width: 40px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
  border-radius: 8px;
}

.auth-inline-error {
  display: block;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.45);
  color: #ff8a94;
  font-size: 0.88rem;
  line-height: 1.4;
}

.auth-inline-error[hidden] {
  display: none !important;
}

.auth-header h2 {
  color: #fff;
  font-size: 1.35rem;
}

.auth-header p {
  color: #9a9a9a;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.auth-form .form-group {
  margin-bottom: 0.9rem;
}

.auth-form label {
  display: block;
  color: #cfcfcf;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.auth-form input,
.auth-form textarea,
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: #f5f5f5;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  box-sizing: border-box;
}

/* Password field + eye toggle (login / register / reset) */
.password-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 2.75rem !important;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #cfcfcf;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.password-toggle:hover,
.password-toggle:focus {
  color: #fff;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

.password-toggle i {
  font-size: 1rem;
  line-height: 1;
  color: inherit;
}

.auth-btn {
  width: 100%;
  margin-top: 0.75rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-footer {
  text-align: center;
  margin-top: 1rem;
  color: #9a9a9a;
  font-size: 0.85rem;
}

.auth-footer a {
  color: #e63946;
  font-weight: 600;
}

/* —— FAB —— */
.fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #e63946;
  color: #fff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
  cursor: pointer;
  z-index: 900;
}

/* —— Legal / about simple pages —— */
.legal-page,
.about-page,
.content-page {
  max-width: 720px;
  margin: 2rem auto 3rem;
  padding: 0 1.25rem;
  color: #e8e8e8;
}

.legal-page h1,
.about-page h1,
.content-page h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.legal-page a,
.about-page a,
.content-page a {
  color: #7ecbff;
}

/* —— Modals shell —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden {
  display: none !important;
}

.made-in-india {
  text-align: center;
  color: #737373;
  font-size: 0.8rem;
  padding: 1.5rem 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Notification bell (ported from legacy style.css — no override stack) */
.notif-bell-link,
button.notif-bell-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-right: 0.35rem;
  cursor: pointer;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.45rem 0.55rem;
}

@media (min-width: 769px) {
  .notif-bell-link,
  button.notif-bell-link {
    justify-content: center;
    margin-right: 0.35rem;
  }

  .notif-bell-link span:not(.notif-badge),
  button.notif-bell-link span:not(.notif-badge) {
    display: none;
  }
}

.notif-bell-link:hover {
  color: #fff;
}

.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #e63946;
  color: #fff;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a0a0a;
  padding: 0 4px;
  line-height: 1;
  box-sizing: border-box;
}

/* —— Site footer (About / legal pages) —— */
.site-footer {
  margin-top: 2rem;
  padding: 2.25rem 1.25rem 1.5rem;
  border-top: 1px solid #262626;
  background: #0c0c0c;
  color: #bdbdbd;
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem 1.25rem;
}

.site-footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.site-footer-brand p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #9a9a9a;
  margin: 0 0 0.5rem;
}

.site-footer-mission {
  color: #737373 !important;
  font-size: 0.8rem !important;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.site-footer-col a,
.site-footer-col span {
  color: #9a9a9a;
  font-size: 0.85rem;
  text-decoration: none;
  line-height: 1.45;
}

.site-footer-col a:hover {
  color: #fff;
}

.site-footer-bottom {
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #1f1f1f;
  text-align: center;
  font-size: 0.78rem;
  color: #737373;
}

@media (max-width: 800px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* —— Utility —— */
[hidden] {
  display: none !important;
}
