/*
Theme Name: Photo Manager
Theme URI: https://jeffchambliss.com
Author: Jeff Chambliss
Author URI: https://jeffchambliss.com
Description: Product showcase theme for Photo-Manager desktop application
Version: 1.0.0
License: Proprietary
Text Domain: photo-manager-theme
*/

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --color-bg: #09090b;
  --color-bg-elevated: #131316;
  --color-bg-card: #18181b;
  --color-bg-card-hover: #1e1e22;
  --color-border: #27272a;
  --color-border-light: #3f3f46;
  --color-text: #fafafa;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-glow: rgba(59, 130, 246, 0.15);
  --color-purple: #8b5cf6;
  --color-green: #22c55e;
  --color-amber: #f59e0b;
  --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1a0533 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-purple));
  --gradient-card: linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-elevated) 100%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
  --max-width: 1200px;
  --header-height: 72px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

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

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--color-accent-glow);
  color: var(--color-accent);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--color-accent-glow);
  color: white;
}

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

.btn-secondary:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-light);
  color: var(--color-text);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.site-logo:hover {
  color: var(--color-text);
}

.site-logo svg {
  width: 32px;
  height: 32px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 0 80px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.08), transparent);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero .subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.app-preview {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 4px;
  box-shadow:
    var(--shadow-lg),
    0 0 80px rgba(59, 130, 246, 0.08);
}

.app-preview-inner {
  background: var(--color-bg);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.app-mockup {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 48px 1fr;
  gap: 0;
}

.mockup-header {
  grid-column: 1 / -1;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-title {
  color: #888;
  font-size: 13px;
  font-weight: 500;
}

.mockup-sidebar {
  background: #111;
  border-right: 1px solid #2a2a2a;
  padding: 16px 12px;
}

.mockup-nav-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.mockup-nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-accent);
}

.mockup-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  align-content: start;
  overflow: hidden;
}

.mockup-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  animation: thumbShimmer 3s ease-in-out infinite;
}

@keyframes thumbShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ============================================
   Feature Cards Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--color-accent-glow);
  color: var(--color-accent);
}

.feature-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--color-purple);
}

.feature-icon.green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-green);
}

.feature-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   Alternating Feature Sections
   ============================================ */
.feature-showcase {
  padding: 80px 0;
}

.feature-showcase + .feature-showcase {
  border-top: 1px solid var(--color-border);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-text {
  max-width: 500px;
}

.showcase-text .badge {
  margin-bottom: 16px;
}

.showcase-text h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}

.showcase-text p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.showcase-list li svg {
  width: 18px;
  height: 18px;
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase-visual {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-visual-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

/* ============================================
   Tech Stack Section
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.tech-item:hover {
  border-color: var(--color-border-light);
}

.tech-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.tech-item p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(59, 130, 246, 0.08), transparent);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ============================================
   Page Hero (non-home pages)
   ============================================ */
.page-hero {
  padding: calc(var(--header-height) + 80px) 0 60px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59, 130, 246, 0.12), transparent);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Feature Detail Page
   ============================================ */
.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-detail-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.feature-detail-card:hover {
  border-color: var(--color-border-light);
}

.feature-detail-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-detail-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-detail-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-detail-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.feature-detail-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.feature-detail-card.full-width {
  grid-column: 1 / -1;
}

/* ============================================
   Download Page
   ============================================ */
.download-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.download-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.download-version {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.download-btn {
  width: 100%;
  justify-content: center;
  padding: 18px 32px;
  font-size: 17px;
  margin-bottom: 16px;
}

.download-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

.requirements {
  max-width: 600px;
  margin: 60px auto 0;
}

.requirements h3 {
  font-size: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.req-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.req-item h4 {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.req-item p {
  font-size: 15px;
  color: var(--color-text);
}

/* ============================================
   About Page
   ============================================ */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-block {
  margin-bottom: 60px;
}

.about-block h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.about-block p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.philosophy-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.philosophy-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.philosophy-card p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 0 40px;
  background: var(--color-bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.footer-links h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .showcase-row.reverse {
    direction: ltr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(20px);
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-detail-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .app-mockup {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    display: none;
  }
}

/* ============================================
   WordPress overrides
   ============================================ */
.wp-block-group,
.entry-content {
  color: var(--color-text);
}
