/* it.you — Main stylesheet */

/* Custom properties */
:root {
  --color-primary: #1B5CDB;
  --color-primary-dark: #1449B3;
  --color-dark: #041C40;
  --color-accent: #00C896;
  --color-accent-dark: #009E78;
}

/* Smooth scrolling already handled by Tailwind scroll-smooth class */

/* Typography improvements */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus ring consistency */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar styling for code areas */
textarea, .code-area {
  scrollbar-width: thin;
  scrollbar-color: #374151 #1f2937;
}
textarea::-webkit-scrollbar { width: 6px; height: 6px; }
textarea::-webkit-scrollbar-track { background: #1f2937; border-radius: 3px; }
textarea::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }

/* Hero section diagonal clip */
.hero-clip {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

/* Tool card hover effect */
.tool-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(27, 92, 219, 0.1);
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
}

/* Blog content styles */
.prose-ityou {
  line-height: 1.75;
  color: #374151;
}
.prose-ityou h2 { font-size: 1.5rem; font-weight: 800; color: #041C40; margin-top: 2rem; margin-bottom: 1rem; }
.prose-ityou h3 { font-size: 1.25rem; font-weight: 700; color: #041C40; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose-ityou p { margin-bottom: 1rem; }
.prose-ityou a { color: var(--color-primary); font-weight: 500; }
.prose-ityou a:hover { text-decoration: underline; }
.prose-ityou code {
  background: #f3f4f6;
  color: #1B5CDB;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}
.prose-ityou pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.prose-ityou pre code { background: none; color: inherit; padding: 0; }
.prose-ityou ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-ityou ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-ityou li { margin-bottom: 0.5rem; }
.prose-ityou blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  color: #6b7280;
  font-style: italic;
  margin: 1.5rem 0;
}
.prose-ityou table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.875rem; }
.prose-ityou th { background: #f3f4f6; font-weight: 700; text-align: left; padding: 0.75rem 1rem; border-bottom: 2px solid #e5e7eb; }
.prose-ityou td { padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; }
.prose-ityou tr:hover td { background: #fafafa; }

/* Admin sidebar */
.admin-sidebar .nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.15s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: #eff6ff;
  color: var(--color-primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.3s ease-out; }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.animate-pulse { animation: pulse-dot 2s ease-in-out infinite; }

/* Table of contents (blog) */
.toc {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.875rem;
}
.toc a { color: #374151; display: block; padding: 0.25rem 0; }
.toc a:hover { color: var(--color-primary); }

/* Print styles */
@media print {
  nav, footer, #cookie-banner, aside { display: none !important; }
  main { padding: 0 !important; }
}
