/**
 * Contest Showcase Stylesheet — Ashish Dubey MP Portal
 * Comprehensive styling for /contest-showcase/, single contest entries, winner cards, essay downloads, and filter tabs
 */

:root {
  --cs-primary: #FF6600;
  --cs-primary-hover: #E05500;
  --cs-gold: #D4AF37;
  --cs-gold-light: #FFF8E7;
  --cs-gold-border: #E5C158;
  --cs-navy: #002060;
  --cs-text-dark: #1A1A2E;
  --cs-text-body: #334155;
  --cs-border: #E2E8F0;
  --cs-bg-light: #F8FAFC;
}

/* ==========================================================================
   CONTEST ARCHIVE HERO & CONTAINER
   ========================================================================== */
.cs-archive-header {
  background-image: linear-gradient(rgba(0, 20, 50, 0.65), rgba(0, 20, 50, 0.65)), url('/wp-content/uploads/2026/06/events2.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 0 0 24px 24px;
  padding: clamp(50px, 7vw, 85px) clamp(20px, 4vw, 40px);
  text-align: center;
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
  margin-bottom: 36px;
  color: #ffffff;
}

.cs-archive-header__title {
  font-family: var(--ktech-font-heading, 'Yatra One', serif);
  font-size: clamp(28px, 4vw, 42px);
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.25;
}

.cs-archive-header__title span {
  color: #FFCD57;
}

.cs-archive-header__sub {
  max-width: 800px;
  margin: 0 auto;
  color: #f1f5f9;
  font-size: 15.5px;
  line-height: 1.7;
  font-family: 'Hind', sans-serif;
}

.cs-section {
  padding: 0 clamp(16px, 4vw, 36px) 80px;
  background: #ffffff;
  font-family: 'Hind', sans-serif;
}

.cs-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   FILTER TABS & SORTING BAR
   ========================================================================== */
.cs-filters,
.cs-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1.5px solid var(--cs-border);
}

.cs-filters__label,
.cs-filter-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
}

.cs-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--cs-border);
  color: #475569;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-tab-btn:hover {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
}

.cs-tab-btn.active {
  background: var(--cs-primary);
  border-color: var(--cs-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
}

.cs-filters__select,
.cs-sort-select {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--cs-border);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
}

.cs-filters__btn-apply {
  padding: 8px 18px;
  font-size: 13px;
}

.cs-filters__reset {
  font-size: 13px;
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   CONTEST CARDS GRID
   ========================================================================== */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 580px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cs-card__body,
  .cs-card-body {
    padding: 12px 10px !important;
  }
  .cs-card__title,
  .cs-card-title {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
}

/* Card Component: 100% Clickable */
.cs-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--cs-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 102, 0, 0.4);
}

.cs-card__image,
.cs-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.cs-card__image img,
.cs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cs-card:hover .cs-card__image img,
.cs-card:hover .cs-card-media img {
  transform: scale(1.05);
}

.cs-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #002060, #FF6600);
}

.cs-badge {
  display: inline-block;
  background: rgba(0, 32, 96, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.cs-badge--winner {
  background: var(--cs-gold);
  color: #1A1A2E;
  font-weight: 700;
}

.cs-badge--essay {
  background: #003580;
  color: #ffffff;
}

.cs-badge--video {
  background: #c4302b;
  color: #ffffff;
}

.cs-badge--year {
  background: #475569;
  color: #ffffff;
}

.cs-card__body,
.cs-card-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cs-card__meta,
.cs-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cs-card__title,
.cs-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--cs-text-dark);
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.cs-card:hover .cs-card__title,
.cs-card:hover .cs-card-title {
  color: var(--cs-primary);
}

.cs-card__contest,
.cs-card__summary,
.cs-card-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 14px;
}

.cs-card__footer,
.cs-card-footer {
  margin-top: auto;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--cs-border, #e2e8f0);
}

.cs-card__link,
.cs-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cs-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

/* Buttons */
.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.cs-btn svg {
  width: 18px;
  height: 18px;
}

.cs-btn--primary {
  background: var(--cs-primary);
  color: #ffffff;
}

.cs-btn--primary:hover {
  background: var(--cs-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
}

.cs-btn--outline {
  background: transparent;
  color: var(--cs-primary);
  border: 1.5px solid var(--cs-primary);
}

.cs-btn--outline:hover {
  background: var(--cs-primary);
  color: #ffffff;
}

.cs-btn--dark {
  background: #1e293b;
  color: #ffffff;
}

.cs-btn--dark:hover {
  background: #0f172a;
  color: #ffffff;
}

/* ==========================================================================
   SINGLE CONTEST SHOWCASE ENTRY
   ========================================================================== */
.cs-single {
  font-family: 'Hind', sans-serif;
  color: var(--cs-text-body);
  padding-bottom: 80px;
}

.cs-single__hero {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #0f172a;
}

.cs-single__hero img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.cs-single__hero-placeholder {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #002060, #FF6600);
}

.cs-single__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 5vw, 60px) clamp(20px, 4vw, 40px);
}

.cs-single__hero-title {
  color: #ffffff;
  font-family: var(--ktech-font-heading, 'Yatra One', serif);
  font-size: clamp(24px, 4vw, 40px);
  margin: 0;
  line-height: 1.25;
}

.cs-single__content-wrap {
  max-width: 900px;
  margin: -40px auto 60px;
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  padding: clamp(24px, 5vw, 48px);
  z-index: 2;
  border: 1px solid var(--cs-border);
}

@media (max-width: 768px) {
  .cs-single__content-wrap {
    margin-top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* Badges Header */
.cs-single__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cs-single__badges .cs-badge {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
}

/* Winner Card Highlight Box */
.cs-winner-card {
  background: var(--cs-gold-light);
  border: 2px solid var(--cs-gold-border);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.18);
}

.cs-winner-card::before {
  content: '🏆';
  font-size: 38px;
  display: block;
  margin-bottom: 8px;
}

.cs-winner-card__label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B8860B;
  margin: 0 0 6px;
}

.cs-winner-card__name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  color: var(--cs-text-dark);
  margin: 0 0 10px;
}

.cs-winner-card__position {
  display: inline-block;
  background: var(--cs-gold);
  color: #1a1a2e;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 18px;
  border-radius: 20px;
  margin: 0 0 8px;
}

/* Info Details Card */
.cs-info-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--cs-border);
}

.cs-info-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.cs-info-card__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-info-card__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.cs-info-card__value {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

/* Download Row */
.cs-download-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 20px;
  background: #fff8f0;
  border: 1.5px dashed var(--cs-primary);
  border-radius: 10px;
  align-items: center;
}

/* Article / Essay Content */
.cs-single__content,
.cs-article-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: #334155;
}

.cs-single__content p,
.cs-article-body p {
  margin-bottom: 20px;
}
