/* ============================================
   BRAJ AWADHI KAVYALOK — Auth & Favourites CSS
   ============================================ */

/* ── HEADER: LOGIN BUTTON ─────────────────────────────── */
.auth-login-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232,184,122,0.1);
  color: var(--gold);
  border: 1px solid rgba(232,184,122,0.25);
  border-radius: 20px;
  padding: 0.28rem 0.9rem;
  font-size: 0.85rem;
  font-family: var(--font-hi);
  cursor: pointer;
  margin-left: 0.75rem;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.auth-login-btn:hover {
  background: rgba(232,184,122,0.2);
  border-color: rgba(232,184,122,0.45);
}

/* ── HEADER: USER MENU (shown when logged in) ─────────── */
.auth-user-menu {
  display: none;             /* shown via JS */
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.75rem;
}
.auth-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3b0a0a;
  color: var(--gold);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  font-family: var(--font-en);
  flex-shrink: 0;
}
.auth-user-name {
  font-size: 0.82rem;
  color: var(--gold-dim);
  font-family: var(--font-en);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-fav-link {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-en);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.auth-fav-link:hover { color: var(--gold-dim); border-color: var(--border-light); }
.auth-logout-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.73rem;
  font-family: var(--font-en);
  padding: 0.18rem 0.65rem;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.auth-logout-btn:hover { border-color: var(--border-light); color: var(--text-light); }

/* ── AUTH MODAL WRAPPER ───────────────────────────────── */
.auth-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal-wrap.hidden { display: none; }

#auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── AUTH MODAL CARD ──────────────────────────────────── */
.auth-modal {
  position: relative;
  background: #160b06;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  width: 100%;
  max-width: 370px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.85);
  z-index: 1;
}

.auth-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.05rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.auth-modal-close:hover { background: var(--border); color: var(--text); }

.auth-modal-ornament {
  font-size: 1.6rem;
  color: var(--gold-dim);
  opacity: 0.35;
  margin-bottom: 0.6rem;
  display: block;
  font-family: var(--font-hi);
}
.auth-modal-title {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
  font-family: var(--font-hi);
  line-height: 1.3;
}
.auth-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-en);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── GOOGLE BUTTON ────────────────────────────────────── */
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
  font-family: var(--font-en);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.2s;
  margin-bottom: 1.25rem;
}
.auth-google-btn:hover {
  background: #f2f2f2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.auth-google-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── DIVIDER ──────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.auth-divider span {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── EMAIL INPUT & BUTTON ─────────────────────────────── */
.auth-email-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-en);
  font-size: 0.92rem;
  padding: 0.68rem 1rem;
  outline: none;
  margin-bottom: 0.65rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-email-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(232,184,122,0.07);
}
.auth-email-input::placeholder { color: var(--text-dim); opacity: 0.8; }

.auth-email-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.68rem 1rem;
  font-size: 0.92rem;
  font-family: var(--font-hi);
  cursor: pointer;
  transition: background 0.2s;
}
.auth-email-btn:hover:not(:disabled) { background: var(--accent-light); }
.auth-email-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── STATUS MESSAGE ───────────────────────────────────── */
.auth-message {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-en);
  min-height: 1.2em;
  text-align: center;
  line-height: 1.5;
}

/* ── FAVOURITE BUTTON ─────────────────────────────────── */
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.88rem;
  font-family: var(--font-hi);
  padding: 0.38rem 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin-top: 1rem;
}
.fav-btn:hover {
  border-color: #e05540;
  color: #e05540;
}
.fav-btn.is-fav {
  border-color: #e05540;
  color: #e05540;
  background: rgba(224,85,64,0.08);
}
.fav-heart { font-size: 1.05rem; line-height: 1; }

/* ── FAVOURITES PAGE ──────────────────────────────────── */
.favs-page { max-width: 820px; margin: 0 auto; padding-bottom: 4rem; }

.favs-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.favs-header h1 { font-size: clamp(1.6rem,3.5vw,2.2rem); color: var(--gold); }
.favs-header p  { color: var(--text-light); font-size: 0.95rem; margin-top: 0.3rem; }

.favs-not-logged-in {
  text-align: center;
  padding: 4rem 1rem;
}
.favs-not-logged-in .favs-icon { font-size: 3rem; opacity: 0.25; display: block; margin-bottom: 1rem; }
.favs-not-logged-in p { color: var(--text-light); margin-bottom: 1.25rem; }

.favs-login-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-family: var(--font-hi);
  cursor: pointer;
  transition: background 0.2s;
}
.favs-login-cta:hover { background: var(--accent-light); }

.favs-loading { text-align: center; padding: 3rem; color: var(--text-dim); font-family: var(--font-en); }

.favs-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-light);
}
.favs-empty .favs-icon { font-size: 3rem; opacity: 0.2; display: block; margin-bottom: 1rem; }

.favs-section-title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-en);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.favs-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.favs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  gap: 1rem;
}
.favs-row:last-child { border-bottom: none; }
.favs-row:hover { background: #2c1408; }
.favs-row-title { font-size: 1.05rem; color: var(--gold); }
.favs-row-meta  { font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-en); margin-top: 0.15rem; }
.favs-row-arrow { color: var(--text-dim); flex-shrink: 0; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 600px) {
  .auth-user-name  { display: none; }
  .auth-fav-link   { display: none; }
  .auth-modal      { padding: 1.5rem 1.25rem; }
}