/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --brand: #ff5722;
  --brand-hover: #e64a19;
  --bg-body: #f8f9fa;
  --bg-card: #ffffff;
  --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --border-color: rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);

  /* Fonts */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Components */
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --input-bg: #fff;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-body: #121212;
  --bg-card: #1e1e1e;
  --bg-gradient: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
  --text-main: #f0f0f0;
  --text-muted: #b0b0b0;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.5);
  --navbar-bg: rgba(30, 30, 30, 0.85);
  --input-bg: #2d2d2d;
}

/* Body */
body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-color: var(--bg-body);
  /* Fallback */
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.page-title,
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 40px;
}

/* HERO SECTION */
.hero-section {
  text-align: center;
  padding: 80px 20px 60px;
  margin-bottom: 20px;
  /* Keep the radial gradient but blend it */
  background: radial-gradient(circle at center, rgba(255, 87, 34, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(120deg, #ff5722 0%, #ff9800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* Section Title */
.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

/* Buttons (Global) */
button {
  background: var(--brand);
  color: white;
  /* Always white on brand color */
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: var(--font-heading);
}

button:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

/* Links */
a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-hover);
}

/* Responsive Layout */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 15px;
  }

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

/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-main);
  color: var(--bg-body);
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 9999;
  animation: toastFadeUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes toastFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Global Password Toggle Wrapper */
.password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 48px !important;
  /* Touch target space */
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted) !important;
  font-size: 1.1rem;
  background: transparent !important;
  border: none !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  outline: none;
  box-shadow: none !important;
}

.toggle-password:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: var(--brand) !important;
  transform: translateY(-50%) !important;
}

.toggle-password:active {
  background-color: rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-50%) scale(0.95) !important;
}