/*
Theme Name: MCT Cyber Ocean v2.0
Description: North Shore Kauaʻi Computer Therapy - Winter 2025 Edition. Mobile-first, one-page design with aloha.
Author: My Computer Therapy
Author URI: https://mycomputertherapy.com
Template: generatepress
Version: 2.0.0
Text Domain: mct-cyber-ocean
*/

/* ============================= */
/* 🎨 CSS VARIABLES             */
/* ============================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
  /* Colors - Cyber Ocean Winter Palette */
  --background-dark: #0a0d13;
  --surface-dark: #12151a;
  --surface-light: #1a1f27;
  --text-light: #ecf0f3;
  --text-primary: #d0dbe3;
  --text-muted: #8a95a0;
  --accent-primary: #14d6f5;
  --accent-secondary: #00ffbb;
  --accent-tertiary: #aa8cff;
  --accent-coral: #ff6b6b;
  --accent-amber: #ffd93d;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-2xl: 80px;
  
  /* Effects */
  --border-radius: 14px;
  --border-radius-sm: 8px;
  --shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.6);
  --blur: 12px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* ============================= */
/* 🌐 GLOBAL RESET              */
/* ============================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background-dark);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove GeneratePress constraints */
#page.site,
.site-content,
.container {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* ============================= */
/* 📱 HEADER - STICKY NAV        */
/* ============================= */

.mct-header {
  background: rgba(10, 13, 19, 0.95);
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid rgba(20, 214, 245, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.mct-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

/* Logo */
.mct-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mct-logo__name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1;
}

.mct-logo__tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1;
}

/* Navigation */
.mct-nav {
  display: none; /* Hidden on mobile */
  gap: var(--spacing-sm);
}

.mct-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.mct-nav a:hover,
.mct-nav a:focus {
  background: var(--accent-secondary);
  color: var(--background-dark);
}

/* Contact Cluster */
.mct-contact-cluster {
  display: none; /* Hidden on mobile */
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}

.mct-phone,
.mct-email {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mct-phone:hover,
.mct-email:hover {
  color: var(--accent-primary);
}

/* Mobile Nav Toggle */
.mct-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mct-nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================= */
/* 🎯 BUTTONS & CTAs             */
/* ============================= */

.mct-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}

.mct-btn--primary {
  background: var(--accent-primary);
  color: var(--background-dark);
}

.mct-btn--primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 214, 245, 0.4);
}

.mct-btn--ghost {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.mct-btn--ghost:hover {
  background: var(--accent-primary);
  color: var(--background-dark);
}

.mct-btn--large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* ============================= */
/* 🌊 HERO SECTION               */
/* ============================= */

.mct-hero {
  padding: var(--spacing-2xl) var(--spacing-md);
  text-align: center;
  background: linear-gradient(135deg, var(--background-dark) 0%, #0d1117 100%);
  position: relative;
  overflow: hidden;
}

.mct-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 214, 245, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.mct-hero > * {
  position: relative;
  z-index: 1;
}

.mct-hero__badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(20, 214, 245, 0.1);
  border: 1px solid rgba(20, 214, 245, 0.3);
  border-radius: 50px;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.mct-hero__title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.2;
  margin: 0 0 var(--spacing-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mct-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0 0 var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.mct-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  align-items: center;
}

.mct-hero__trust {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================= */
/* 📦 SECTION CONTAINERS         */
/* ============================= */

.mct-section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
}

.mct-section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.mct-section-header h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-light);
  margin: 0 0 var(--spacing-sm);
}

.mct-section-subtitle {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
}

/* ============================= */
/* 🛠️ SERVICES GRID              */
/* ============================= */

.mct-services {
  background: var(--background-dark);
}

.mct-services__grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: 1fr;
}

.mct-service-card {
  background: var(--surface-dark);
  border: 1px solid rgba(20, 214, 245, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  transition: var(--transition);
}

.mct-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(20, 214, 245, 0.3);
}

.mct-service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 0 var(--spacing-sm);
}

.mct-service-card__description {
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md);
  line-height: 1.6;
}

.mct-service-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md);
}

.mct-service-card__features li {
  padding: var(--spacing-xs) 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-primary);
}

.mct-service-card__features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}

.mct-service-card__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* ============================= */
/* 📝 POST CARDS                 */
/* ============================= */

.mct-posts-section {
  background: var(--surface-dark);
}

.mct-posts-grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: 1fr;
}

.mct-post-card {
  background: var(--surface-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(20, 214, 245, 0.1);
}

.mct-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(20, 214, 245, 0.3);
}

.mct-post-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.mct-post-card__content {
  padding: var(--spacing-md);
}

.mct-post-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 var(--spacing-sm);
}

.mct-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.mct-post-card__title a:hover {
  color: var(--accent-primary);
}

.mct-post-card__excerpt {
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md);
  line-height: 1.6;
}

.mct-post-card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.mct-post-card__link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.mct-post-card__link:hover {
  color: var(--accent-secondary);
}

/* ============================= */
/* ❓ FAQ SECTION                */
/* ============================= */

.mct-faq {
  background: var(--background-dark);
}

.mct-faq__items {
  max-width: 800px;
  margin: 0 auto;
}

.mct-faq__item {
  background: var(--surface-dark);
  border: 1px solid rgba(20, 214, 245, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.mct-faq__item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 0 var(--spacing-sm);
}

.mct-faq__item p {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
}

/* ============================= */
/* 📻 RADIO SECTION              */
/* ============================= */

.mct-radio {
  background: var(--surface-dark);
  text-align: center;
}

.mct-radio iframe {
  width: 100%;
  max-width: 600px;
  height: 150px;
  border: none;
  border-radius: var(--border-radius);
  margin-top: var(--spacing-md);
}

/* ============================= */
/* 📞 FINAL CTA                  */
/* ============================= */

.mct-final-cta {
  background: linear-gradient(135deg, var(--background-dark) 0%, #0d1117 100%);
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
}

.mct-final-cta h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-light);
  margin: 0 0 var(--spacing-md);
}

.mct-final-cta__primary {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm);
}

.mct-final-cta__secondary {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 var(--spacing-lg);
}

.mct-final-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

/* ============================= */
/* 🦶 FOOTER                     */
/* ============================= */

.mct-footer {
  background: var(--surface-dark);
  border-top: 1px solid rgba(20, 214, 245, 0.1);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.mct-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: 1fr;
}

.mct-footer__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 0 var(--spacing-sm);
}

.mct-footer__description,
.mct-footer__location {
  color: var(--text-primary);
  margin: 0 0 var(--spacing-xs);
}

.mct-footer__contact a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mct-footer__contact a:hover {
  color: var(--accent-primary);
}

.mct-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mct-footer__list li {
  padding: var(--spacing-xs) 0;
  color: var(--text-primary);
}

.mct-footer__list a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mct-footer__list a:hover {
  color: var(--accent-primary);
}

.mct-footer__bottom {
  max-width: 1200px;
  margin: var(--spacing-lg) auto 0;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(20, 214, 245, 0.1);
  text-align: center;
}

.mct-footer__tagline {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-xs);
  font-weight: 600;
}

.mct-footer__copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================= */
/* 📱 TABLET BREAKPOINT (768px+) */
/* ============================= */

@media (min-width: 768px) {
  /* Header */
  .mct-nav {
    display: flex;
  }
  
  .mct-nav-toggle {
    display: none;
  }
  
  /* Hero */
  .mct-hero {
    padding: 120px var(--spacing-lg);
  }
  
  .mct-hero__title {
    font-size: 3rem;
  }
  
  .mct-hero__actions {
    flex-direction: row;
    justify-content: center;
  }
  
  /* Services Grid */
  .mct-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Posts Grid */
  .mct-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Footer */
  .mct-footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* CTA Buttons */
  .mct-final-cta__buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================= */
/* 💻 DESKTOP BREAKPOINT (1024px+) */
/* ============================= */

@media (min-width: 1024px) {
  /* Header */
  .mct-contact-cluster {
    display: flex;
  }
  
  /* Hero */
  .mct-hero__title {
    font-size: 3.5rem;
  }
  
  /* Services Grid */
  .mct-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Posts Grid */
  .mct-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Footer */
  .mct-footer__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================= */
/* ♿ ACCESSIBILITY              */
/* ============================= */

/* Focus states */
a:focus,
button:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: var(--background-dark);
  padding: var(--spacing-xs) var(--spacing-md);
  text-decoration: none;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================= */
/* 🧹 UTILITY CLASSES            */
/* ============================= */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mb-0 {
  margin-bottom: 0;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================== */
/* 📊 READING PROGRESS BAR */
/* ============================================== */

.mct-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(18, 21, 26, 0.5);
  z-index: 9999;
}

.mct-reading-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--accent-secondary);
  transition: width 0.1s ease, background 0.3s ease;
}

/* ============================================== */
/* 🗺️ BREADCRUMBS */
/* ============================================== */

.mct-breadcrumbs {
  padding: var(--spacing-md) 0;
  max-width: 1200px;
  margin: 0 auto;
}

.mct-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mct-breadcrumbs__item a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mct-breadcrumbs__item a:hover {
  color: var(--accent-secondary);
}

.mct-breadcrumbs__item--current {
  color: var(--text-primary);
}

.mct-breadcrumbs__separator {
  margin: 0 var(--spacing-xs);
  color: var(--text-muted);
}

/* ============================================== */
/* 📰 SINGLE POST TEMPLATE */
/* ============================================== */

.mct-post-single {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

/* Category Badge */
.mct-category-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(20, 214, 245, 0.1);
  border: 1px solid rgba(20, 214, 245, 0.3);
  border-radius: 20px;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-bottom: var(--spacing-md);
}

.mct-category-badge:hover {
  background: rgba(20, 214, 245, 0.2);
  transform: translateY(-2px);
}

.mct-category-badge--how-to {
  border-color: rgba(0, 255, 187, 0.3);
  color: var(--accent-secondary);
}

.mct-category-badge--tech {
  border-color: rgba(170, 140, 255, 0.3);
  color: var(--accent-tertiary);
}

.mct-category-badge--island-life {
  border-color: rgba(255, 215, 0, 0.3);
  color: #ffd700;
}

/* Post Header */
.mct-post-header {
  margin-bottom: var(--spacing-xl);
}

.mct-post-title {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin: var(--spacing-md) 0;
  font-weight: 900;
}

.mct-post-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mct-post-meta__separator {
  color: var(--text-muted);
}

.mct-reading-time {
  color: var(--accent-secondary);
}

/* Featured Image */
.mct-featured-image {
  margin: var(--spacing-xl) 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.mct-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================== */
/* 📚 TABLE OF CONTENTS */
/* ============================================== */

.mct-toc-container {
  margin: var(--spacing-xl) 0;
}

.mct-toc {
  background: var(--surface-dark);
  border: 1px solid rgba(20, 214, 245, 0.2);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  position: relative;
}

.mct-toc__title {
  font-size: 1.25rem;
  color: var(--accent-primary);
  margin: 0 0 var(--spacing-md) 0;
}

.mct-toc__toggle {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.mct-toc__toggle:hover {
  transform: scale(1.2);
}

.mct-toc__nav {
  max-height: 400px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.mct-toc__nav--collapsed {
  max-height: 0;
  overflow: hidden;
}

.mct-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mct-toc__item {
  margin: 0.5rem 0;
}

.mct-toc__item--sub {
  margin-left: var(--spacing-lg);
  font-size: 0.9rem;
}

.mct-toc__link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: block;
  padding: 0.25rem 0;
}

.mct-toc__link:hover {
  color: var(--accent-secondary);
  padding-left: 0.5rem;
}

.mct-toc__link.active {
  color: var(--accent-primary);
  font-weight: 600;
  border-left: 3px solid var(--accent-primary);
  padding-left: 0.5rem;
}

/* ============================================== */
/* �� POST CONTENT */
/* ============================================== */

.mct-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.mct-post-content h2,
.mct-post-content h3 {
  color: var(--text-primary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  scroll-margin-top: 100px;
}

.mct-post-content h2 {
  font-size: 1.75rem;
}

.mct-post-content h3 {
  font-size: 1.4rem;
}

.mct-post-content p {
  margin-bottom: var(--spacing-md);
}

.mct-post-content img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
}

.mct-post-content ul,
.mct-post-content ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
}

.mct-post-content li {
  margin: 0.5rem 0;
}

.mct-post-content strong {
  color: var(--accent-secondary);
  font-weight: 700;
}

.mct-post-content em {
  color: var(--accent-tertiary);
  font-style: italic;
}

.mct-post-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.mct-post-content a:hover {
  color: var(--accent-secondary);
}

/* ============================================== */
/* 💬 CODE BLOCKS WITH COPY BUTTON */
/* ============================================== */

.mct-code-wrapper {
  position: relative;
  margin: var(--spacing-lg) 0;
}

.mct-copy-code {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(20, 214, 245, 0.2);
  border: 1px solid var(--accent-primary);
  border-radius: 6px;
  color: var(--accent-primary);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.mct-copy-code:hover {
  background: var(--accent-primary);
  color: var(--background-dark);
  transform: translateY(-2px);
}

.mct-code-wrapper pre {
  background: rgba(18, 21, 26, 0.9);
  border: 1px solid rgba(20, 214, 245, 0.2);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  overflow-x: auto;
}

.mct-code-wrapper code {
  color: var(--accent-secondary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

/* ============================================== */
/* 📞 POST CTA SECTION */
/* ============================================== */

.mct-post-cta {
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-xl);
  background: var(--surface-dark);
  border: 2px solid rgba(20, 214, 245, 0.3);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.mct-post-cta__inner h3 {
  color: var(--accent-primary);
  margin: 0 0 var(--spacing-md) 0;
  font-size: 1.5rem;
}

.mct-post-cta__inner p {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.mct-post-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
}

.mct-post-cta__location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

/* ============================================== */
/* 😊 EMOJI REACTIONS */
/* ============================================== */

.mct-reactions {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background: var(--surface-dark);
  border-radius: var(--border-radius);
  text-align: center;
}

.mct-reactions__label {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.mct-reactions__buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.mct-reaction {
  background: rgba(20, 214, 245, 0.1);
  border: 2px solid rgba(20, 214, 245, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mct-reaction:hover {
  background: rgba(20, 214, 245, 0.2);
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent-primary);
}

.mct-reaction__emoji {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.mct-reaction__count {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  min-width: 20px;
}

/* ============================================== */
/* 🔗 RELATED POSTS */
/* ============================================== */

.mct-related-posts {
  margin: var(--spacing-2xl) 0;
}

.mct-related-posts__title {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.mct-related-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

/* ============================================== */
/* ⬅️➡️ POST NAVIGATION */
/* ============================================== */

.mct-post-navigation {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin: var(--spacing-2xl) 0;
}

.mct-post-nav-link {
  display: block;
  padding: var(--spacing-lg);
  background: var(--surface-dark);
  border: 1px solid rgba(20, 214, 245, 0.2);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mct-post-nav-link:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 214, 245, 0.2);
}

.mct-post-nav-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.mct-post-nav-title {
  display: block;
  color: var(--accent-primary);
  font-weight: 600;
}

/* ============================================== */
/* 📚 ARCHIVE / CATEGORY PAGES */
/* ============================================== */

.mct-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.mct-archive-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl) 0;
  border-bottom: 2px solid rgba(20, 214, 245, 0.2);
}

.mct-archive-title {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-md);
}

.mct-archive-description {
  font-size: 1.1rem;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
}

.mct-archive-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mct-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

/* ============================================== */
/* 🎴 POST CARDS */
/* ============================================== */

.mct-post-card {
  background: var(--surface-dark);
  border: 1px solid rgba(20, 214, 245, 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.mct-post-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(20, 214, 245, 0.3);
}

.mct-post-card__image-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.mct-post-card__image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.mct-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mct-post-card:hover .mct-post-card__image img {
  transform: scale(1.05);
}

.mct-post-card__image--placeholder {
  background: linear-gradient(135deg, rgba(20, 214, 245, 0.1), rgba(170, 140, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.mct-post-card__placeholder-icon {
  font-size: 4rem;
  opacity: 0.5;
}

.mct-post-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mct-post-card:hover .mct-post-card__overlay {
  opacity: 1;
}

.mct-post-card__read-btn {
  background: var(--accent-primary);
  color: var(--background-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.mct-post-card__content {
  padding: var(--spacing-lg);
}

.mct-post-card__category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(20, 214, 245, 0.1);
  border-radius: 6px;
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: var(--spacing-sm);
}

.mct-post-card__category--how-to {
  color: var(--accent-secondary);
}

.mct-post-card__category--tech {
  color: var(--accent-tertiary);
}

.mct-post-card__category--island-life {
  color: #ffd700;
}

.mct-post-card__title {
  font-size: 1.5rem;
  margin: var(--spacing-sm) 0;
}

.mct-post-card__title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mct-post-card__title a:hover {
  color: var(--accent-primary);
}

.mct-post-card__excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin: var(--spacing-md) 0;
}

.mct-post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: var(--spacing-md) 0;
}

.mct-post-card__separator {
  color: var(--text-muted);
}

.mct-post-card__link {
  display: inline-block;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mct-post-card__link:hover {
  color: var(--accent-secondary);
  transform: translateX(5px);
}

/* ============================================== */
/* 📄 PAGINATION */
/* ============================================== */

.mct-pagination {
  margin: var(--spacing-2xl) 0;
  text-align: center;
}

.mct-pagination ul {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.mct-pagination li a,
.mct-pagination li span {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--surface-dark);
  border: 1px solid rgba(20, 214, 245, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mct-pagination li a:hover {
  background: var(--accent-primary);
  color: var(--background-dark);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.mct-pagination li .current {
  background: var(--accent-primary);
  color: var(--background-dark);
  border-color: var(--accent-primary);
}

/* ============================================== */
/* ❌ NO POSTS FOUND */
/* ============================================== */

.mct-no-posts {
  text-align: center;
  padding: var(--spacing-2xl);
  max-width: 600px;
  margin: 0 auto;
}

.mct-no-posts__icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
}

.mct-no-posts__title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.mct-no-posts__text {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

/* ============================================== */
/* 📱 TABLET BREAKPOINT FOR POSTS (768px+) */
/* ============================================== */

@media (min-width: 768px) {
  .mct-post-single {
    padding: var(--spacing-xl);
  }
  
  .mct-post-title {
    font-size: 2.5rem;
  }
  
  .mct-post-cta__buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .mct-related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mct-post-navigation {
    grid-template-columns: 1fr 1fr;
  }
  
  .mct-post-nav-next {
    text-align: right;
  }
  
  .mct-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================== */
/* 💻 DESKTOP BREAKPOINT FOR POSTS (1024px+) */
/* ============================================== */

@media (min-width: 1024px) {
  .mct-post-title {
    font-size: 3rem;
  }
  
  .mct-related-posts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .mct-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================== */
/* ✓ CHECKLIST COMPONENT */
/* ============================================== */

.mct-section--dark {
  background: var(--background-dark);
}

.mct-checklist {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.mct-checklist__item {
  padding: var(--spacing-sm) 0;
  padding-left: 32px;
  position: relative;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.mct-checklist__check {
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}

/* ============================================== */
/* 📖 INTRO TEXT COMPONENT */
/* ============================================== */

.mct-intro-text {
  max-width: 800px;
  margin: 0 auto;
}

.mct-intro-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.mct-intro-text p:last-child {
  margin-bottom: 0;
}

/* ============================================== */
/* 🖥️ DESKTOP ENHANCEMENTS (1200px+) */
/* ============================================== */

@media (min-width: 1200px) {
  
  /* ==================== */
  /* TYPOGRAPHY */
  /* ==================== */
  
  body {
    font-size: 18px;
  }
  
  .mct-hero__title {
    font-size: 4rem;
    letter-spacing: -0.02em;
  }
  
  .mct-hero__subtitle {
    font-size: 1.5rem;
    max-width: 900px;
  }
  
  .mct-section-header h2 {
    font-size: 3rem;
  }
  
  .mct-section-subtitle {
    font-size: 1.25rem;
  }
  
  /* ==================== */
  /* LAYOUT & SPACING */
  /* ==================== */
  
  .mct-header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
  }
  
  .mct-section {
    padding: var(--spacing-2xl) var(--spacing-xl);
  }
  
  /* Hero spacing */
  .mct-hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
  }
  
  /* Constrain content width for readability */
  .mct-section-header {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* ==================== */
  /* GRIDS */
  /* ==================== */
  
  .mct-services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .mct-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }
  
  .mct-archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }
  
  .mct-related-posts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* ==================== */
  /* POST CARDS - ENHANCED */
  /* ==================== */
  
  .mct-post-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mct-post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(20, 214, 245, 0.4);
  }
  
  .mct-post-card__image {
    height: 300px;
  }
  
  /* ==================== */
  /* BUTTONS - ENHANCED */
  /* ==================== */
  
  .mct-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .mct-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .mct-btn:hover::before {
    width: 300px;
    height: 300px;
  }
  
  .mct-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(20, 214, 245, 0.4);
  }
  
  /* ==================== */
  /* NAVIGATION */
  /* ==================== */
  
  .mct-nav a {
    position: relative;
    padding: 0.75rem 1rem;
  }
  
  .mct-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
  }
  
  .mct-nav a:hover::after,
  .mct-nav a.active::after {
    width: 80%;
  }
  
  /* ==================== */
  /* FOOTER */
  /* ==================== */
  
  .mct-footer__container {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
    max-width: 1400px;
    margin: 0 auto;
  }
  
  /* ==================== */
  /* FAQ SECTION */
  /* ==================== */
  
  .mct-faq__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .mct-faq__item {
    padding: var(--spacing-lg);
  }
  
  /* ==================== */
  /* HOVER EFFECTS */
  /* ==================== */
  
  .mct-service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mct-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 214, 245, 0.3);
  }
  
  /* Add hover glow to links */
  a:not(.mct-btn):hover {
    text-shadow: 0 0 8px currentColor;
  }
  
  /* ==================== */
  /* PARALLAX SCROLL HINT */
  /* ==================== */
  
  .mct-hero::after {
    content: '↓';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--accent-primary);
    animation: bounce 2s infinite;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
  }
  
}

/* ============================================== */
/* 📏 SIDEBAR STYLES */
/* ============================================== */

.mct-sidebar {
  background: var(--surface-dark);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.mct-sidebar .widget {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(20, 214, 245, 0.1);
}

.mct-sidebar .widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.mct-sidebar .widget-title {
  color: var(--accent-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.mct-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mct-sidebar ul li {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
  position: relative;
}

.mct-sidebar ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

.mct-sidebar a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mct-sidebar a:hover {
  color: var(--accent-primary);
}

/* Widget-specific styles */
.widget_search input[type="search"] {
  width: 100%;
  padding: var(--spacing-sm);
  background: var(--background-dark);
  border: 1px solid rgba(20, 214, 245, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
}

.widget_search button {
  width: 100%;
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--accent-primary);
  color: var(--background-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.widget_search button:hover {
  background: var(--accent-secondary);
}

.widget_categories ul li,
.widget_archive ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget_categories ul li .count,
.widget_archive ul li .count {
  background: rgba(20, 214, 245, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--accent-primary);
}

/* ============================================== */
/* 🎨 ENHANCED GLASSMORPHISM FOR DESKTOP */
/* ============================================== */

@media (min-width: 1024px) {
  .mct-service-card,
  .mct-post-card,
  .mct-faq__item {
    backdrop-filter: blur(20px);
    background: rgba(18, 21, 26, 0.8);
    border: 1px solid rgba(20, 214, 245, 0.2);
  }
  
  .mct-service-card:hover,
  .mct-post-card:hover {
    backdrop-filter: blur(30px);
    background: rgba(18, 21, 26, 0.9);
    border-color: var(--accent-primary);
  }
}

/* ============================================== */
/* �� CURSOR ENHANCEMENTS FOR DESKTOP */
/* ============================================== */

@media (min-width: 1024px) {
  .mct-btn,
  .mct-post-card,
  .mct-service-card,
  button {
    cursor: pointer;
  }
  
  /* Smooth cursor transitions */
  * {
    cursor: inherit;
  }
  
  a {
    cursor: pointer;
  }
}

/* ============================================== */
/* 🖱️ SCROLL BEHAVIOR ENHANCEMENTS */
/* ============================================== */

@media (min-width: 1024px) {
  /* Smooth scrolling for desktop */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
  }
  
  /* Custom scrollbar for webkit browsers */
  ::-webkit-scrollbar {
    width: 12px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--background-dark);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 6px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
  }
}

/* ============================================== */
/* 📐 CONTAINER MAX-WIDTHS FOR DESKTOP */
/* ============================================== */

@media (min-width: 1400px) {
  .mct-section {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .mct-hero,
  .mct-final-cta {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================== */
/* 🎯 FOCUS STATES FOR ACCESSIBILITY */
/* ============================================== */

/* Enhanced focus states for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.mct-btn:focus-visible {
  outline-color: var(--accent-secondary);
  box-shadow: 0 0 0 4px rgba(20, 214, 245, 0.3);
}

/* ============================================== */
/* 🌟 PREMIUM DESKTOP FEATURES */
/* ============================================== */

@media (min-width: 1200px) {
  /* Subtle gradient overlays on hover */
  .mct-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 214, 245, 0.1), rgba(170, 140, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: var(--border-radius);
  }
  
  .mct-post-card:hover::before {
    opacity: 1;
  }
  
  /* Floating effect on service cards */
  .mct-service-card {
    animation: float 6s ease-in-out infinite;
  }
  
  .mct-service-card:nth-child(2) {
    animation-delay: 2s;
  }
  
  .mct-service-card:nth-child(3) {
    animation-delay: 4s;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  /* Disable float on hover so manual hover takes over */
  .mct-service-card:hover {
    animation: none;
  }
}
/* ============================================== */
/* 🖨️ PRINT STYLES */
/* ============================================== */

@media print {
  .mct-header,
  .mct-nav,
  .mct-nav-toggle,
  .mct-scroll-progress,
  .mct-scroll-to-top,
  .mct-reactions,
  .mct-post-cta,
  .mct-post-navigation,
  footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  .mct-post-content a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
  
  .mct-post-featured-image {
    max-height: 400px;
    page-break-inside: avoid;
  }
  
  h2, h3 {
    page-break-after: avoid;
  }
}

/* ============================================== */
/* ⏳ LOADING STATES */
/* ============================================== */

.mct-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.mct-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(20, 214, 245, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================== */
/* ⚠️ ERROR & SUCCESS MESSAGES */
/* ============================================== */

.mct-message {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mct-message--error {
  background: rgba(255, 77, 77, 0.1);
  border-left: 4px solid #ff4d4d;
  color: #ff6b6b;
}

.mct-message--success {
  background: rgba(0, 255, 187, 0.1);
  border-left: 4px solid var(--accent-secondary);
  color: var(--accent-secondary);
}

.mct-message--warning {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  color: #ffca28;
}

.mct-message--info {
  background: rgba(20, 214, 245, 0.1);
  border-left: 4px solid var(--accent-primary);
  color: var(--accent-primary);
}

/* ============================================== */
/* 📝 FORM VALIDATION */
/* ============================================== */

.mct-form-field {
  margin-bottom: 1.5rem;
}

.mct-form-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.mct-form-field input:invalid:not(:placeholder-shown),
.mct-form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #ff4d4d;
}

.mct-form-field input:valid:not(:placeholder-shown),
.mct-form-field textarea:valid:not(:placeholder-shown) {
  border-color: var(--accent-secondary);
}

.mct-form-error {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.mct-form-field input:invalid:not(:placeholder-shown) ~ .mct-form-error {
  display: block;
}

/* ============================================== */
/* ♿ ENHANCED ACCESSIBILITY */
/* ============================================== */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: var(--background-dark);
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Keyboard focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --accent-primary: #00ffff;
    --accent-secondary: #00ff00;
    --text-primary: #ffffff;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ============================================== */
/* 🔍 ENHANCED SEARCH PAGE */
/* ============================================== */

.mct-search-header {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(20, 214, 245, 0.05);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.mct-search-query {
  color: var(--accent-primary);
  font-weight: 700;
}

.mct-search-count {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.mct-search-results {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mct-search-result {
  padding: 1.5rem;
  background: var(--surface-dark);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mct-search-result:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(20, 214, 245, 0.2);
}

.mct-search-result h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.mct-search-result h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.mct-search-result mark {
  background: rgba(20, 214, 245, 0.3);
  color: var(--accent-primary);
  padding: 2px 4px;
  border-radius: 3px;
}

/* ============================================== */
/* 📄 ENHANCED 404 PAGE */
/* ============================================== */

.mct-404-container {
  text-align: center;
  padding: 4rem 1rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mct-404-emoji {
  font-size: 8rem;
  line-height: 1;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.mct-404-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mct-404-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ============================================== */
/* 📑 BETTER PAGINATION */
/* ============================================== */

.mct-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.mct-pagination a,
.mct-pagination span {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  background: var(--surface-dark);
  border: 1px solid rgba(20, 214, 245, 0.2);
  transition: all 0.2s ease;
  font-weight: 500;
}

.mct-pagination a:hover {
  background: var(--accent-primary);
  color: var(--background-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 214, 245, 0.3);
}

.mct-pagination .current {
  background: var(--accent-primary);
  color: var(--background-dark);
  border-color: var(--accent-primary);
}

.mct-pagination .dots {
  border: none;
  background: transparent;
}

/* ============================================== */
/* 🛠️ UTILITY CLASSES */
/* ============================================== */

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--accent-primary); }
.text-secondary { color: var(--accent-secondary); }

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Visibility utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
  .hide-desktop {
    display: none;
  }
}

/* ============================================== */
/* 🌙 DARK MODE ENHANCEMENTS (Future Ready) */
/* ============================================== */

@media (prefers-color-scheme: dark) {
  /* Already dark, but can add overrides here if needed */
  html {
    color-scheme: dark;
  }
}

/* ============================================== */
/* 🔄 RTL SUPPORT (Right-to-Left Languages) */
/* ============================================== */

[dir="rtl"] .mct-breadcrumbs__separator {
  transform: scaleX(-1);
}

[dir="rtl"] .mct-post-navigation {
  direction: rtl;
}

[dir="rtl"] .mct-header {
  direction: rtl;
}

/* ============================================== */
/* 🧩 BROWSER COMPATIBILITY FIXES */
/* ============================================== */

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
  .mct-btn {
    -webkit-appearance: none;
  }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
  .mct-scroll-progress {
    will-change: width;
  }
}

/* Edge legacy fixes */
@supports (-ms-ime-align: auto) {
  .mct-post-content img {
    max-width: 100%;
  }
}

/* ============================================== */
/* 📱 MOBILE MENU ANIMATIONS */
/* ============================================== */

.mct-nav.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

@media (max-width: 768px) {
  .mct-nav {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }
  
  .mct-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mct-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mct-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* ============================================== */
/* 🎯 FOCUS TRAP FOR MODALS */
/* ============================================== */

.mct-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 19, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mct-modal.active {
  opacity: 1;
  pointer-events: all;
}

.mct-modal__content {
  background: var(--surface-dark);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.mct-modal.active .mct-modal__content {
  transform: translateY(0);
}

.mct-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mct-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ============================================== */
/* END OF ADDITIONAL FEATURES */
/* ============================================== */
