/* Custom Blue Theme Variables matching devclockify premium layout */
:root {
  --bg-dark: #0b0f19;
  --bg-card: #151d30;
  --bg-code: #070a12;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.15);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-accent: #3b82f6;
  --border: #24324f;
  --border-focus: #4b6cb7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav Styles */
.nav {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.8);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.logo span {
  color: var(--text-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-main);
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-secondary:hover {
  border-color: var(--border-focus);
}

/* Hero Elements */
.hero {
  padding: 6rem 0 4rem 0;
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--primary-glow);
  color: var(--text-accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--text-accent);
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* CDN and Code Blocks Layout */
.cdn-section {
  padding: 2rem 0 4rem 0;
}

.cdn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.cdn-header {
  background: rgba(7, 10, 18, 0.4);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}

.file-icon {
  background: #f7df1e;
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
}

.file-name {
  font-size: 0.9rem;
  font-family: monospace;
  color: var(--text-main);
}

.badge-tag {
  margin-left: auto;
  background: var(--primary);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.cdn-body {
  padding: 1.25rem;
  background: var(--bg-code);
}

.cdn-url-text {
  font-family: monospace;
  color: var(--text-accent);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

pre {
  margin: 0;
  overflow-x: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Stats Counter Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

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

.stat-box h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Global Section Headers */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
}

.section-tagline {
  color: var(--text-accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

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

/* Feature Playgrounds Grid */
.features-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Interactive Playground Blocks */
.live-demo {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.live-demo input {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  font-size: 0.9rem;
  flex-grow: 1;
  width: 100%;
  outline: none;
  transition: all 0.2s;
}

.live-demo input:focus {
  border-color: var(--border-focus);
}

.live-demo button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
}

.live-demo button:hover {
  background: var(--primary-hover);
}

.picker-demo {
  flex-direction: column;
}

/* Code tab wrapper code layouts */
.code-examples-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.code-box-wrapper {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.code-nav {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.code-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  border-right: 1px solid var(--border);
}

.code-tab.active {
  background: var(--bg-code);
  color: var(--text-main);
  border-bottom: 2px solid var(--text-accent);
}

.code-block {
  padding: 1.5rem;
  display: none;
}

.code-block.active {
  display: block;
}

/* Table Configurations */
.api-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: var(--bg-card);
}

.api-table th, .api-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.api-table th {
  background: rgba(7, 10, 18, 0.4);
  font-weight: 600;
  color: var(--text-main);
}

.api-table td code {
  background: var(--bg-code);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--text-accent);
}

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

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

.footer a:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
