/* ===================================
   Attività / Discover Module Styles
   Premium Immersive Design v2.0
   =================================== */

/* ===== Section Container ===== */
#events-view {
  background-color: var(--bg-dark-primary);
  min-height: 100vh;
  padding: 0;
}

/* Module container (legacy) */
#module-attivita {
  min-height: calc(100vh - 120px);
  background-color: var(--bg-dark-primary);
  color: var(--text-dark-primary);
}

/* ===== Main Container ===== */
.attivita-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-4) calc(var(--space-12) * 2 + 110px);
}

/* ===== Hero Section ===== */
.attivita-hero {
  text-align: center;
  margin-bottom: var(--space-10);
}

.attivita-title {
  font-family: var(--font-ui);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: var(--weight-bold);
  color: var(--text-dark-primary);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
}

.attivita-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(0.9375rem, 3.5vw, 1.0625rem);
  font-weight: var(--weight-light);
  color: var(--text-dark-muted);
  line-height: var(--leading-relaxed);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Categories Grid ===== */
.attivita-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

/* ===== Category Card ===== */
.attivita-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark-subtle);
  border-radius: var(--radius-lg);
  min-height: 120px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-in-out);
}

.attivita-category:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-green);
  transform: translateY(-2px);
}

.attivita-category-icon {
  font-size: 48px;
  color: var(--brand-green);
}

.attivita-category-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-dark-primary);
  text-align: center;
}

/* ===== Description Section ===== */
.attivita-description {
  text-align: center;
  padding: var(--space-8) 0;
}

.attivita-description-text {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: var(--text-dark-muted);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-4);
}

.attivita-cta-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--brand-green);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-in-out);
}

.attivita-cta-link:hover {
  color: var(--brand-green-light);
}

/* ===== Discover Header ===== */
.discover-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-4) var(--space-3);
  background: var(--bg-glass-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.discover-header-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-dark-secondary);
}

.discover-header-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-dark-primary);
  letter-spacing: -0.015em;
}

.discover-header-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-dark-secondary);
  cursor: pointer;
}

/* ===== Content Section ===== */
.discover-main {
  flex: 1;
  padding-bottom: var(--space-6);
}

/* ===== Section Header ===== */
.discover-section {
  padding: var(--space-10) var(--space-5) var(--space-4);
}

.discover-section-title {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-dark-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Moments Grid ===== */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-8);
}

/* Single column layout */
.discover-grid--single {
  grid-template-columns: 1fr;
}

/* ===== Moment Card ===== */
.discover-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Card aspect ratios */
.discover-card--portrait {
  aspect-ratio: 3 / 4;
}

.discover-card--landscape {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.discover-card--tall {
  aspect-ratio: 4 / 5;
}

/* Card background image */
.discover-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--duration-slow) var(--ease-in-out);
}

.discover-card:hover .discover-card-bg {
  transform: scale(1.05);
}

/* Card gradient overlay */
.discover-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.10) 50%, transparent);
  pointer-events: none;
}

/* Stronger overlay for landscape cards */
.discover-card--landscape .discover-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.20) 50%, transparent);
}

/* ===== Card Action (Save/Add) ===== */
.discover-card-action {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark-secondary);
  font-size: 16px;
  text-shadow: 0 0 12px rgba(245, 245, 240, 0.2);
  z-index: 2;
}

/* ===== Card Title ===== */
.discover-card-title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: var(--weight-light);
  color: var(--text-dark-subtle);
  letter-spacing: 0.03em;
  line-height: 1.3;
  z-index: 2;
}

/* ===== Nested Grid ===== */
.discover-grid-nested {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

/* ===== Coming Soon State ===== */
.discover-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: var(--space-8);
  text-align: center;
}

.discover-coming-soon-icon {
  font-size: 64px;
  margin-bottom: var(--space-6);
  opacity: 0.6;
}

.discover-coming-soon-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  color: var(--text-dark-primary);
  margin-bottom: var(--space-2);
}

.discover-coming-soon-text {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: var(--text-dark-muted);
  max-width: 300px;
  line-height: var(--leading-relaxed);
}

.discover-coming-soon-eta {
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: rgba(17, 212, 115, 0.1);
  border: 1px solid rgba(17, 212, 115, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Spacer ===== */
.discover-spacer {
  height: calc(var(--space-6) + 80px);
}

/* ===== Button States ===== */
.discover-header-menu,
.discover-header-search {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-in-out);
}

.discover-header-menu:hover,
.discover-header-search:hover {
  opacity: 0.7;
}

/* ===== Focus States ===== */
.discover-card:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

/* ===== Active State ===== */
.discover-card:active {
  transform: scale(0.98);
}

.discover-card:active .discover-card-bg {
  transform: scale(1.02);
}

