/* Home Page Styles */

/* Navigation Cards Grid */
.home-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-normal);
  text-align: center;
}

.nav-card:hover {
  background-color: var(--color-bg-tertiary);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.nav-card-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.nav-card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.nav-card-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Home Sections */
.home-section {
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-lg);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
}

.section-header h2 {
  margin: 0;
  font-size: var(--font-size-xl);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.post-card {
  padding: var(--spacing-md);
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.post-card:hover {
  background-color: var(--color-bg-tertiary);
}

.post-card-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--color-accent);
}

.post-card-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.post-card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.event-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast);
}

.event-item:hover {
  background-color: var(--color-bg-tertiary);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: var(--spacing-sm);
  background-color: var(--color-accent);
  color: white;
  border-radius: var(--border-radius-sm);
  text-align: center;
}

.event-date-day {
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1;
}

.event-date-month {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
}

.event-details {
  flex: 1;
}

.event-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.event-title a {
  color: var(--color-text);
  text-decoration: none;
}

.event-title a:hover {
  color: var(--color-accent);
}

.event-info {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Places Summary */
.places-summary {
  text-align: center;
  padding: var(--spacing-lg);
}

.places-count {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.featured-places {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.place-card {
  padding: var(--spacing-md);
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  text-align: left;
}

.place-card-name {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.place-card-type {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Chat Rooms List */
.chat-rooms-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.chat-room-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.chat-room-card:hover {
  background-color: var(--color-bg-tertiary);
  text-decoration: none;
}

.chat-room-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: var(--font-size-lg);
}

.chat-room-info {
  flex: 1;
}

.chat-room-name {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.chat-room-members {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Empty States */
.empty-message {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--color-text-muted);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .home-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-card {
    padding: var(--spacing-md);
  }

  .nav-card-icon {
    font-size: 1.5rem;
  }

  .nav-card-title {
    font-size: var(--font-size-base);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .event-item {
    flex-direction: column;
  }

  .event-date {
    flex-direction: row;
    gap: var(--spacing-sm);
    min-width: auto;
    padding: var(--spacing-sm) var(--spacing-md);
  }
}
