/* AniFlex Web App & Portal Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --bg-dark: #0D0F17;
  --bg-card: #161922;
  --bg-card-secondary: #1F2430;
  --bg-card-hover: #262B3A;
  
  --accent-lime: #A3E635;
  --accent-lime-hover: #B4F442;
  --accent-emerald: #84CC16;
  --accent-yellow: #FACC15;
  
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-lime: rgba(163, 230, 53, 0.3);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-lime: 0 10px 30px -10px rgba(163, 230, 53, 0.35);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-lime);
}

/* Header Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.4);
}

.brand-accent {
  color: var(--accent-lime);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--bg-dark);
  background: var(--accent-lime);
  font-weight: 700;
}

.btn-primary {
  background: var(--accent-lime);
  color: var(--bg-dark);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-lime);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-lime);
}

/* Page Views Container */
.page-view {
  display: none;
  min-height: calc(100vh - 80px);
  padding-bottom: 4rem;
}

.page-view.active {
  display: block;
}

/* Hero Landing Page */
.hero-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-preview-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 300px;
  height: 620px;
  background: var(--bg-card);
  border-radius: 44px;
  border: 10px solid #232734;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(163, 230, 53, 0.25);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-mockup:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.95), 0 0 50px rgba(163, 230, 53, 0.35);
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.35) 0%, rgba(13, 15, 23, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.showcase-glass-card {
  position: relative;
  z-index: 2;
  background: rgba(22, 25, 34, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(163, 230, 53, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.showcase-glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-lime);
}

.showcase-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showcase-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-lime);
  background: rgba(163, 230, 53, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(163, 230, 53, 0.25);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.showcase-format-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.showcase-featured-title {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.showcase-poster {
  width: 70px;
  height: 100px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1F2430, #0D0F17);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.poster-letter {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-lime);
}

.showcase-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.showcase-details h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.showcase-progress {
  color: var(--accent-lime);
  font-size: 0.85rem;
  font-weight: 700;
}

.showcase-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--bg-card-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.25rem;
}

.showcase-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-lime));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Floating Mini Cards */
.mini-floating-card {
  position: absolute;
  z-index: 3;
  background: rgba(31, 36, 48, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  animation: floatAnimation 4s ease-in-out infinite alternate;
}

.float-card-1 {
  bottom: -20px;
  left: -20px;
}

.float-card-2 {
  top: -15px;
  right: -15px;
  animation-delay: -2s;
}

@keyframes floatAnimation {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.mini-icon {
  font-size: 1.2rem;
}

.mini-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mini-sub {
  font-size: 0.7rem;
  color: var(--accent-lime);
  font-weight: 600;
}

.mini-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-lime);
}

.mini-sub2 {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Mode Toggle in Hero */
.showcase-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  z-index: 5;
  position: relative;
}

.mode-btn {
  background: var(--bg-card-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.mode-btn.active {
  background: var(--accent-lime);
  color: var(--bg-dark);
  font-weight: 700;
  border-color: var(--accent-lime);
}

/* Phone Mockup Frame */
.phone-mockup {
  width: 290px;
  height: 600px;
  background: var(--bg-card);
  border-radius: 40px;
  border: 10px solid #232734;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(163, 230, 53, 0.2);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screenshots Gallery Section */
.app-screenshots-section {
  max-width: 1200px;
  margin: 4rem auto 2rem auto;
  padding: 0 2rem;
}

.screenshots-showcase-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.app-screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.screenshot-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-lime);
}

/* Features Grid */
.features-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-lime);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-lime);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Tracker Demo View (App UI Match) */
.tracker-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tracker-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Spotlight Card Header */
.spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #1F2430, #0D0F17);
  border: 1px solid var(--border-subtle);

  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.spotlight-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
}

.spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 15, 23, 0.95) 0%, rgba(13, 15, 23, 0.3) 100%);
}

.spotlight-content {
  position: relative;
  z-index: 2;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent-lime);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.spotlight-progress {
  color: var(--accent-lime);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Search & Filters Bar */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.chip {
  background: var(--bg-card-secondary);
  color: var(--text-secondary);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chip:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.chip.active {
  background: var(--accent-lime);
  color: var(--bg-dark);
  font-weight: 700;
}

/* Titles Grid */
.titles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25 ease;
  cursor: pointer;
}

.entry-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-lime);
  box-shadow: var(--shadow-card);
}

.card-poster-container {
  position: relative;
  width: 100%;
  aspect-ratio: 0.7;
  background: var(--bg-card-secondary);
  overflow: hidden;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1F2430, #0D0F17);
}

.fallback-letter {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-lime);
}

.badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.card-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-progress {
  color: var(--accent-lime);
  font-size: 0.8rem;
  font-weight: 700;
}

.card-status-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.status-watching { color: #60A5FA; }
.status-reading { color: #60A5FA; }
.status-completed { color: #34D399; }
.status-plan { color: #FBBF24; }

/* Legal Document View */
.legal-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-icon {
  font-size: 2.5rem;
  color: var(--accent-lime);
}

.legal-title h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.legal-title p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-body {
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 1.7;
}

.legal-body h3 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Contact Us View */
.contact-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-lime);
  box-shadow: 0 0 10px rgba(163, 230, 53, 0.2);
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  background: var(--bg-dark);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-lime);
  text-decoration: none;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem;
  }
  
  .hero-subtitle {
    margin: 0 auto 2rem auto;
  }
  
  .hero-badges, .hero-buttons {
    justify-content: center;
  }
  
  .navbar {
    padding: 0.8rem 1rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .legal-container, .contact-card {
    padding: 1.5rem;
  }
}
