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

:root {
  --bg-main: #f8fafc; /* Very light slate-gray for rich depth */
  --bg-card: #ffffff; /* Clean white for the Card UI */
  --primary-blue: #2563eb; /* Vibrant royal blue accent */
  --primary-blue-hover: #1d4ed8;
  --primary-blue-light: #eff6ff; /* For subtle highlights */
  --text-dark: #0f172a; /* Slate 900 for high readability */
  --text-muted: #475569; /* Slate 600 for descriptions */
  --border-color: #e2e8f0; /* Soft border */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  position: relative;
  overflow-x: hidden;
}

/* Subtle decorative light gradient spot in the background (prevents generic white feel) */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

/* Premium Card UI */
.card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.25rem;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 
              0 8px 16px -6px rgba(0, 0, 0, 0.03);
  transform: translateY(15px);
  opacity: 0;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: var(--transition-smooth);
}

.card-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -10px rgba(37, 99, 245, 0.08), 
              0 10px 20px -8px rgba(0, 0, 0, 0.04);
}

@keyframes slideUpFade {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Card Avatar Icon Area (Optional visual accent) */
.card-avatar-wrapper {
  width: 80px;
  height: 80px;
  background-color: var(--primary-blue-light);
  border-radius: 50%;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 2rem;
  font-weight: 700;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* Heading Design with Blue Accent Hint */
.card-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Description / Introduction Text */
.card-description {
  font-size: 1.025rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  font-weight: 400;
  word-break: keep-all;
}

/* Fully Rounded Action Button */
.action-button {
  display: inline-block;
  width: 100%;
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--primary-blue);
  border: none;
  border-radius: 9999px; /* Completely rounded pill shape */
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 245, 0.25);
  transition: var(--transition-smooth);
  outline: none;
}

.action-button:hover {
  background-color: var(--primary-blue-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 245, 0.4);
  transform: translateY(-2px);
}

.action-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(37, 99, 245, 0.2);
}

/* Interaction Feedback Log */
.interaction-log {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--primary-blue);
  font-weight: 500;
  padding: 0.75rem 1rem;
  background-color: var(--primary-blue-light);
  border-radius: 12px;
  display: none; /* Controlled dynamically by adding/removing 'visible' */
  opacity: 0;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.interaction-log.visible {
  display: block;
  opacity: 1;
  transform: scale(1);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive / Mobile Styling rules */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  
  .card-container {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
  
  .card-title {
    font-size: 1.85rem;
  }
  
  .card-description {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
  
  .action-button {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }
}
