/* ===== SPECIFIC GAME PAGE STYLES ===== */

/* Hero Header Section */
.specific-game-page-hero-header {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.specific-game-page-hero-header-tight {
  /* Modifier for tighter spacing */
  padding: 0;
}

.specific-game-page-hero-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.specific-game-page-hero-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.specific-game-page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--spacing-lg);
}

.specific-game-page-hero-content {
  text-align: center;
  width: 100%;
}

.specific-game-page-hero-title {
  font-size: var(--font-size-4xl);
  font-weight: bold;
  color: var(--primary-gold);
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
  font-variant: small-caps;
  letter-spacing: 2px;
}

/* Featured Section (Most Recent Article + Video 50/50) */
.specific-game-page-featured-section {
  padding: var(--spacing-xl) 0;
}

.specific-game-page-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: stretch;
}

.specific-game-page-featured-article {
  /* Left 50% - Most Recent Article */
}

.specific-game-page-featured-video {
  /* Right 50% - YouTube Video */
}

.specific-game-page-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.specific-game-page-youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.no-articles-message,
.no-video-message {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--card-background);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.no-articles-message h3,
.no-video-message h3 {
  color: var(--primary-gold);
  margin-bottom: var(--spacing-md);
}

/* Quick Guide Access Section */
.specific-game-page-guides-section {
  padding: var(--spacing-xl) 0;
}

.specific-game-page-guides-and-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: stretch;
}

.specific-game-page-guides-column {
  /* Left column for guides */
}

.specific-game-page-guides-card {
  /* Card styling for the guides container */
  height: 100%; /* Match height of article cards */
}

.specific-game-page-guides-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.specific-game-page-guide-category-header {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.specific-game-page-guide-category-header:first-child {
  margin-top: 0;
}

.specific-game-page-guide-btn {
  text-align: left;
  font-size: var(--font-size-sm);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  width: 100%;
  justify-content: flex-start;
  line-height: 1.4;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.specific-game-page-guide-btn:hover {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}

.specific-game-page-see-all-guides-btn {
  margin-top: var(--spacing-sm);
  background-color: var(--primary-gold) !important;
  border-color: var(--primary-gold) !important;
  color: var(--primary-black) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specific-game-page-see-all-guides-btn:hover {
  background-color: #b8860b !important;
  border-color: #b8860b !important;
  color: var(--primary-black) !important;
  transform: translateY(-2px);
}

/* Articles Grid Section */
.specific-game-page-articles-section {
  background: var(--secondary-black);
  border-top: 1px solid var(--dark-gray);
  padding: var(--spacing-xl) 0;
}

.specific-game-page-articles-section .container {
  width: 100%;
  max-width: 1200px;
}

/* Article Meta Preview Styling */
.article-meta-preview {
  font-size: var(--font-size-sm);
  color: var(--light-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs);
}

.article-meta-preview .article-author {
  font-weight: 500;
  color: var(--white);
}

.article-meta-preview .article-date {
  color: var(--light-gray);
}

.article-meta-preview .meta-separator {
  color: var(--light-gray);
  font-weight: 300;
}

.article-meta-preview .article-tag-preview {
  background-color: var(--primary-gold);
  color: var(--primary-black);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-left: var(--spacing-xs);
}

/* Article Actions Buttons */
.article-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: auto; /* Push to bottom in flex container */
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping */
  width: 100%; /* Ensure full width */
  overflow: hidden; /* Prevent overflow */
}

.article-actions .btn {
  margin: 0;
  flex-shrink: 1; /* Allow buttons to shrink if needed */
  position: relative;
  font-size: var(--font-size-sm); /* Make buttons slightly smaller */
  padding: 8px 12px; /* More compact padding */
  white-space: nowrap; /* Prevent text wrapping */
  min-width: 0; /* Allow buttons to shrink below content size */
  overflow: hidden; /* Prevent text overflow */
  text-overflow: ellipsis; /* Add ellipsis for long text */
}

/* Make ALL article cards consistent height with actions at bottom */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0; /* Allow cards to shrink if needed */
  overflow: hidden; /* Prevent any content from overflowing the card */
  position: relative; /* Establish containing block for absolute positioning */
}

/* Featured article card should NOT stretch to full height */
.article-card-featured {
  height: auto !important;
  max-height: none !important;
}

/* Exception: Don't apply flexbox to guides card (different structure) */
.specific-game-page-guides-card {
  display: block !important;
  height: auto !important;
}

.article-excerpt {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
}

.specific-game-page-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  align-items: stretch;
  width: 100%;
}

/* Ensure 3 equal columns on larger screens */
@media (min-width: 901px) {
  .specific-game-page-articles-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--spacing-xl);
    width: 100%;
  }
}

/* Navigation Section */
.specific-game-page-navigation-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  align-items: center;
  text-align: center;
}

.specific-game-page-other-games {
  width: 100%;
}

.specific-game-page-other-games h3 {
  color: var(--primary-gold);
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.specific-game-page-other-games-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.specific-game-page-other-game-btn {
  /* Individual other game button styling */
  white-space: nowrap;
}

/* Button Modifiers */
.specific-game-page-read-more-btn {
  /* Read button styling */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  font-size: var(--font-size-sm) !important;
  padding: 8px 12px !important;
  flex: 0 0 auto; /* Fixed width, don't grow or shrink */
  width: 90px; /* Fixed width for consistent sizing */
  text-align: center; /* Center the text */
}

.specific-game-page-watch-video-btn {
  /* Watch button styling - consistent with btn-youtube */
  background-color: #FF0000 !important; /* YouTube red background */
  border-color: #FF0000 !important;
  color: white !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0;
  position: relative;
  z-index: 1;
  font-size: var(--font-size-sm) !important;
  padding: 8px 12px !important;
  flex: 0 0 auto; /* Fixed width, don't grow or shrink */
  width: 90px; /* Fixed width for consistent sizing */
  text-align: center; /* Center the text */
}

.specific-game-page-watch-video-btn:hover {
  background-color: #cc0000 !important; /* Darker red on hover */
  border-color: #cc0000 !important;
  color: white !important;
  transform: translateY(-2px);
}

/* Responsive Design for Specific Game Page */

/* Large tablets and small desktops - maintain 3 columns */
@media (min-width: 901px) and (max-width: 1200px) {
  .specific-game-page-articles-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--spacing-lg);
  }
}

/* Medium screens - adjust button sizing */
@media (max-width: 1024px) {
  .specific-game-page-read-more-btn,
  .specific-game-page-watch-video-btn {
    font-size: var(--font-size-xs) !important;
    padding: 6px 8px !important;
    width: 80px !important; /* Fixed width for medium screens */
  }
}

/* Medium tablets - 2 columns */
@media (max-width: 900px) {
  /* Featured Section - Stack vertically on tablet */
  .specific-game-page-featured-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Guides and Articles Grid - Stack guides on top, articles below */
  .specific-game-page-guides-and-articles-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Articles Grid - 2 columns on tablet */
  .specific-game-page-articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--spacing-lg);
  }
  
  /* Stack buttons vertically on smaller tablets */
  .article-actions {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .specific-game-page-read-more-btn,
  .specific-game-page-watch-video-btn {
    max-width: 100% !important;
    width: 100%;
  }
  
  .specific-game-page-hero-image-container {
    height: 150px;
  }
  
  .specific-game-page-hero-title {
    font-size: var(--font-size-3xl);
  }
  

}

@media (max-width: 768px) {
  /* Guides and Articles Grid - Stack vertically on mobile */
  .specific-game-page-guides-and-articles-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Articles Grid - 1 column on mobile */
  .specific-game-page-articles-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .specific-game-page-hero-image-container {
    height: 125px;
  }
  
  .specific-game-page-hero-title {
    font-size: var(--font-size-2xl);
    padding: 0 var(--spacing-md);
  }
  

  
  .specific-game-page-video-wrapper {
    margin: 0 var(--spacing-sm);
  }
  
  .specific-game-page-other-games-list {
    flex-direction: column;
    align-items: center;
  }
  
  .specific-game-page-other-game-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .specific-game-page-navigation-section {
    gap: var(--spacing-lg);
  }
  
  /* Stack action buttons vertically on mobile */
  .article-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .specific-game-page-watch-video-btn {
    margin-left: 0 !important;
  }
  
  /* Responsive meta styling for mobile */
  .article-meta-preview {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }
  
  .article-meta-preview .meta-separator {
    display: none;
  }
  
  .article-meta-preview .article-tag-preview {
    margin-left: 0;
    margin-top: var(--spacing-xs);
  }
}

/* Featured Section Labels */
.featured-section-label {
  color: white;
  font-variant: small-caps;
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--spacing-lg) 0;
  letter-spacing: 1px;
  text-transform: lowercase; /* Works with small-caps to achieve the desired effect */
}

/* Article Headline Links */
.article-headline-link {
  color: #FFD700 !important;
  text-decoration: none !important;
}

.article-headline-link:link {
  color: #FFD700 !important;
  text-decoration: none !important;
}

.article-headline-link:visited {
  color: #FFD700 !important;
  text-decoration: none !important;
}

.article-headline-link:hover {
  color: #FFD700 !important;
  text-decoration: none !important;
}

.article-headline-link:active {
  color: #FFD700 !important;
  text-decoration: none !important;
}

@media (max-width: 480px) {
  .specific-game-page-hero-title {
    font-size: var(--font-size-xl);
  }
  
  .specific-game-page-older-articles-column {
    gap: var(--spacing-md);
  }
}