/**
 * CodeConductor — Supplemental CSS
 * Covers: mobile menu, form messages, hamburger animation,
 * additional page-specific components.
 */

/* ============================================================
   MOBILE MENU
   ============================================================ */
.cc-mobile-menu {
  background: var(--cc-bg-card);
  border-top: 1px solid var(--cc-border);
  padding: 20px 0;
}

.cc-mobile-menu[hidden] { display: none; }

.cc-mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-mobile-menu nav a {
  padding: 12px 24px;
  font-size: 0.9rem;
  color: var(--cc-text-muted);
  border-radius: var(--cc-radius-sm);
  transition: background 0.15s, color 0.15s;
}

.cc-mobile-menu nav a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--cc-text);
}

/* Hamburger open state */
.cc-nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cc-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.cc-nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FORM MESSAGES
   ============================================================ */
.cc-form-msg {
  padding: 14px 18px;
  border-radius: var(--cc-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 8px;
}

.cc-form-msg--success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--cc-green);
}

.cc-form-msg--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--cc-red);
}

/* ============================================================
   WIDGET (blog sidebar etc)
   ============================================================ */
.cc-widget {
  background: var(--cc-bg-card);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.cc-widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-text-muted);
  margin-bottom: 16px;
}

/* ============================================================
   BLOG / ARCHIVE
   ============================================================ */
.cc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cc-post-card {
  background: var(--cc-bg-card);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.cc-post-card:hover {
  border-color: var(--cc-border-hover);
  transform: translateY(-2px);
}

.cc-post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cc-bg-card-2);
}

.cc-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cc-post-card:hover .cc-post-thumb img { transform: scale(1.04); }

.cc-post-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-post-meta {
  font-size: 0.75rem;
  color: var(--cc-text-subtle);
  margin-bottom: 10px;
}

.cc-post-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cc-text);
  line-height: 1.4;
  margin-bottom: 10px;
}

.cc-post-title a { color: inherit; transition: color 0.2s; }
.cc-post-title a:hover { color: var(--cc-accent); }

.cc-post-excerpt {
  font-size: 0.82rem;
  color: var(--cc-text-muted);
  line-height: 1.65;
  flex: 1;
}

.cc-post-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cc-accent);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.cc-post-read-more:hover { gap: 8px; }

@media (max-width: 900px) {
  .cc-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cc-blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.cc-article {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--cc-nav-h) + 64px) 24px 96px;
}

.cc-article-header {
  margin-bottom: 48px;
}

.cc-article-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cc-article-meta {
  font-size: 0.85rem;
  color: var(--cc-text-subtle);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cc-article-content {
  color: var(--cc-text-muted);
  line-height: 1.8;
}

.cc-article-content h2,
.cc-article-content h3 { color: var(--cc-text); margin: 40px 0 16px; }
.cc-article-content p { margin-bottom: 20px; }
.cc-article-content a { color: var(--cc-accent); text-decoration: underline; }
.cc-article-content ul, .cc-article-content ol { padding-left: 24px; margin-bottom: 20px; }
.cc-article-content li { margin-bottom: 8px; }
.cc-article-content pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--cc-font-mono);
  font-size: 0.8rem;
  color: #a5f3fc;
  margin-bottom: 24px;
}
.cc-article-content blockquote {
  border-left: 3px solid var(--cc-accent);
  padding-left: 20px;
  color: var(--cc-text-muted);
  font-style: italic;
  margin: 24px 0;
}

/* ============================================================
   SEARCH / 404
   ============================================================ */
.cc-not-found {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--cc-nav-h) 24px 0;
}

.cc-not-found h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  background: var(--cc-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

/* ============================================================
   PULSE DOT (green / yellow)
   ============================================================ */
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot.green {
  background: var(--cc-green);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.4);
  animation: pulse-ring 1.5s infinite;
}

.pulse-dot.yellow {
  background: var(--cc-yellow);
  box-shadow: 0 0 0 0 rgba(245,158,11,0.4);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ============================================================
   DEPLOYMENT PIPELINE VISUAL
   ============================================================ */
.cc-deploy-list { display: flex; flex-direction: column; gap: 8px; }

.cc-deploy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  font-size: 0.82rem;
}

.cc-deploy-env {
  font-weight: 600;
  color: var(--cc-text);
}

.cc-deploy-url {
  color: var(--cc-text-subtle);
  font-family: var(--cc-font-mono);
  font-size: 0.75rem;
}

.cc-deploy-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cc-green);
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.cc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cc-border), transparent);
  margin: 0;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.cc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--cc-text-subtle);
  margin-bottom: 20px;
}

.cc-breadcrumb a { color: var(--cc-text-subtle); transition: color 0.2s; }
.cc-breadcrumb a:hover { color: var(--cc-text-muted); }
.cc-breadcrumb span { color: var(--cc-text-muted); }
.cc-breadcrumb svg { width: 12px; height: 12px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.cc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.cc-pagination a,
.cc-pagination span {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cc-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--cc-border);
  color: var(--cc-text-muted);
  transition: all 0.2s;
}

.cc-pagination a:hover { background: rgba(255,255,255,0.05); color: var(--cc-text); }
.cc-pagination .current { background: var(--cc-accent); color: #fff; border-color: var(--cc-accent); }
