/* 25cent.cloud - Main Stylesheet - Dark Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --secondary: #8b5cf6;
  --accent: #f472b6;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f1f5f9;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --gray: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
}

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1em 0 0.5em 0;
  font-weight: 600;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.25rem; line-height: 1.4; }
h5 { font-size: 1.1rem; line-height: 1.4; }
h6 { font-size: 1rem; line-height: 1.5; }

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

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

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

button, .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

button.secondary, .btn.secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

button.secondary:hover, .btn.secondary:hover {
  background-color: rgba(6, 182, 212, 0.1);
}

/* Header & Navigation */
header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Navigation Bar */
nav {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav > div {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

nav > div > div:first-child {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

nav > div > div:last-child {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
  background: transparent;
  padding: 0.5rem 0;
}

nav a:hover, nav a.active {
  color: var(--primary);
  background: transparent;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.logo a {
  color: var(--primary);
}

header nav {
  display: flex;
  gap: 1.5rem;
}

header nav a {
  color: var(--text-primary);
  padding: 0.5rem 0;
  transition: all 0.3s;
  font-weight: 500;
  background: transparent;
}

header nav a:hover, 
header nav a.active {
  color: var(--primary);
  background: transparent;
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Layout - Main content with sidebar */
.page-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  padding: 0 2rem;
}

.sidebar {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 0.5rem 0;
}

.sidebar a {
  display: block;
  padding: 0.5rem;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
}

.sidebar a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
}

.sidebar a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
}

.main-content {
  padding: 2rem;
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.1);
}

/* Docs: page headers and guide grids */
.page-header {
  padding: 2.5rem 0;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.docs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

.docs-content {
  background: rgba(30, 41, 59, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.1);
  padding: 2rem;
}

.breadcrumbs {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--primary);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.guide-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(6, 182, 212, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.guide-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.guide-card ul {
  list-style: none;
  padding-left: 0;
}

.guide-card li {
  margin: 0.5rem 0;
}

.guide-card a {
  color: var(--text-secondary);
}

.guide-card a:hover {
  color: var(--primary);
}

.guide-icon {
  font-size: 1.6rem;
}

.doc-help {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
}

/* Docs nav list styling for dropdown-style navs */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav li {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 10px;
  padding: 0.75rem;
  min-width: 220px;
  z-index: 120;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0.4rem 0;
}

.dropdown-menu a {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-secondary);
}

.dropdown-menu a:hover {
  color: var(--primary);
}

/* Callout Boxes */
.doc-tip, .doc-warning, .doc-steps {
  padding: 1rem;
  margin: 1.5rem 0;
  border-left: 4px solid;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.5);
}

.doc-tip {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.doc-tip strong {
  color: var(--success);
}

.doc-warning {
  border-left-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.doc-warning strong {
  color: var(--error);
}

.doc-steps {
  border-left-color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
}

.doc-steps ol {
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

/* Code Blocks */
code {
  background: rgba(30, 41, 59, 0.8);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: var(--primary);
}

pre {
  background: rgba(30, 41, 59, 0.8);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

table thead {
  background: rgba(30, 41, 59, 0.8);
}

table th, table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
  color: var(--text-secondary);
}

table th {
  font-weight: 600;
  color: var(--primary);
}

table tbody tr:hover {
  background: rgba(6, 182, 212, 0.05);
}

/* Lists */
ul, ol {
  margin: 1rem 0 1rem 2rem;
}

li {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

/* Cards & Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card, .plan-card {
  padding: 2rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(6, 182, 212, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2);
  border-color: var(--primary);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-secondary);
}

/* Pricing */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.plan-card {
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(6, 182, 212, 0.2);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.plan-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--primary);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.plan-price small {
  font-size: 1rem;
  color: var(--text-secondary);
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.plan-features li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
  margin-bottom: 2rem;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.hero .btn {
  margin: 0.5rem;
}

/* Sections */
section {
  padding: 3rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* Footer */
footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

footer .container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

footer > div:first-child {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

footer a {
  color: var(--text-secondary);
  display: block;
  margin: 0.75rem 0;
  transition: color 0.2s ease;
  background: transparent;
}

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

.footer-bottom {
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  footer > div:first-child,
  footer .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav > div > div:last-child {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

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

  .plan-card.featured {
    transform: scale(1);
  }

  footer > div:first-child,
  footer .container {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }
  
  /* Blog page grid mobile optimization */
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .page-header {
    padding: 2rem 1rem !important;
  }
  
  .page-header h1 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 480px) {
  nav > div {
    flex-direction: column;
    gap: 1rem;
  }

  nav > div > div:last-child {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }

  button, .btn {
    width: 100%;
  }
  
  /* Blog page mobile optimization */
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .page-header {
    padding: 1.5rem 0.75rem !important;
  }
  
  .page-header h1 {
    font-size: 1.3rem !important;
  }
  
  .page-header p {
    font-size: 0.9rem !important;
  }
}

