/*
Theme Name: WearOS Dark Theme
Theme URI: https://example.com/wearos-dark
Author: WearOS Showcase
Author URI: https://example.com
Description: AMOLED Dark Mode theme for showcasing WearOS Watch Faces. Hi-Tech, luxurious, minimalist design with neon accents. Optimized for editorial/blog reading experience.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wearos-dark
Tags: dark, watch-face, wearos, showcase, affiliate, amoled, blog, editorial
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary:    #000000;
  --bg-secondary:  #0a0a0a;
  --bg-card:       #111111;
  --bg-card-hover: #1a1a1a;
  --text-primary:  #ffffff;
  --text-secondary:#b0b0b0;
  --text-muted:    #666666;
  --accent:        #00e5ff;
  --accent-glow:   rgba(0, 229, 255, 0.3);
  --accent-alt:    #7c4dff;
  --accent-alt-glow: rgba(124, 77, 255, 0.3);
  --border:        #1f1f1f;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-neon:   0 0 20px var(--accent-glow), 0 0 60px var(--accent-glow);
  --shadow-card:   0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
  --max-width:     1200px;
  --max-width-reading: 800px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo a {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Main Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle .hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.menu-toggle .hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION (Front Page)
   ============================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(124, 77, 255, 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroGlow {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, -3%) rotate(3deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  background: rgba(0, 229, 255, 0.05);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Hero Featured Watch Face */
.hero-watchface {
  position: relative;
  margin: 0 auto 40px;
  width: 260px;
  height: 260px;
}

.hero-watchface .watchface-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-alt), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ringRotate 4s linear infinite;
  opacity: 0.6;
}

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

.hero-watchface .watchface-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-neon);
}

.hero-watchface .best-seller-badge {
  position: absolute;
  bottom: 10px;
  right: -10px;
  background: linear-gradient(135deg, #ff6d00, #ff9100);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #000;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.05);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   WATCH FACE GRID (Front Page / Archive)
   ============================================ */
.watchface-grid-section {
  padding: 80px 0;
}

.watchface-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Watch Face Card (front page only) */
.watchface-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.watchface-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.watchface-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.watchface-thumb img {
  width: 75%;
  height: 75%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.watchface-card:hover .watchface-thumb img {
  transform: scale(1.1);
}

.watchface-thumb .card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.watchface-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.watchface-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.watchface-body h2 a {
  color: var(--text-primary);
  transition: color var(--transition);
}

.watchface-body h2 a:hover {
  color: var(--accent);
}

.watchface-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watchface-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.watchface-meta .read-more {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.watchface-meta .read-more::after {
  content: '\2192';
  transition: transform var(--transition);
}

.watchface-card:hover .watchface-meta .read-more::after {
  transform: translateX(4px);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  z-index: 1001;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================
   BLOG SECTION - INDEX / ARCHIVE (v2.0)
   ============================================ */
.blog-section {
  padding: 80px 0;
}

/* ── HERO CARD (First / Featured Post) ── */
.blog-hero-card {
  margin-bottom: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-hero-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.blog-hero-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-hero-card__link:hover {
  color: inherit;
}

.blog-hero-card__media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.blog-hero-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-hero-card:hover .blog-hero-card__img {
  transform: scale(1.04);
}

.blog-hero-card__fallback {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.blog-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.1) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.blog-hero-card__badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 2;
  flex-wrap: wrap;
}

.blog-hero-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-hero-card__title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 750px;
  transition: color var(--transition);
}

.blog-hero-card:hover .blog-hero-card__title {
  color: var(--accent);
}

.blog-hero-card__excerpt {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-width: 680px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-hero-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}

.blog-hero-card__meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.blog-hero-card__meta .blog-card__author {
  font-weight: 600;
  color: var(--accent);
}

/* ── BLOG 2-COLUMN GRID ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 16px;
}

/* ── BLOG CARD ── */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.12);
  color: inherit;
}

/* Card Thumbnail */
.blog-card__thumb-link {
  display: block;
  position: relative;
  text-decoration: none;
}

.blog-card__thumb {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--bg-secondary);
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card__img {
  transform: scale(1.06);
}

.blog-card__fallback {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Read overlay on hover */
.blog-card__read-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 229, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.blog-card:hover .blog-card__read-overlay {
  opacity: 1;
}

.blog-card__read-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__read-icon {
  transform: scale(1.08);
}

/* Category Badge */
.blog-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
}

/* Reading Time Badge */
.blog-card__reading-time {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  z-index: 3;
}

/* Card Body */
.blog-card__body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card__title {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card:hover .blog-card__title {
  color: var(--accent);
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.blog-card__meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.blog-card__meta .blog-card__author {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.blog-card:hover .blog-card__meta .blog-card__author {
  color: var(--accent);
}

.blog-card__meta .read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* No Results */
.blog-no-results {
  text-align: center;
  padding: 80px 24px;
}

.blog-no-results .no-results-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  opacity: 0.5;
}

.blog-no-results h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-no-results p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ============================================
   SINGLE POST - EDITORIAL READING (v2.0)
   ============================================ */
.single-post-wrapper {
  padding-bottom: 0;
}

/* ── DRAMATIC FULL-WIDTH HERO ── */
.single-hero {
  position: relative;
  padding: 64px 0 56px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 0%, rgba(124, 77, 255, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.single-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.single-hero__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.single-hero .post-category {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #000;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  margin-bottom: 28px;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.single-hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.single-hero__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* Author Info */
.single-hero__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.single-hero__author .author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.single-hero__author-text {
  text-align: left;
}

.single-hero__author-text .author-name {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-primary);
  display: block;
  line-height: 1.3;
}

.single-hero__author-text .author-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Meta: Date | Reading Time */
.single-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.84rem;
  flex-wrap: wrap;
}

.single-meta .meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.single-meta .reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── FEATURED IMAGE ── */
.single-featured {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  transform: translateY(-28px);
  position: relative;
  z-index: 2;
}

.single-featured .watchface-showcase {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 229, 255, 0.04),
    0 0 60px rgba(0, 229, 255, 0.06);
}

.single-featured .watchface-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── CONTENT WRAPPER ── */
.single-content-wrap {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── POST CONTENT - Typography Optimized ── */
.single-content {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  font-size: 1.08rem;
}

.single-content > *:first-child {
  margin-top: 0;
}

.single-content p {
  margin-bottom: 1.8em;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  letter-spacing: 0.005em;
}

.single-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2.8em;
  margin-bottom: 1em;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.single-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  color: var(--text-primary);
  line-height: 1.3;
}

.single-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.7em;
  color: var(--text-primary);
}

.single-content ul,
.single-content ol {
  margin-bottom: 1.8em;
  padding-left: 1.5em;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
}

.single-content li {
  margin-bottom: 0.6em;
  line-height: 1.8;
}

.single-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.single-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 229, 255, 0.4);
  transition: text-decoration-color var(--transition);
}

.single-content a:hover {
  text-decoration-color: var(--accent);
}

.single-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  margin: 2.2em 0;
  background: rgba(0, 229, 255, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.05rem;
}

/* Images in Content - Auto Rounded with Subtle Border */
.single-content img {
  border-radius: 12px;
  margin: 2.5em auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  height: auto;
}

.single-content .wp-caption {
  max-width: 100%;
  margin: 2.5em auto;
}

.single-content .wp-caption img {
  margin-bottom: 10px;
}

.single-content .wp-caption-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Code blocks */
.single-content code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--accent);
  border: 1px solid var(--border);
}

.single-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 2em 0;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}

.single-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
}

/* Table styles */
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}

.single-content th,
.single-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.single-content th {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
}

/* ============================================
   CALL TO ACTION BLOCK
   ============================================ */
.cta-block {
  margin: 64px 0;
  padding: 60px 40px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.cta-block .cta-icon {
  font-size: 3.2rem;
  margin-bottom: 16px;
  display: block;
}

.cta-block h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
}

.cta-block p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1rem;
  position: relative;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #000;
  background: linear-gradient(135deg, var(--accent), #00b8d4);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  box-shadow: 0 6px 0 #007c91,
              0 8px 25px var(--accent-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #007c91,
              0 12px 40px var(--accent-glow),
              0 0 60px var(--accent-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #007c91,
              0 3px 10px var(--accent-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Neon Pulse Animation */
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 6px 0 #007c91, 0 8px 25px var(--accent-glow), 0 0 30px var(--accent-glow); }
  50%      { box-shadow: 0 6px 0 #007c91, 0 8px 35px var(--accent-glow), 0 0 60px var(--accent-glow); }
}

.cta-button.pulse {
  animation: neonPulse 2s ease-in-out infinite;
}

/* ============================================
   FLOATING CTA (Sticky Download Button)
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.96);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-cta__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #000;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 8px 30px var(--accent-glow), 0 0 50px rgba(0, 229, 255, 0.15);
  animation: floatingCtaPulse 3s ease-in-out infinite;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}

.floating-cta__inner:hover {
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow), 0 0 80px rgba(0, 229, 255, 0.25);
}

.floating-cta__inner:active {
  transform: translateY(0);
}

.floating-cta__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.floating-cta__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  pointer-events: auto;
}

.floating-cta__close:hover {
  background: #ff4444;
  border-color: #ff4444;
  color: #fff;
}

@keyframes floatingCtaPulse {
  0%, 100% { box-shadow: 0 8px 30px var(--accent-glow), 0 0 30px rgba(0, 229, 255, 0.1); }
  50%      { box-shadow: 0 8px 40px var(--accent-glow), 0 0 60px rgba(0, 229, 255, 0.2); }
}

/* ============================================
   POST TAGS
   ============================================ */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.post-tags a {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}

.post-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 255, 0.05);
}

/* ============================================
   POST NAVIGATION (Prev / Next)
   ============================================ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.post-navigation__link {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  text-decoration: none;
  transition: all var(--transition);
}

.post-navigation__link:hover {
  border-color: rgba(0, 229, 255, 0.3);
  background: var(--bg-card-hover);
  color: inherit;
}

.post-navigation__link--next {
  text-align: right;
}

.post-navigation__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-navigation__link--next .post-navigation__label {
  justify-content: flex-end;
}

.post-navigation__title {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .site-logo {
  margin-bottom: 12px;
}

.footer-brand .site-logo a {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}

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

.footer-social .social-icons {
  display: flex;
  gap: 12px;
}

.footer-social .social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social .social-icons a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 255, 0.05);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #000;
  border-color: transparent;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.comments-area h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
}

.comment-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.comment-author .fn {
  font-weight: 700;
  color: var(--text-primary);
}

.comment-metadata {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.comment-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comment-respond {
  margin-top: 32px;
}

.comment-respond h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}

.comment-respond input:focus,
.comment-respond textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-respond .submit {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #000;
  padding: 12px 28px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.comment-respond .submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE - TABLET (992px)
   ============================================ */
@media (max-width: 992px) {
  .watchface-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-hero-card__body {
    padding: 36px;
  }

  .blog-hero-card__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  .blog-grid {
    gap: 24px;
  }

  .footer-content {
    gap: 30px;
  }

  .floating-cta {
    bottom: 24px;
    right: 24px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 14px 16px;
  }

  .hero-section {
    min-height: 70vh;
    padding: 60px 20px;
  }

  .hero-watchface {
    width: 200px;
    height: 200px;
  }

  .watchface-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Blog Section Mobile */
  .blog-section {
    padding: 48px 0;
  }

  .blog-hero-card {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
  }

  .blog-hero-card__media {
    aspect-ratio: 16 / 9;
  }

  .blog-hero-card__body {
    padding: 24px;
    gap: 10px;
  }

  .blog-hero-card__title {
    font-size: clamp(1.3rem, 4.5vw, 1.6rem);
  }

  .blog-hero-card__excerpt {
    display: none;
  }

  .blog-hero-card__badges {
    top: 14px;
    left: 14px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Single Post Mobile */
  .single-hero {
    padding: 40px 0 40px;
  }

  .single-hero__title {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
  }

  .single-hero__info {
    flex-direction: column;
    gap: 16px;
  }

  .single-featured {
    padding: 0 16px;
    transform: translateY(-20px);
  }

  .single-content-wrap {
    padding: 0 20px;
  }

  .single-content {
    font-size: 1rem;
  }

  .single-content p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  /* Floating CTA Mobile */
  .floating-cta {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .floating-cta__inner {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 0.95rem;
  }

  .cta-block {
    padding: 40px 24px;
    margin: 48px 0;
  }

  .cta-button {
    padding: 16px 36px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --max-width: 100%;
  }

  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .single-hero__title {
    font-size: 1.7rem;
  }

  .single-hero__container {
    padding: 0 16px;
  }

  .blog-card__body {
    padding: 18px;
  }

  .blog-card__excerpt {
    -webkit-line-clamp: 2;
  }

  .single-meta {
    flex-direction: column;
    gap: 8px;
  }

  .single-meta .meta-divider {
    display: none;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .blog-hero-card__body {
    padding: 20px;
  }

  .blog-hero-card__title {
    font-size: 1.2rem;
  }

  .blog-hero-card__excerpt {
    display: none;
  }
}
