/* ==========================================================================
   COMPUTECOST AI & GPU HUB - PORTAL COMPONENTS & LAYOUT
   ========================================================================== */

/* Top Navigation Bar */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-text span {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Control Pills (Currency & Language) */
.pill-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn.active {
  background: var(--cyan);
  color: #06090e;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

/* Hero Section */
.hero-section {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-pill {
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 28px;
}

/* Tab Navigation Buttons */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* Main Layout Grid */
.calculator-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
}

/* Controls Column */
.controls-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.controls-header h3 {
  font-size: 1.2rem;
}

/* Results & Visualization Column */
.results-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Highlight Stat Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stat-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cyan);
}

.stat-box.emerald::after {
  background: var(--emerald);
}

.stat-box.purple::after {
  background: var(--purple);
}

.stat-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-highlight);
  font-family: var(--font-mono);
}

.stat-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Comparative Table & Model Cards */
.model-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.model-row {
  display: grid;
  grid-template-columns: 240px 1fr 180px 140px;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  gap: 20px;
  transition: all var(--transition-fast);
}

.model-row:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--border-bright);
  transform: translateX(4px);
}

.model-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.model-provider {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.model-bar-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  height: 10px;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.model-bar {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff 0%, #10b981 100%);
  border-radius: var(--radius-pill);
  transition: width 0.5s ease-out;
}

.model-pricing-tag {
  text-align: right;
  font-family: var(--font-mono);
}

.model-cost-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.model-cost-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ROI Recommendation Card */
.roi-hero-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roi-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roi-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #e2e8f0;
}

/* Cumulative Chart Visualization */
.chart-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.cyan { background: var(--cyan); }
.legend-dot.purple { background: var(--purple); }

/* Timeline Bar Chart */
.timeline-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  height: 180px;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.month-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.bar-pair {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 100%;
  width: 100%;
}

.bar-slice {
  flex: 1;
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
  min-height: 4px;
}

.bar-slice.local { background: var(--cyan); }
.bar-slice.cloud { background: var(--purple); }

.month-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MONETIZATION & ADVERTISING SLOTS
   ========================================================================== */
.ad-slot {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 32px 0;
}

.ad-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.ad-slot-leaderboard {
  min-height: 100px;
  width: 100%;
}

.ad-placeholder-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Affiliate Callout Card */
.affiliate-card {
  background: linear-gradient(135deg, #131b2e 0%, #1e293b 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

.affiliate-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #fff;
}

.affiliate-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* FAQ & SEO Section */
.seo-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-item h4 {
  color: var(--cyan);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
  .model-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .model-pricing-tag {
    text-align: left;
  }
  .tab-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .affiliate-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(16, 185, 129, 0.95);
  color: #06090e;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.btn-share {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-bright);
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-share:hover {
  background: var(--cyan);
  color: #06090e;
  box-shadow: var(--shadow-glow-cyan);
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-section {
  padding: 64px 0 32px;
}

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

.blog-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  backdrop-filter: blur(12px);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.12);
}

.blog-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border-radius: 20px;
  padding: 4px 10px;
  width: fit-content;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}

.blog-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: gap var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.blog-read-btn:hover {
  gap: 10px;
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 64px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--cyan); }

.site-footer p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   AD SLOTS
   ========================================================================== */
.ad-slot {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.06);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot-leaderboard { max-width: 728px; min-height: 90px; margin: 0 auto; }
.ad-slot-rectangle { min-height: 250px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .tab-nav { flex-wrap: wrap; gap: 6px; }
  .tab-btn { font-size: 0.78rem; padding: 8px 12px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; align-items: center; gap: 10px; }
}


