/* ============================================
   NELLY TRIES THINGS - MAIN STYLES
   Mobile-first, playful, personality-driven design
   ============================================ */

/* === CSS VARIABLES === */
:root {
  /* Colors - soft, friendly palette */
  --primary: #9B59B6;
  --primary-dark: #7D3C98;
  --secondary: #4ECDC4;
  --accent: #FFD93D;
  --bg-cream: #FFF8F0;
  --bg-white: #FFFFFF;
  --text-dark: #2D3142;
  --text-gray: #5F6477;
  --text-light: #9B9EAD;
  --border: #E8E8E8;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  --font-heading: 'Chalkboard SE', 'Comic Sans MS', 'Marker Felt', cursive, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Border radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Layout */
  --mobile-header-height: 72px;

  /* Unified image sizing variables */
  --media-square-size: 800px; /* canonical source asset size */
}

/* ============================================
   UNIFIED MEDIA STYLES
   Use one square source (e.g. 800x800) everywhere
   ============================================ */
.media-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover; /* center crop for consistency */
  object-position: 50% 50%;
  display: block;
  background: rgba(0,0,0,0.03);
}

/* Optional containment variant (if needed later) */
.media-square.contain {
  object-fit: contain;
  background: white;
}

  /* Nelly: shift eco-wise dog image down within the frame */
  img.card-image[alt="GREENER WALKER Poop Bags"] {
    object-fit: cover;
    object-position: 50% 70%; /* push visible area downward */
  }
/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-gray);
}

.text-large {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
}

.section-tight {
  padding: var(--space-xl) 0;
}

/* === HEADER & NAVIGATION === */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 3000; /* ensure header stays above page content */
  border-bottom: 3px solid var(--primary);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-emoji {
  font-size: 2rem;
  display: inline-block;
  animation: wag 1.5s ease-in-out infinite;
}

@keyframes wag {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  background: var(--bg-cream);
  color: var(--primary);
  outline: none;
}

.nav-link.active {
  background: var(--primary);
  color: var(--bg-white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: var(--primary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

@media (max-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 3000;
  }

  /* add top padding so content isn't hidden under fixed header */
  body {
    padding-top: var(--mobile-header-height);
  }

  body.nav-open {
    overflow: hidden;
  }
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--mobile-header-height);
    left: var(--space-sm);
    right: var(--space-sm);
    background: var(--bg-white);
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    display: none;
    z-index: 2000; /* ensure menu sits above content on mobile */
  }
  
  .nav-links.active {
    display: flex;
  }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🦴';
  position: absolute;
  font-size: 15rem;
  opacity: 0.05;
  top: -4rem;
  right: -4rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: var(--space-lg);
}

.nelly-avatar {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  border: 5px solid white;
  margin: var(--space-lg) auto;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.nelly-avatar:hover {
  transform: scale(1.05) rotate(2deg);
  animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-dark);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  outline: 3px solid rgba(255, 217, 61, 0.3);
  outline-offset: 2px;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-small {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.95rem;
}

/* === CARDS === */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card image now uses square base then adaptive crop */
.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 50%;
}

.card-body {
  padding: var(--space-md);
}

.card-category {
  display: inline-block;
  background: var(--bg-cream);
  color: var(--text-gray);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card-title {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

/* === RATING === */
.rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.rating-badge {
  background: var(--accent);
  color: var(--text-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === GRID LAYOUTS === */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* === PRODUCT CARDS (Current Obsessions) === */
.obsessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.product-card:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: var(--shadow-lg);
}

.product-quote {
  background: var(--bg-cream);
  padding: var(--space-md);
  font-style: italic;
  color: var(--text-gray);
  border-left: 4px solid var(--secondary);
  margin: var(--space-md);
  border-radius: var(--radius-sm);
}

/* === STORY CARDS === */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.story-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.story-tag {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

/* === EMAIL CAPTURE === */
.email-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #3DBDB4 100%);
  color: white;
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  border-radius: var(--radius-lg);
  margin: var(--space-xxl) 0;
}

.email-section h2 {
  color: white;
}

.email-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.email-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.email-input {
  flex: 1;
  min-width: 250px;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.email-input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.email-success {
  background: white;
  color: var(--secondary);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  margin-top: var(--space-md);
  display: none;
}

.email-success.show {
  display: block;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === FILTER BUTTONS === */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.filter-btn {
  padding: var(--space-sm) var(--space-md);
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-gray);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn:focus {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* === PRODUCT REVIEW PAGE === */
.review-hero {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Review hero handles square assets gracefully */
.review-hero-image {
  width: 100%;
  max-width: 600px;
  height: 400px; /* crops a square into a cinematic frame */
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.quick-stats {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
  border-left: 6px solid var(--primary);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

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

.stat-label {
  font-weight: 700;
  color: var(--text-dark);
}

.stat-value {
  color: var(--text-gray);
  font-weight: 600;
}

.zoomies-meter {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.zoomie-bar {
  height: 8px;
  flex: 1;
  background: var(--border);
  border-radius: var(--radius-sm);
}

.zoomie-bar.active {
  background: var(--accent);
}

.review-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.review-section h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: var(--space-xl) 0;
}

.cta-box h3 {
  color: white;
}

.affiliate-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

/* === STORY/BLOG POST === */
.story-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.story-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

/* Story hero also crops square source into wide banner */
.story-hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.story-content {
  max-width: 720px;
  margin: 0 auto;
}

.story-section {
  margin-bottom: var(--space-xl);
}

.story-section h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.product-callout {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-top: 4px solid var(--secondary);
}

.product-callout h4 {
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.callout-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.callout-product-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.callout-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Smaller product images inside story callouts */
.callout-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

/* === FOOTER === */
.footer {
  background: var(--text-dark);
  color: white;
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xxl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-bio {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  color: rgba(255, 255, 255, 0.8);
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === FLOATING BUTTON === */
.floating-btn {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  z-index: 999;
  display: none;
  animation: bounce 2s ease-in-out infinite;
}

.floating-btn.show {
  display: block;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .floating-btn {
    bottom: var(--space-md);
    right: var(--space-md);
    font-size: 0.9rem;
  }
}

/* === NELLY'S MOOD WIDGET === */
.mood-widget {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: var(--space-lg);
  border: 3px dashed var(--secondary);
}

.mood-widget h4 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.mood-display {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus states */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.hidden {
  display: none;
}

/* ============================================
   CAREER CENTER STYLES
   ============================================ */
:root {
    --corp-blue: #2c3e50;
    --corp-dark: #1a252f;
    --corp-light: #ecf0f1;
    --corp-accent: #3498db;
    --corp-success: #27ae60;
    --card-bg: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

.career-container {
    max-width: 600px;
    width: 95%;
    margin: 40px auto;
}

.app-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Header */
.app-header {
    background: white;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.app-header h1 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 800;
    color: var(--corp-blue);
    letter-spacing: -0.5px;
}

.app-header p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
    font-weight: 500;
}

/* Content Area */
.app-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Transitions */
.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Intro Screen */
.intro-screen { text-align: center; }

.intro-icon {
    font-size: 4.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: #f8f9fa;
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
}

.btn-start {
    background: var(--corp-blue);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 25px;
    font-weight: 700;
    width: 100%;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.3);
    background: var(--corp-dark);
}

/* Question Screen */
.question-screen { display: none; }

.progress-container {
    background: #f1f2f6;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--corp-accent);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--corp-blue);
    margin-bottom: 25px;
    line-height: 1.4;
}

.options-grid { display: grid; gap: 12px; }

.option-btn {
    background: white;
    border: 2px solid #e1e4e8;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.option-btn:hover {
    border-color: var(--corp-accent);
    background: #f8fbff;
    transform: translateX(4px);
}

.option-emoji { font-size: 1.4rem; }

/* Loading Screen */
.processing-screen { display: none; text-align: center; }

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--corp-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 25px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Result Screen - Professional ID Card */
.result-screen { display: none; }

.id-card-container {
    perspective: 1000px;
    margin-bottom: 25px;
}

.id-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    background-image: radial-gradient(circle at 100% 0%, rgba(52, 152, 219, 0.05) 0%, transparent 20%);
}

/* Holographic Strip */
.holo-strip {
    height: 8px;
    background: linear-gradient(90deg, #3498db, #9b59b6, #3498db);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.card-main {
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.card-photo-box {
    width: 90px;
    height: 110px;
    background: #f1f2f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 1px solid #e1e4e8;
    flex-shrink: 0;
}

.card-details { flex-grow: 1; }

.company-logo {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #95a5a6;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.employee-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--corp-blue);
    margin: 0 0 4px 0;
    line-height: 1.1;
    font-weight: 800;
}

.employee-title {
    color: var(--corp-accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-tag {
    display: inline-block;
    background: #f1f2f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-right: 4px;
    margin-bottom: 4px;
}

.card-footer {
    background: #f8f9fa;
    padding: 12px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #bdc3c7;
    font-family: monospace;
}

/* Recommendation Box */
.rec-box {
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rec-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f2f6;
}

.action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.btn-share { background: var(--corp-blue); color: white; }
.btn-share:hover { opacity: 0.9; }
.btn-retry { background: transparent; color: #95a5a6; font-weight: 500; }

.name-input {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border: 2px solid #e1e4e8;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.name-input:focus { border-color: var(--corp-accent); outline: none; }

/* ============================================
   GRIEVANCE GENERATOR STYLES
   ============================================ */
.letter-paper {
    background: #fff;
    border: 1px solid #e1e4e8;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: 'Georgia', serif;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        45deg,
        #e74c3c,
        #e74c3c 10px,
        #fff 10px,
        #fff 20px,
        #3498db 20px,
        #3498db 30px,
        #fff 30px,
        #fff 40px
    );
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 15px;
}

.letter-body {
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.letter-body p {
    margin-bottom: 15px;
}

.letter-footer {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.signature-line {
    font-weight: bold;
    color: #2c3e50;
}

/* Custom Brand Select Dropdown */
.brand-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232c3e50%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 0.8rem auto;
    padding-right: 3rem !important;
    color: var(--corp-blue);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.brand-select:hover {
    border-color: var(--corp-accent);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.brand-select:focus {
    border-color: var(--corp-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
