@import "./page.css";

/* -------------------------------------------------------------
   Universal Showcase Summary & Newspaper Gazette Layout System
   File: css/page-sum.css
   ------------------------------------------------------------- */

/* Page Layout */
.featured-page {
  position: relative;
  flex: 1 0 auto;
  order: 2;
  width: 100%;
  min-height: calc(100vh - 80px);
  background: #0f1011; /* Blog standard --bg-primary */
  color: #f3f4f6;
  overflow: hidden;
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Authentic Full-Length Newspaper Print Background Texture / Watermark */
.newspaper-bg-watermark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 40px 40px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  opacity: 0.035;
  color: #ffffff;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: justify;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 0;
}

.newspaper-bg-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.newspaper-bg-column p {
  margin-bottom: 20px;
}

.newspaper-bg-title {
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.88rem;
  margin-top: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
}

/* Main Container (User Specs: desktop 30px, mobile 20px padding-top, Fixed max-width 1160px) */
.featured-main {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  width: 92%;
  margin: 0 auto;
  padding: 30px 0 80px;
}

/* Newspaper Gazette Header (.page-title-container) */
.page-title-container {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}

.editorial-top-meta {
  font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.editorial-divider {
  opacity: 0.4;
}

.editorial-rule-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 12px 0;
}

.editorial-rule-line--bottom {
  height: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  margin-bottom: 18px;
}

.page-title {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 4px;
  color: #f3f4f6;
  text-transform: uppercase;
  margin-top: 6px;
  margin-bottom: 6px;
}

.page-description {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 0.06em;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* Bento Box Grid (12 Columns Newspaper Grid) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Bento Card / Gazette Box Style (0 Border-Radius, Crisp Static Column Lines) */
.bento-card {
  position: relative;
  background: #18191c;
  border: 1px solid #2e3035;
  border-radius: 0 !important; /* 0 Border-Radius Hard Edges */
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.bento-card:hover {
  transform: none;
  border-color: #2e3035;
  box-shadow: none;
}

/* Standard Size System Helper Classes (大 7, 中 5, 小 3) */
.bento-card--large {
  grid-column: span 7;
}

.bento-card--medium {
  grid-column: span 5;
}

.bento-card--small {
  grid-column: span 3;
}

/* -------------------------------------------------------------
   Newspaper Edge-to-Edge Facade Video Box (No Inset Inner Border)
   ------------------------------------------------------------- */
.bento-video-container {
  position: relative;
  width: calc(100% + 40px); /* Extend to card edges */
  margin-left: -20px;
  margin-top: -20px;
  padding-bottom: 56.25%;
  border-radius: 0 !important; /* 0 Border Radius */
  overflow: hidden;
  background: #000;
  margin-bottom: 18px;
  border-bottom: 1px solid #2e3035;
}

.bento-facade {
  cursor: pointer;
  background: #121316;
}

.facade-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.facade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
  transition: background 0.3s ease;
}

.bento-facade:hover .facade-cover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.bento-facade:hover .facade-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
}

/* Custom Play Button (0 Border-Radius / Crisp Circle) */
.facade-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(24, 25, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.facade-play-btn svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  margin-left: 2px;
  transition: transform 0.25s ease;
}

.bento-facade:hover .facade-play-btn {
  background: #6366f1;
  border-color: #818cf8;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.bento-facade:hover .facade-play-btn svg {
  transform: scale(1.1);
}

/* Actual iFrame inside Container once activated */
.bento-video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Title */
.bento-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: #f3f4f6;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.bento-card--large .bento-card-title {
  font-size: 1.18rem;
}

/* Card Footer Row (Left: Primary CTA, Right: Date Badge) */
.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  gap: 12px;
  width: 100%;
}

.bento-card-footer--right-only {
  justify-content: flex-end;
}

/* Responsive Grid & Mobile Specs (desktop 30px, mobile 20px padding-top) */
@media screen and (max-width: 992px) {
  .bento-card--large,
  .bento-card--medium,
  .bento-card--small {
    grid-column: span 12;
  }
}

@media screen and (max-width: 680px) {
  .featured-main {
    padding: 20px 0 50px;
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .bento-card--large,
  .bento-card--medium,
  .bento-card--small {
    grid-column: span 12;
  }

  .bento-card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .newspaper-bg-watermark {
    grid-template-columns: 1fr;
    opacity: 0.025;
  }
}
