/* DeathLAB Articles Hub - Cyan Rebrand */

/* ========== VARIABLES ========== */
:root {
  --death-black: #0B0B0B;
  --death-cyan: #6FE4FF;
  --death-cyan-hover: #BFEFFC;
  --death-cyan-dark: #0E2E36;
  --death-white: #FFFFFF;
  --death-gray-1: #1a1a1b;
  --death-gray-2: #2d2d2f;
  --death-gray-3: #3a3a3c;
  --death-gray-4: #B5C2CA;
}

/* ========== BASE STYLES ========== */
.articles-page {
  background: var(--death-black);
  color: var(--death-white);
  min-height: 100vh;
}

.articles-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.articles-cyan {
  color: var(--death-cyan) !important;
  -webkit-text-fill-color: var(--death-cyan) !important;
  text-shadow: 0 0 15px rgba(111, 228, 255, 0.3);
}

/* ========== HERO SECTION ========== */
.articles-hero {
  padding: 100px 0 60px;
  text-align: center;
  background: var(--death-black);
  border-bottom: 1px solid rgba(111,228,255,0.1);
}

.articles-badge {
  display: inline-block;
  background: var(--death-cyan);
  color: #001015;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.articles-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #E8E8E8 0%, #FFFFFF 30%, #B5C2CA 70%, #8FD4EA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.articles-subtitle {
  font-size: 1.25rem;
  color: var(--death-gray-4);
  margin: 0 auto 30px;
  max-width: 900px;
  font-weight: 300;
  line-height: 1.6;
}

/* ========== SEARCH BAR ========== */
.articles-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.articles-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--death-gray-2);
  border: 1px solid rgba(111,228,255,0.2);
  border-radius: 10px;
  color: var(--death-white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.articles-search input:focus {
  outline: none;
  border-color: var(--death-cyan);
  box-shadow: 0 0 0 4px rgba(111,228,255,0.15);
  background: var(--death-black);
}

.articles-search input::placeholder {
  color: var(--death-gray-4);
  opacity: 0.6;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--death-gray-4);
  pointer-events: none;
}

/* ========== FILTERS ========== */
.articles-filters-section {
  padding: 40px 0 20px;
  background: var(--death-black);
}

.articles-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.article-filter {
  padding: 10px 24px;
  background: var(--death-gray-2);
  color: var(--death-gray-4);
  border: 1px solid var(--death-gray-3);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-filter:hover {
  background: var(--death-gray-3);
  color: var(--death-white);
}

.article-filter.active {
  background: var(--death-cyan);
  color: #000000;
  border-color: var(--death-cyan);
}

/* ========== ARTICLES GRID ========== */
.articles-grid-section {
  padding: 60px 0 80px;
  background: var(--death-black);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--death-gray-2);
  border: 1px solid rgba(111,228,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--death-cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(111,228,255,0.2);
}

.article-card.hidden {
  display: none;
}

/* Article Image */
.article-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0) 40%, rgba(11, 11, 11, 0.85) 100%);
  pointer-events: none;
}

.article-image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Article Content */
.article-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-tag {
  color: var(--death-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.3;
  color: var(--death-white);
}

.article-title a {
  color: var(--death-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: var(--death-cyan);
}

.article-excerpt {
  color: var(--death-gray-4);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--death-gray-4);
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(111,228,255,0.1);
}

.article-date,
.article-reading-time {
  display: flex;
  align-items: center;
}

.article-reading-time::before {
  content: "•";
  margin-right: 0.5rem;
}

/* Article Button */
.article-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--death-cyan);
  color: #000000;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.article-btn:hover {
  background: var(--death-cyan-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(111,228,255,0.3);
  text-decoration: none;
  color: #000000;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--death-gray-4);
  font-size: 1.125rem;
}

/* ========== CTA SECTION ========== */
.articles-cta {
  padding: 80px 0;
  background: var(--death-gray-1);
  text-align: center;
  border-top: 1px solid rgba(111,228,255,0.1);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
}

.cta-text {
  font-size: 1.125rem;
  color: var(--death-gray-4);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.article-btn-large {
  display: inline-block;
  padding: 1.125rem 2.5rem;
  background: var(--death-cyan);
  color: #000000;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.article-btn-large:hover {
  background: var(--death-cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(111,228,255,0.4);
  text-decoration: none;
  color: #000000;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .articles-title {
    font-size: 2.5rem;
  }

  .articles-subtitle {
    font-size: 1.0625rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .articles-filters {
    flex-direction: column;
  }

  .article-filter {
    width: 100%;
    text-align: center;
  }

  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .articles-hero {
    padding: 60px 0 40px;
  }

  .articles-title {
    font-size: 2rem;
  }

  .article-content {
    padding: 1.5rem;
  }

  .articles-container {
    padding: 0 1.25rem;
  }
}
