/**
 * Topics/Cards Component
 * Topic cards grid and card styling
 */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.topic-card-link {
  display: block;
  height: 100%;
}

.topic-card-link:hover {
  text-decoration: none;
  opacity: 1;
}

.topic-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-left: 5px solid transparent;
  display: flex;
  flex-direction: column;
}

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

.topic-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.topic-date {
  color: #888;
  font-family: var(--font-base);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}

.tag.event {
  background-color: var(--secondary-color);
}

.tag.notice {
  background-color: var(--primary-color);
}

.tag.schedule {
  background-color: #4A90A4;
}

.tag.info {
  background-color: var(--primary-color);
}

.tag:not(.event):not(.notice):not(.schedule):not(.info) {
  background-color: #999;
}

.topic-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  color: var(--text-color);
  flex-grow: 1;
}

/* Schedule Section */
.schedule-section {
  margin-bottom: 50px;
}

.schedule-grid {
  margin-bottom: 0;
}

.no-topics {
  text-align: center;
  color: #888;
  grid-column: 1 / -1;
  padding: 40px;
}

/* Schedule Card Specific Styles */
.topic-card-schedule .topic-body {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-top: 10px;
  word-wrap: break-word;
}

.topic-card-link-schedule {
  height: auto;
}

.topic-card-schedule {
  padding: 20px 20px 30px;
  height: auto;
  min-height: 0;
}