/* Area 51 Press Coverage Page Styles */

/* Page Title */
.area51-page-title {
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0 10px;
  color: #2A2E40;
}

.area51-page-description {
  font-size: 16px;
  color: #555;
  margin: 0 0 25px;
  line-height: 1.5;
}

/* Chart Section */
#area51-chart-section {
  margin: 30px 0 10px;
}

#area51-chart-container {
  position: relative;
  height: 350px;
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Section Headings */
.area51-section-heading {
  font-size: 22px;
  font-weight: 700;
  color: #2A2E40;
  border-bottom: 3px solid #F48C1E;
  padding-bottom: 10px;
  margin: 40px 0 20px;
}

/* Year Groups */
.area51-year-group {
  margin-bottom: 10px;
}

.area51-year-heading {
  background: #2A2E40;
  color: #fff;
  padding: 8px 16px;
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 15px;
  border-left: 4px solid #F48C1E;
  border-radius: 0 3px 3px 0;
}

.area51-year-group:first-child .area51-year-heading {
  margin-top: 0;
}

/* Article Cards */
.area51-article-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: #fafbfc;
  border: 1px solid #eee;
  border-radius: 3px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.area51-article-card:hover {
  border-color: #F48C1E;
  box-shadow: 0 1px 3px rgba(244, 140, 30, 0.15);
}

/* Meta row (date + details) */
.area51-article-meta {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* Date Column */
.area51-article-date {
  min-width: 160px;
  font-weight: 600;
  color: #3d4852;
  font-size: 0.92rem;
  padding-top: 1px;
}

/* Details Column */
.area51-article-details {
  flex: 1;
}

/* Article Thumbnail */
.area51-article-image {
  margin-top: 10px;
}

.area51-article-image img {
  max-height: 120px;
  width: auto;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.area51-article-image img:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.03);
}

.area51-article-image a {
  display: inline-block;
}

/* Lightbox */
#area51-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
}

#area51-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.area51-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.area51-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.area51-lightbox-content img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.area51-lightbox-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.area51-lightbox-close:hover {
  opacity: 1;
}

.area51-lightbox-caption {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
}

.area51-article-source {
  font-weight: 500;
  color: #555;
  font-size: 0.9rem;
}

.area51-article-page {
  color: #888;
  font-size: 0.85rem;
  margin-left: 12px;
}

/* Tags */
.area51-article-tags {
  margin-top: 6px;
}

.area51-tag {
  display: inline-block;
  background: #e8f4fc;
  color: #2980b9;
  padding: 2px 10px;
  border-radius: 15px;
  font-size: 0.78rem;
  margin: 2px 3px 2px 0;
  border: 1px solid #d0e8f5;
}

.area51-article-excerpt {
  font-size: 14px;
  color: #555;
  font-style: italic;
  margin: 10px 0 0;
  line-height: 1.5;
  border-left: 3px solid #ccc;
  padding-left: 12px;
}

.area51-article-excerpt::before {
  content: "\201C";
}

.area51-article-excerpt::after {
  content: "\201D";
}

/* Article Count Badge */
.area51-year-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .area51-article-meta {
    flex-direction: column;
  }

  .area51-article-date {
    min-width: auto;
    margin-bottom: 6px;
  }

  #area51-chart-container {
    height: 250px;
    padding: 12px;
  }

  .area51-section-heading {
    font-size: 19px;
  }

  .area51-year-heading {
    font-size: 16px;
  }
}
