/* =========================================================
   CYVORA STUDIO — INSIGHT ARTICLES STYLESHEET
   File: Style_sheets/articles.css
   Complementary stylesheet for Articles.html (Insights Page)
   Works in tandem with global styles.css
   ========================================================= */

/* ===== 1. Hero Enhancement ===== */
.articles-hero {
  position: relative;
  padding: 60px 0 40px;
  max-width: 900px;
}

.articles-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(20, 244, 244, 0.08);
  border: 1px solid rgba(20, 244, 244, 0.22);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary, #14f4f4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.articles-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #14f4f4);
  box-shadow: 0 0 10px var(--primary, #14f4f4);
}

.articles-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--foreground, #f4f7f5);
}

.articles-hero h1 span {
  color: var(--primary, #14f4f4);
  text-shadow: 0 0 30px rgba(20, 244, 244, 0.3);
}

.articles-hero-desc {
  font-size: 1.1rem;
  color: var(--muted-foreground, #8b9a94);
  max-width: 680px;
  line-height: 1.65;
  margin: 0;
}

/* ===== 2. Quick Hub Jumpers ===== */
.quick-hubs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.quick-hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(19, 26, 23, 0.7);
  border: 1px solid var(--border, #243029);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground, #f4f7f5);
  text-decoration: none;
  transition: all var(--transition-fast, 0.15s ease);
}

.quick-hub-chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #14f4f4);
  color: var(--primary, #14f4f4);
  box-shadow: 0 4px 16px rgba(20, 244, 244, 0.15);
}

.quick-hub-chip.chip-learn {
  border-color: rgba(217, 154, 37, 0.3);
  color: #f7b944;
  background: rgba(217, 154, 37, 0.08);
}
.quick-hub-chip.chip-learn:hover {
  border-color: #f7b944;
  box-shadow: 0 4px 16px rgba(217, 154, 37, 0.2);
}

.quick-hub-chip.chip-community {
  border-color: rgba(20, 244, 244, 0.3);
  color: #14f4f4;
  background: rgba(20, 244, 244, 0.08);
}

.quick-hub-chip.chip-roadmap {
  border-color: rgba(216, 95, 72, 0.3);
  color: #f17a66;
  background: rgba(216, 95, 72, 0.08);
}
.quick-hub-chip.chip-roadmap:hover {
  border-color: #f17a66;
  box-shadow: 0 4px 16px rgba(216, 95, 72, 0.2);
}

/* ===== 3. Filter Bar & Search ===== */
.articles-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border, #243029);
}

.articles-search-wrapper {
  position: relative;
  max-width: 520px;
  width: 100%;
}

.articles-search-input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  background: var(--card, #131a17);
  border: 1px solid var(--border, #243029);
  border-radius: 12px;
  color: var(--foreground, #f4f7f5);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-normal, 0.25s ease);
}

.articles-search-input:focus {
  border-color: var(--primary, #14f4f4);
  box-shadow: 0 0 0 3px rgba(20, 244, 244, 0.15);
}

.articles-search-input::placeholder {
  color: var(--muted-foreground, #8b9a94);
  opacity: 0.7;
}

.articles-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground, #8b9a94);
  pointer-events: none;
}

.articles-filter-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.articles-filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  white-space: nowrap;
  padding: 8px 18px;
  background: var(--card, #131a17);
  color: var(--muted-foreground, #8b9a94);
  border: 1px solid var(--border, #243029);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
  user-select: none;
}

.filter-btn:hover {
  color: var(--foreground, #f4f7f5);
  border-color: rgba(20, 244, 244, 0.4);
}

.filter-btn.active {
  background: var(--primary, #14f4f4);
  color: #041217;
  border-color: var(--primary, #14f4f4);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(20, 244, 244, 0.3);
}

.articles-count-info {
  font-size: 0.85rem;
  color: var(--muted-foreground, #8b9a94);
  margin-top: -8px;
}

/* ===== 4. Upgraded Blog Cards (New Bento Cyber Style) ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.insight-card {
  position: relative;
  background: linear-gradient(160deg, #101815 0%, #0c1311 100%);
  border: 1px solid var(--border, #243029);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.insight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 244, 244, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(20, 244, 244, 0.12);
}

/* Card Visual Header */
.insight-card-media {
  position: relative;
  height: 210px;
  width: 100%;
  overflow: hidden;
  background: #070e0c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.insight-card:hover .insight-card-media img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Fallback Graphics for text/calc articles */
.insight-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cover-bg-finance {
  background: radial-gradient(circle at center, rgba(217, 154, 37, 0.2) 0%, rgba(13, 22, 18, 0.95) 75%), linear-gradient(135deg, #131e17, #0a110e);
}
.cover-bg-tech {
  background: radial-gradient(circle at center, rgba(20, 244, 244, 0.2) 0%, rgba(13, 22, 18, 0.95) 75%), linear-gradient(135deg, #09171b, #050d11);
}
.cover-bg-tax {
  background: radial-gradient(circle at center, rgba(216, 95, 72, 0.22) 0%, rgba(18, 14, 13, 0.95) 75%), linear-gradient(135deg, #1e1412, #0d0a09);
}

.cover-symbol-wrapper {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.insight-card:hover .cover-symbol-wrapper {
  transform: scale(1.1) rotate(4deg);
}

/* Card Content Area */
.insight-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta Tags Row — Placed directly below the thumbnail */
.insight-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.insight-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(20, 244, 244, 0.08);
  border: 1px solid rgba(20, 244, 244, 0.25);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary, #14f4f4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insight-card-tag.tag-amber {
  background: rgba(217, 154, 37, 0.1);
  border-color: rgba(217, 154, 37, 0.3);
  color: #f7b944;
}

.insight-card-tag.tag-coral {
  background: rgba(216, 95, 72, 0.1);
  border-color: rgba(216, 95, 72, 0.3);
  color: #f17a66;
}

.media-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.insight-card-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-foreground, #8b9a94);
}

.insight-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--foreground, #f4f7f5);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  transition: color var(--transition-fast, 0.15s ease);
}

.insight-card:hover .insight-card-title {
  color: var(--primary, #14f4f4);
}

.insight-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted-foreground, #8b9a94);
  margin: 0 0 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer / Action Link */
.insight-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.insight-author-tag {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.insight-read-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary, #14f4f4);
  transition: gap 0.2s ease, color 0.2s ease;
}

.insight-card:hover .insight-read-action {
  gap: 10px;
  color: #38ffff;
}

/* Empty State */
.articles-empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: var(--card, #131a17);
  border: 1px dashed var(--border, #243029);
  border-radius: 16px;
  margin: 20px 0 60px;
}

.articles-empty-state.show {
  display: block;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--foreground, #f4f7f5);
}

.empty-state-desc {
  font-size: 0.95rem;
  color: var(--muted-foreground, #8b9a94);
  margin-bottom: 20px;
}

.btn-reset-filter {
  padding: 10px 22px;
  background: var(--primary, #14f4f4);
  color: #041217;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn-reset-filter:hover {
  opacity: 0.9;
}

/* ===== 5. Responsive Adjustments ===== */
@media (max-width: 768px) {
  .articles-hero {
    padding: 30px 0 20px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .insight-card-media {
    height: 190px;
  }
}
