/*
Theme Name: ClosedTesting Obsidian
Theme URI: https://closedtesting.app
Author: closedtesting.app
Author URI: https://closedtesting.app
Description: Luxury high-tech theme for closedtesting.app with obsidian dark aesthetics, zero-suspicion onboarding, and autonomous AI indexing.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: closedtesting
*/

:root {
  --bg-deep: #090D16;
  --bg-surface: #0F172A;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #06B6D4;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent-cyan: #06B6D4;
  --accent-violet: #8B5CF6;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --glow-cyan: 0 0 24px rgba(6, 182, 212, 0.25);
  --glow-violet: 0 0 24px rgba(139, 92, 246, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
              var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Glassmorphic Container */
.ct-glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  padding: 40px;
}

.ct-glass:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Ambient Glow Orb */
.ct-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.ct-glow-cyan {
  width: 380px;
  height: 380px;
  background: rgba(6, 182, 212, 0.18);
}

.ct-glow-violet {
  width: 420px;
  height: 420px;
  background: rgba(139, 92, 246, 0.14);
}

/* Buttons & Touch Targets */
.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  outline: none;
  touch-action: manipulation;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.ct-btn:active {
  transform: scale(0.97);
}

.ct-btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0284C7);
  color: #030712;
  box-shadow: var(--glow-cyan);
}

.ct-btn-primary:hover {
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.45);
}

.ct-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.ct-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Responsive Button Groups */
.ct-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Badges */
.ct-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ct-badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.28);
}

.ct-badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.ct-badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.ct-badge-violet {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-violet);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

/* Layout Utilities */
.ct-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ct-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* Input Fields */
.ct-input {
  width: 100%;
  min-height: 48px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ct-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.ct-input::placeholder {
  color: var(--text-muted);
}

/* Header & Navigation Utilities */
.ct-nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.ct-nav-desktop a:hover {
  color: var(--text-primary);
}

.ct-nav-mobile-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.ct-mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(9, 13, 22, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.ct-mobile-drawer.is-open {
  display: flex;
}

.ct-mobile-drawer a {
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tabs Container */
.ct-tabs-nav {
  display: flex;
  gap: 8px;
  background: rgba(9, 13, 22, 0.8);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ct-tabs-nav::-webkit-scrollbar {
  display: none;
}

.ct-tab-item {
  flex: 1;
  min-width: 130px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.88rem;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.ct-tab-item.active {
  background: var(--bg-card-hover);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   MOBILE & RESPONSIVE MEDIA QUERIES (Google-Friendly Tested)
   ========================================================================== */

@media (max-width: 900px) {
  .ct-nav-desktop {
    display: none;
  }
  
  .ct-nav-mobile-btn {
    display: inline-flex;
  }

  .ct-header-hud .ct-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .ct-container {
    padding: 0 16px;
  }

  .ct-section {
    padding: 50px 0;
  }

  .ct-glass {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .ct-glow-orb {
    filter: blur(60px);
    opacity: 0.6;
  }

  .ct-glow-cyan {
    width: 240px;
    height: 240px;
  }

  .ct-glow-violet {
    width: 260px;
    height: 260px;
  }

  .ct-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .ct-btn-group .ct-btn {
    width: 100%;
  }

  .ct-tabs-nav {
    flex-direction: column;
    gap: 6px;
  }

  .ct-tab-item {
    width: 100%;
    min-width: unset;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ct-btn {
    font-size: 0.9rem;
    padding: 12px 18px;
  }

  .ct-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
}