/* ===== Home Page Styles ===== */
/* Modern, clean design matching the module pages aesthetic */

.home-container {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-in;
}

/* ===== Hero Section ===== */
.home-hero {
  text-align: center;
  margin-bottom: 4rem;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
}

/* Logo and Title Header */
.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.home-logo-compact {
  max-width: 120px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.hero-text {
  text-align: left;
}

.home-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8bc34a, #6a9e34);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.home-subtitle {
  font-size: 1.15rem;
  color: #4a4a4a;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

html.dark-mode .home-subtitle {
  color: #c0c0c0;
}

/* ===== Login Prompt Card ===== */
.login-prompt {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  animation: slideUp 0.6s ease-out;
}

.prompt-card {
  background: white;
  border: 2px solid rgba(139, 195, 74, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.prompt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8bc34a, #7ab82d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.prompt-card:hover::before {
  transform: scaleX(1);
}

.prompt-card:hover {
  border-color: rgba(139, 195, 74, 0.4);
  box-shadow: 0 20px 40px rgba(139, 195, 74, 0.15);
}

html.dark-mode .prompt-card {
  background: #2a2a2a;
  border-color: rgba(139, 195, 74, 0.3);
}

html.dark-mode .prompt-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(139, 195, 74, 0.5);
}

.prompt-icon-wrapper {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.1), rgba(94, 129, 34, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.prompt-card:hover .prompt-icon-wrapper {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
}

.prompt-icon {
  width: 36px;
  height: 36px;
  color: #8bc34a;
  transition: color 0.3s ease;
}

.prompt-card:hover .prompt-icon {
  color: white;
}

html.dark-mode .prompt-icon-wrapper {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.2), rgba(94, 129, 34, 0.15));
}

html.dark-mode .prompt-icon {
  color: #8ec134;
}

.prompt-card h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--header-color);
}

.prompt-card p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.6;
}

html.dark-mode .prompt-card p {
  color: #b8b8b8;
}

/* Button styles now use components/button.css */
/* Legacy support for primary-button - maps to action-btn primary-btn */
.primary-button {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Sora', system-ui, sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3);
}

.primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

.primary-button:active {
  transform: translateY(0);
}

.button-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.primary-button:hover .button-arrow {
  transform: translateX(4px);
}

/* ===== Welcome Message ===== */
.welcome-message {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  animation: slideUp 0.6s ease-out;
}

.welcome-card {
  background: white;
  border: 2px solid rgba(139, 195, 74, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8bc34a, #7ab82d);
}

html.dark-mode .welcome-card {
  background: #2a2a2a;
  border-color: rgba(139, 195, 74, 0.3);
}

.welcome-icon-wrapper {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.welcome-icon {
  width: 36px;
  height: 36px;
  color: white;
}

.welcome-card h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--header-color);
}

.welcome-card p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

html.dark-mode .welcome-card p {
  color: #b8b8b8;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.feature-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(139, 195, 74, 0.1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8bc34a, #7ab82d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 195, 74, 0.15);
  border-color: rgba(139, 195, 74, 0.3);
}

html.dark-mode .feature-card {
  background: #2a2a2a;
  border-color: rgba(139, 195, 74, 0.25);
}

html.dark-mode .feature-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(139, 195, 74, 0.45);
}

.card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.1), rgba(94, 129, 34, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #8bc34a;
  transition: all 0.3s ease;
}

.feature-card:hover .card-icon {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  transform: scale(1.05);
}

html.dark-mode .card-icon {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.2), rgba(94, 129, 34, 0.15));
  color: #8ec134;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--header-color);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.card-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

html.dark-mode .card-description {
  color: #b8b8b8;
}

.card-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: #8bc34a;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.feature-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

html.dark-mode .card-arrow {
  color: #8ec134;
}

/* Feature card disabled state (for users without permission) */
.feature-card[data-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
