/* Unified Blog Filtering Component Styles - Using CSS Variables */

/* ==============================================
   BLOG FILTERING COMPONENT
   ============================================== */

.blog-filtering-component {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.6s ease;
  border: 2px solid var(--border-strong);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.6s ease;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  border: 2px solid var(--border-strong);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--hover-overlay);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.6;
  color: var(--text-secondary);
}

/* Tags Filter Section */
.tags-filter-section {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.6s ease;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
}

.filter-title {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tag-filter {
  background: var(--bg-primary);
  border: 2px solid var(--border-strong);
  padding: 0.5rem 1rem;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  color: var(--text-primary);
}

.tag-filter:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--border-strong);
}

.tag-filter.active {
  background: var(--accent-secondary);
  color: var(--bg-primary);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px var(--glow-color);
}

/* ==============================================
   FEATURED POST CARD
   ============================================== */

.featured-post-card {
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.6s ease;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.featured-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-strong);
}

.featured-post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.featured-badge {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: 2px solid var(--accent-secondary);
  text-transform: uppercase;
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
  border-radius: 8px;
  background: var(--accent-secondary);
  color: var(--bg-primary);
  box-shadow: 0 0 10px var(--glow-color);
}

.featured-date {
  font-size: 1rem;
  opacity: 0.8;
  font-family: 'VT323', monospace;
  color: var(--text-secondary);
}

.featured-tags {
  font-size: 1rem;
  font-family: 'VT323', monospace;
  color: var(--accent-primary);
  font-weight: 600;
}

.featured-tag {
  color: var(--accent-primary);
  opacity: 1;
  margin-right: 0.5rem;
}

.featured-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  letter-spacing: 1px;
  font-family: 'VT323', monospace;
  color: var(--text-primary);
}

.featured-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: var(--text-secondary);
}

.featured-read-more {
  padding: 1rem 2rem;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  background: transparent;
  color: var(--accent-primary);
}

.featured-read-more:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--border-strong);
}

/* ==============================================
   BLOG FILTER CONTAINER (Legacy Support)
   ============================================== */

.blog-filter-container {
  background: var(--bg-primary);
  border: 3px solid var(--border-strong);
  padding: 2rem;
  margin: 2rem 0;
  font-family: 'VT323', monospace;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.blog-filter-container .search-input {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.blog-filter-container .search-input::placeholder {
  color: var(--text-tertiary);
}

.blog-filter-container .search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--hover-overlay);
}

.blog-filter-container .tag-filter {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.blog-filter-container .tag-filter:hover,
.blog-filter-container .tag-filter.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* ==============================================
   THEME-SPECIFIC OVERRIDES
   For special effects that need exact values
   ============================================== */

/* Blueprint Mode - Special grid shadow effects */
body.blueprint-mode .blog-filtering-component,
body.blueprint-mode .search-section,
body.blueprint-mode .tags-filter-section {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

body.blueprint-mode .tag-filter {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

body.blueprint-mode .tag-filter:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

body.blueprint-mode .tag-filter.active {
  box-shadow: 0 0 20px rgba(147, 197, 253, 0.5);
}

/* Cyberpunk Mode - Special neon glow effects */
body.cyberpunk-mode .blog-filtering-component {
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

body.cyberpunk-mode .search-section,
body.cyberpunk-mode .tags-filter-section {
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.1);
}

body.cyberpunk-mode .featured-post-card {
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
}

body.cyberpunk-mode .featured-post-card:hover {
  box-shadow: 0 20px 40px rgba(255, 0, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.2);
}

body.cyberpunk-mode .featured-title {
  text-shadow: 0 0 10px var(--text-primary);
}

/* Night Mode - Specific shadow adjustments */
body.night-mode .featured-post-card {
  box-shadow: 0 10px 30px rgba(93, 173, 226, 0.2);
}

body.night-mode .featured-post-card:hover {
  box-shadow: 0 20px 40px rgba(93, 173, 226, 0.35);
}

/* Monochrome Mode - Maintain sepia aesthetic */
body.monochrome-mode .featured-post-card {
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
}

body.monochrome-mode .featured-post-card:hover {
  box-shadow: 0 20px 40px rgba(139, 69, 19, 0.35);
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
  .blog-filtering-component {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .filter-title {
    font-size: 1.3rem;
  }

  .tags-filter {
    gap: 0.5rem;
  }

  .tag-filter {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .featured-post-card {
    padding: 2rem;
  }

  .featured-title {
    font-size: 1.6rem;
  }

  .featured-post-meta {
    gap: 0.5rem;
  }
}

/* Theme-Specific Featured Badge Text Colors */
body.day-mode .featured-badge,
body:not(.night-mode):not(.cyberpunk-mode):not(.monochrome-mode):not(.blueprint-mode) .featured-badge {
  color: white !important;
}

body.monochrome-mode .featured-badge {
  color: #f5f5dc !important;
}
