/* Announcements Page - Forum Style */

.announcements-hero {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a2e 0%, #1a1a3e 50%, #0a0a2e 100%);
  padding-top: 80px;
  position: relative;
}

.announcements-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 46, 0.6);
  z-index: 1;
}

.announcements-hero-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.announcements-hero-content h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.announcements-hero-subtitle {
  font-size: 1.2rem;
  color: #cccccc;
  max-width: 600px;
  margin: 1.5rem auto 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Forum Section */
.forum-section {
  padding: 3rem 0 6rem;
  background: linear-gradient(180deg, #0a0a2e 0%, #0d0d24 100%);
  min-height: 70vh;
}

.forum-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid #dc2626;
  margin-bottom: 0;
}

.forum-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.forum-stats {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Forum Posts */
.forum-posts {
  display: flex;
  flex-direction: column;
}

.forum-post {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  transition: all 0.2s ease;
}

.forum-post:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Post Content */
.post-content {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post-title-section {
  flex: 1;
}

.post-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.post-badge.pinned {
  background: rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.post-badge.official {
  background: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.post-badge.new {
  background: rgba(74, 144, 226, 0.3);
  color: #93c5fd;
}

.post-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.post-timestamp {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  margin-left: 1rem;
  text-align: right;
}

.post-timestamp .date {
  display: block;
}

.post-timestamp .time {
  display: block;
  color: rgba(255, 255, 255, 0.4);
}

/* Post Body */
.post-body {
  flex: 1;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body a {
  color: #4a90e2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-body a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.post-body .vendor-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.post-body .vendor-item {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  text-align: center;
}

.post-body .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(74, 144, 226, 0.2);
  border: 1px solid #4a90e2;
  border-radius: 6px;
  color: #4a90e2;
  font-weight: 500;
  transition: all 0.2s ease;
}

.post-body .cta-link:hover {
  background: rgba(74, 144, 226, 0.3);
  text-decoration: none;
  transform: translateX(5px);
}

/* Post Footer */
.post-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-views {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .announcements-hero-content h1 {
    font-size: 2.5rem;
  }

  .post-content {
    padding: 1.5rem;
  }

  .post-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-timestamp {
    margin-left: 0;
    text-align: left;
  }

  .post-timestamp .date,
  .post-timestamp .time {
    display: inline;
  }

  .post-body .vendor-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .announcements-hero {
    min-height: 25vh;
  }

  .announcements-hero-content h1 {
    font-size: 2rem;
  }

  .forum-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .post-body .vendor-list {
    grid-template-columns: 1fr;
  }
}
