/* Social Toolkit - Multi-Page SEO Architecture */
/* Base Variables & Reset */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
  --transition: all 0.2s ease;
}

/* Platform-specific accent colors */
[data-platform="twitter"] {
  --accent: #1d9bf0;
  --accent-dark: #1a8cd8;
  --accent-glow: rgba(29, 155, 240, 0.3);
}

[data-platform="linkedin"] {
  --accent: #0a66c2;
  --accent-dark: #004182;
  --accent-glow: rgba(10, 102, 194, 0.3);
}

[data-platform="instagram"] {
  --accent: #e1306c;
  --accent-dark: #c13584;
  --accent-glow: rgba(225, 48, 108, 0.3);
  --gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

[data-platform="youtube"] {
  --accent: #ff0000;
  --accent-dark: #cc0000;
  --accent-glow: rgba(255, 0, 0, 0.3);
}

[data-platform="tiktok"] {
  --accent: #00f2ea;
  --accent-secondary: #ff0050;
  --accent-dark: #00d4cf;
  --accent-glow: rgba(0, 242, 234, 0.3);
}

[data-platform="general"] {
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-lg {
  max-width: 1400px;
}

/* Header / Navigation */
.header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient, var(--accent, var(--primary)));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-links a.active {
  color: var(--accent, var(--primary));
}

/* Platform Tabs */
.platform-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-tabs::-webkit-scrollbar {
  display: none;
}

.platform-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.platform-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.platform-tab.active,
.platform-tab[data-active="true"] {
  background: var(--accent, var(--primary));
  border-color: var(--accent, var(--primary));
  color: white;
}

.platform-tab svg,
.platform-tab .icon {
  width: 18px;
  height: 18px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--accent, var(--primary));
  box-shadow: 0 0 20px var(--accent-glow, rgba(99, 102, 241, 0.2));
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow, rgba(99, 102, 241, 0.2));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent, var(--primary));
  box-shadow: var(--shadow-lg);
}

.tool-card .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow, rgba(99, 102, 241, 0.2));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tool-card h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  flex: 1;
}

.tool-card .badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent, var(--primary));
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

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

.hero h1 {
  margin-bottom: 1rem;
}

.hero h1 .accent {
  color: var(--accent, var(--primary));
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

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

.hero-stat .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent, var(--primary));
}

.hero-stat .label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Tool Page Layout */
.tool-page {
  padding: 2rem 0 4rem;
}

.tool-header {
  margin-bottom: 2rem;
}

.tool-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tool-header .breadcrumb a {
  color: var(--text-secondary);
}

.tool-header .breadcrumb a:hover {
  color: var(--accent, var(--primary));
}

.tool-header h1 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.tool-header h1 .icon {
  font-size: 2.5rem;
}

.tool-header .description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 700px;
}

/* Tool Content Area */
.tool-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .tool-content {
    grid-template-columns: 1fr;
  }
}

.tool-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent, var(--primary));
  box-shadow: 0 0 0 3px var(--accent-glow, rgba(99, 102, 241, 0.2));
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent, var(--primary));
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark, var(--primary-dark));
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent, var(--primary));
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Character Counter */
.char-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.char-counter .count {
  font-weight: 600;
}

.char-counter .count.warning {
  color: var(--warning);
}

.char-counter .count.error {
  color: var(--error);
}

/* Preview Panels */
.preview-panel {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.preview-header h4 {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-content {
  padding: 1rem;
}

/* Twitter Preview */
.twitter-preview {
  background: #15202b;
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.twitter-preview .tweet {
  display: flex;
  gap: 0.75rem;
}

.twitter-preview .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
}

.twitter-preview .tweet-content {
  flex: 1;
}

.twitter-preview .tweet-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.twitter-preview .name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.twitter-preview .handle {
  color: #8899a6;
  font-size: 0.9375rem;
}

.twitter-preview .tweet-text {
  font-size: 0.9375rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.twitter-preview .tweet-actions {
  display: flex;
  gap: 3rem;
  margin-top: 0.75rem;
  color: #8899a6;
  font-size: 0.8125rem;
}

/* LinkedIn Preview */
.linkedin-preview {
  background: #1b1f23;
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.linkedin-preview .post-header {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.linkedin-preview .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
}

.linkedin-preview .post-info {
  flex: 1;
}

.linkedin-preview .name {
  font-weight: 600;
  font-size: 0.875rem;
}

.linkedin-preview .title {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.linkedin-preview .post-text {
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Instagram Preview */
.instagram-preview {
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.instagram-preview .post-image {
  aspect-ratio: 1;
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.instagram-preview .post-actions {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  font-size: 1.25rem;
}

.instagram-preview .caption {
  padding: 0 0.75rem 0.75rem;
  font-size: 0.875rem;
}

.instagram-preview .caption .username {
  font-weight: 600;
  margin-right: 0.5rem;
}

.instagram-preview .hashtags {
  color: #00376b;
}

/* YouTube Preview */
.youtube-preview {
  background: #0f0f0f;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.youtube-preview .video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #282828, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-preview .play-btn {
  width: 68px;
  height: 48px;
  background: red;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-preview .video-info {
  padding: 0.75rem;
}

.youtube-preview .video-title {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.youtube-preview .channel-name {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* TikTok Preview */
.tiktok-preview {
  background: #121212;
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.tiktok-preview .profile-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.tiktok-preview .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00f2ea, #ff0050);
}

.tiktok-preview .profile-info {
  flex: 1;
}

.tiktok-preview .username {
  font-weight: 700;
  font-size: 1.125rem;
}

.tiktok-preview .handle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.tiktok-preview .bio-text {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.tiktok-preview .stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.tiktok-preview .stat {
  text-align: center;
}

.tiktok-preview .stat-number {
  font-weight: 700;
}

.tiktok-preview .stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Related Tools Section */
.related-tools {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.related-tools h3 {
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.related-card:hover {
  border-color: var(--accent, var(--primary));
  background: var(--bg-card-hover);
}

.related-card .icon {
  font-size: 1.5rem;
}

.related-card .info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.related-card .info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

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

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--accent, var(--primary));
}

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

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none; }

/* Tags/Pills */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-card-hover);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.tag:hover {
  background: var(--accent, var(--primary));
  color: white;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Copy Button */
.copy-btn {
  position: relative;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.copy-btn.copied {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* Thread Maker Specific */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thread-item {
  position: relative;
  padding: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.thread-item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 100%;
  width: 2px;
  height: 1rem;
  background: var(--border-color);
}

.thread-item:last-child::before {
  display: none;
}

.thread-number {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  width: 24px;
  height: 24px;
  background: var(--accent, var(--primary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Emoji Grid */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 0.5rem;
}

.emoji-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-btn:hover {
  background: var(--bg-card-hover);
  transform: scale(1.1);
}

/* Image Resizer */
.image-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.image-upload-zone:hover {
  border-color: var(--accent, var(--primary));
  background: var(--accent-glow, rgba(99, 102, 241, 0.1));
}

.image-upload-zone .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.image-upload-zone p {
  color: var(--text-secondary);
}

.size-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.size-preset {
  padding: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.size-preset:hover {
  border-color: var(--accent, var(--primary));
}

.size-preset.active {
  background: var(--accent, var(--primary));
  border-color: var(--accent, var(--primary));
  color: white;
}

.size-preset .name {
  font-weight: 600;
  font-size: 0.875rem;
}

.size-preset .dimensions {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.size-preset.active .dimensions {
  color: rgba(255,255,255,0.8);
}

/* Engagement Calculator */
.stat-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-card .value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent, var(--primary));
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.benchmark-bar {
  height: 8px;
  background: var(--bg-dark);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.benchmark-fill {
  height: 100%;
  background: var(--accent, var(--primary));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Best Time Heatmap */
.heatmap {
  display: grid;
  grid-template-columns: auto repeat(24, 1fr);
  gap: 2px;
  font-size: 0.625rem;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  min-width: 16px;
}

.heatmap-cell.level-0 { background: var(--bg-dark); }
.heatmap-cell.level-1 { background: rgba(var(--accent-rgb, 99, 102, 241), 0.2); }
.heatmap-cell.level-2 { background: rgba(var(--accent-rgb, 99, 102, 241), 0.4); }
.heatmap-cell.level-3 { background: rgba(var(--accent-rgb, 99, 102, 241), 0.6); }
.heatmap-cell.level-4 { background: var(--accent, var(--primary)); }

.heatmap-label {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  padding-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .tool-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Print */
@media print {
  .header, .footer, .btn, .tool-sidebar {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
