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

:root {
  --bg-primary: #080b11;
  --bg-secondary: #101622;
  --bg-glass: rgba(16, 22, 34, 0.65);
  --bg-glass-heavy: rgba(10, 14, 22, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 242, 254, 0.4);
  
  --primary-glow: #00f2fe;
  --primary-glow-rgb: 0, 242, 254;
  --secondary-glow: #4facfe;
  --accent-coral: #ff6b8b;
  --accent-green: #00f5a0;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;
  
  --shadow-neon: 0 0 15px rgba(0, 242, 254, 0.15);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --safe-area-bottom: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: radial-gradient(circle at 50% 0%, #151d30 0%, #080b11 80%);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Responsive App Shell Wrapper */
.app-shell {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-primary);
  position: relative;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(0, 242, 254, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
}

/* App Container and Navigation Grid */
.app-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: calc(100% - 40px);
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 90px 20px;
  scrollbar-width: none; /* Firefox */
}

.app-content::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/* Navigation Bar */
.nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  z-index: 900;
  padding-bottom: 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  background: none;
  border: none;
  outline: none;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  stroke: currentColor;
  stroke-width: 2px;
  fill: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active {
  color: var(--primary-glow);
}

.nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--primary-glow);
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6));
}

.nav-item:active svg {
  transform: scale(0.9);
}

/* Screens toggling */
.screen {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  flex-direction: column;
  min-height: 100%;
}

.screen.active-screen {
  display: flex;
  opacity: 1;
}

/* Typography styles */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #ffffff;
}

p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Onboarding Screen */
.onboarding-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 30px 0 20px 0;
}

.logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--secondary-glow) 100%);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
  margin-bottom: 12px;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, transparent);
  z-index: -1;
  opacity: 0.5;
}

.logo-text-large {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tagline {
  font-size: 13px;
  color: var(--text-dark);
  margin-top: 4px;
}

.onboarding-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.onboarding-step {
  display: none;
  flex-direction: column;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-step.active-step {
  display: flex;
}

.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  justify-content: center;
}

.indicator-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, width 0.3s ease;
}

.indicator-dot.active {
  background: var(--primary-glow);
  width: 40px;
  box-shadow: 0 0 8px var(--primary-glow);
}

.onboarding-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.onboarding-desc {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

/* Interactive Option Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.options-grid-full {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.option-card.selected {
  border-color: var(--primary-glow);
  background: rgba(0, 242, 254, 0.06);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--primary-glow) inset,
    var(--shadow-neon);
}

.option-card.selected::before {
  opacity: 1;
}

.option-icon {
  font-size: 24px;
  margin-bottom: 8px;
  z-index: 2;
}

.option-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 2px;
  z-index: 2;
}

.option-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  z-index: 2;
}

/* Button UI */
.btn-container {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--secondary-glow) 100%);
  color: #0b0f19;
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover, .btn-primary:active {
  box-shadow: 0 12px 25px rgba(0, 242, 254, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.05);
}

.btn-skip {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 12px;
  margin-top: 12px;
  cursor: pointer;
  font-family: var(--font-display);
}

/* For You Feed Header & Top Alert */
.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.profile-summary-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

.profile-summary-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.briefing-alert-banner {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(79, 172, 254, 0.04) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.briefing-alert-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-glow);
}

.briefing-alert-icon {
  background: rgba(0, 242, 254, 0.15);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-glow);
}

.briefing-alert-content h4 {
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 2px;
}

.briefing-alert-content p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Modern Article Cards */
.article-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
}

.article-img-container {
  height: 130px;
  position: relative;
  background-color: #1a2235;
  background-size: cover;
  background-position: center;
}

.article-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(8, 11, 17, 0.95));
}

.article-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-glow);
}

.article-bookmark-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-bookmark-btn:active {
  transform: scale(0.9);
}

.article-bookmark-btn.saved {
  color: var(--accent-coral);
  border-color: rgba(255, 107, 139, 0.3);
}

.article-card-body {
  padding: 16px;
}

.article-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.article-card-title {
  font-size: 18px;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
}

/* KEY CORE PRODUCT STYLING: 'How this affects you' section */
.affects-you-section {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(79, 172, 254, 0.02) 100%);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 16px;
  padding: 14px;
  position: relative;
}

.affects-you-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--primary-glow);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--primary-glow);
}

.affects-you-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-glow);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.affects-you-summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 10px;
  padding-left: 6px;
}

.affects-you-bullets {
  list-style: none;
  padding-left: 6px;
  margin-bottom: 12px;
}

.affects-you-bullets li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
  position: relative;
  padding-left: 12px;
}

.affects-you-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-glow);
}

.affects-you-action-btn {
  width: 100%;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 10px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--primary-glow);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.affects-you-action-btn:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--primary-glow);
}

/* Secondary Article details toggle link */
.article-details-toggle {
  text-align: center;
  margin-top: 12px;
}

.toggle-details-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.toggle-details-btn:hover {
  color: var(--text-muted);
}

.article-expandable-content {
  display: none;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  animation: fadeIn 0.3s ease;
}

.article-expandable-content.expanded {
  display: block;
}

/* Daily Briefing Screen */
.briefing-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.briefing-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.briefing-headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.briefing-date {
  font-size: 11px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.briefing-cluster {
  margin-bottom: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  padding-left: 12px;
}

.briefing-cluster-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.briefing-item {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
}

.briefing-item strong {
  color: var(--secondary-glow);
  font-weight: 600;
}

/* Settings Form elements */
.settings-group {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
}

.settings-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-glow);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-label {
  font-size: 14px;
  font-weight: 500;
}

.setting-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(0, 242, 254, 0.2);
  border-color: var(--primary-glow);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--primary-glow);
  box-shadow: 0 0 6px var(--primary-glow);
}

/* Select Form dropdown replacement */
.select-input-container {
  width: 100%;
  position: relative;
}

.select-box {
  background: rgba(8, 11, 17, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  width: 100%;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.select-box:focus {
  border-color: var(--primary-glow);
  box-shadow: var(--shadow-neon);
}

/* Around You Section with Interactive Map */
.map-screen-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.heilbronn-svg-map-wrapper {
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 12px;
  margin-bottom: 16px;
  position: relative;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.heilbronn-svg-map {
  width: 100%;
  height: 100%;
  max-width: 320px;
}

.map-district-path {
  fill: #162032;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-district-path:hover {
  fill: #22324e;
  stroke: rgba(0, 242, 254, 0.3);
}

.map-district-path.selected-district {
  fill: rgba(0, 242, 254, 0.15);
  stroke: var(--primary-glow);
  filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.4));
}

.map-marker {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-marker circle {
  fill: var(--accent-coral);
  stroke: #ffffff;
  stroke-width: 1.5px;
}

.map-marker.active-marker circle {
  fill: var(--primary-glow);
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px var(--primary-glow));
  animation: pulseMarker 2s infinite;
}

/* District picker header text */
.district-info-pill {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.district-info-pill span:first-child {
  font-size: 11px;
  color: var(--text-dark);
  text-transform: uppercase;
}

.district-info-pill span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-glow);
}

/* Modal Popup standard logic */
.custom-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.custom-modal.active-modal {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.modal-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-bullets {
  list-style: none;
  margin-bottom: 20px;
}

.modal-bullets li {
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.modal-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulseMarker {
  0% {
    r: 5px;
    stroke-width: 1.5px;
  }
  50% {
    r: 7px;
    stroke-width: 3px;
  }
  100% {
    r: 5px;
    stroke-width: 1.5px;
  }
}

/* Reading Challenge Card */
.challenge-card {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(79, 172, 254, 0.03) 100%);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.challenge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.challenge-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.challenge-status {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--primary-glow);
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-glow) 0%, var(--secondary-glow) 100%);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-reward-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reward-info {
  display: flex;
  flex-direction: column;
}

.reward-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reward-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
}

.btn-claim-reward {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

.btn-claim-reward.locked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
  cursor: not-allowed;
}

.btn-claim-reward.unlocked {
  background: linear-gradient(135deg, var(--accent-green) 0%, #00d285 100%);
  color: #080b11;
  box-shadow: 0 4px 15px rgba(0, 245, 160, 0.3);
  animation: claimPulse 1.5s infinite;
}

.btn-claim-reward.unlocked:active {
  transform: scale(0.95);
}

@keyframes claimPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(0, 245, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 160, 0); }
}

/* Event Category Filters */
.event-category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.event-category-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--primary-glow);
  color: #ffffff;
  box-shadow: var(--shadow-neon);
}

/* Floating Post Event Button */
.btn-post-event {
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--secondary-glow) 100%);
  color: #0b0f19;
  border: none;
  border-radius: 12px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
  transition: all 0.2s ease;
}

.btn-post-event:active {
  transform: scale(0.95);
}

/* Event Details popup panel */
.event-details-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 14px;
  margin-top: 2px;
  box-shadow: var(--shadow-premium);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-details-placeholder {
  font-size: 12px;
  color: var(--text-dark);
  text-align: center;
  padding: 10px 0;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

/* Interest Checkbox in Settings */
.interest-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.interest-checkbox-label input {
  display: none;
}

.interest-checkbox-label.checked {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--primary-glow);
  color: #ffffff;
  box-shadow: var(--shadow-neon);
}

/* Article Complete Checkbox Style */
.btn-read-complete {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-glass);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-read-complete:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-read-complete.completed {
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.3);
  color: var(--accent-green);
  cursor: default;
}

/* Responsive adjustment for clean direct mobile usage */
@media (max-width: 500px) {
  body {
    background: var(--bg-primary);
  }
  
  .app-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    border: none;
    box-shadow: none;
  }
  
  .app-container {
    height: 100%;
  }
}
