/* CoolerMind Premium Article & Hub Design Stylesheet */
/* Colors: Sleek dark theme, cyan/purple gradients, and glassmorphic modules */

:root {
  --bg-color: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.7);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary-cyan: #22d3ee;
  --primary-purple: #c084fc;
  --border-glass: rgba(255, 255, 255, 0.08);
  --glow-shadow: 0 0 20px rgba(192, 132, 252, 0.15);
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Wavy Canvas background */
#wavy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

/* Header styling */
.cm-article-header {
  border-bottom: 1px solid var(--border-glass);
  background-color: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 20px;
}

.header-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.header-nav a:hover, .header-nav a.active-nav {
  color: var(--primary-cyan);
}

.nav-eval-btn {
  border: 1px solid var(--primary-purple);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--primary-purple) !important;
  background-color: rgba(192, 132, 252, 0.05);
  transition: all 0.2s !important;
}

.nav-eval-btn:hover {
  background-color: var(--primary-purple) !important;
  color: #0b0f19 !important;
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}

/* Post Container Layout */
.cm-article-main {
  max-width: 760px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

.cm-post-layout {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 40px 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Post Header Block */
.post-header-block {
  margin-bottom: 35px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 25px;
}

.post-meta-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.meta-dot {
  color: rgba(255,255,255,0.2);
}

.post-h1-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-topics-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-topic-badge {
  background-color: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--primary-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Article Body Content */
.post-body-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 35px 0 15px 0;
  color: var(--primary-cyan);
}

.post-body-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 25px 0 10px 0;
}

.post-body-content p {
  margin: 0 0 20px 0;
  color: #d1d5db;
  font-size: 1.05rem;
}

.post-body-content ul, .post-body-content ol {
  margin: 0 0 20px 0;
  padding-left: 25px;
}

.post-body-content li {
  margin-bottom: 8px;
  color: #d1d5db;
}

.post-body-content blockquote {
  border-left: 3px solid var(--primary-purple);
  margin: 25px 0;
  padding: 5px 0 5px 20px;
  font-style: italic;
  color: #e5e7eb;
}

/* PREMIUM SLOT WIDGET DESIGN */
.cm-widget {
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 24px;
  margin: 35px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-shadow);
}

.cm-widget-evaluator {
  background: radial-gradient(circle at top right, rgba(192, 132, 252, 0.08), rgba(255,255,255,0.01));
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.widget-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-purple);
  margin-bottom: 12px;
}

.cm-widget-evaluator .widget-badge {
  color: var(--primary-cyan);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px 0 !important;
}

.widget-desc {
  font-size: 0.95rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 20px !important;
}

/* Embed Video */
.flywheel-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.flywheel-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cm-widget-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid var(--border-glass);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.cm-widget-btn:hover {
  background-color: rgba(255,255,255,0.15);
}

.cm-widget-btn-primary {
  background-color: var(--primary-purple);
  color: #0b0f19;
  border: none;
}

.cm-widget-btn-primary:hover {
  background-color: #a78bfa;
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}

.affiliate-disclosure-box {
  margin-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Citations Section */
.post-citations-block {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 30px;
}

.citations-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 0;
}

.citations-intro {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

.citations-list {
  padding-left: 15px;
  font-size: 0.85rem;
}

.citation-item {
  color: var(--text-muted) !important;
  margin-bottom: 6px;
}

.citation-link {
  color: #f3f4f6;
  text-decoration: underline;
}

.citation-link:hover {
  color: var(--primary-cyan);
}

.editorial-disclaimer-box {
  margin-top: 35px;
  background-color: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.12);
  padding: 18px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Hub overview styles */
.hub-main-container {
  max-width: 960px;
  margin: 50px auto 100px auto;
  padding: 0 20px;
}

.hub-hero-section {
  text-align: center;
  margin-bottom: 60px;
}

.hub-breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.hub-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.hub-h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Clusters Selector widgets */
.hub-clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.hub-cluster-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s;
}

.hub-cluster-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary-purple);
  box-shadow: var(--glow-shadow);
}

.hub-cluster-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 8px 0;
  color: white;
}

.hub-cluster-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.explore-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Featured modules in hub */
.hub-featured-eval-block {
  border: 1px solid rgba(192, 132, 252, 0.2);
  background: radial-gradient(circle at top right, rgba(192, 132, 252, 0.1), transparent);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.hub-featured-eval-block h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 10px 0;
}

.hub-featured-eval-block p {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 25px;
}

.eval-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-cyan);
  letter-spacing: 0.05em;
}

/* Feed Grid */
.hub-feed-section {
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.hub-article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hub-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hub-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.hub-card-title a {
  color: white;
  text-decoration: none;
}

.hub-card-title a:hover {
  color: var(--primary-cyan);
}

.hub-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  line-height: 1.5;
  flex-grow: 1;
}

.hub-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hub-card-link:hover {
  text-decoration: underline;
}

/* Footer layout */
.cm-article-footer {
  border-top: 1px solid var(--border-glass);
  padding: 40px 20px;
  background-color: rgba(11,15,25,0.9);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav-links {
  display: flex;
  gap: 15px;
}

.footer-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .header-container, .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .cm-post-layout {
    padding: 25px 20px;
  }
}
