/* This file contains all the shared styles for your application and blog.
  It was extracted from the <style> block in index.html.
*/

body { 
  font-family: 'Inter', sans-serif; 
  font-weight: 400; 
  background-color: #111827; /* gray-900 */
  color: #d1d5db; /* gray-300 */
}

.module {
  background-color: #1f2937; /* gray-800 */
  border: 1px solid #374151; /* gray-700 */
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.module-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.75rem;
}

/* --- Custom Sliders --- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #374151; /* gray-700 */
  border-radius: 3px;
  outline: none;
  transition: opacity 0.2s;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #3b82f6; /* blue-600 */
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
}

input[type="range"]:hover::-webkit-slider-thumb {
  background: #2563eb; /* blue-700 */
}

/* --- Custom Inputs & Selects --- */
.input, .select {
  width: 100%;
  background-color: #374151; /* gray-700 */
  border: 1px solid #4b5563; /* gray-600 */
  color: #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus, .select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* --- Buttons --- */
.btn {
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}
.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #4b5563;
  color: white;
}
.btn-secondary:hover {
  background-color: #6b7280;
}

.btn-toggle {
  background-color: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
}
.btn-toggle:hover {
  background-color: #4b5563;
}
.btn-toggle.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* --- Labels & Values --- */
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af; /* gray-400 */
  margin-bottom: 0.5rem;
}

.value-display {
  font-size: 0.875rem;
  color: #fff;
  font-weight: 500;
  min-width: 4rem;
  text-align: right;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

canvas {
  width: 100%;
  height: 100px;
  background-color: #000;
  border-radius: 0.5rem;
  border: 1px solid #374151;
}

/* --- Blog-specific Styles --- */
.blog-post-card {
  background-color: #1f2937; /* gray-800 */
  border: 1px solid #374151; /* gray-700 */
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-post-card a {
  display: block;
  text-decoration: none;
}

.blog-post-card h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

.blog-post-card p {
  color: #d1d5db; /* gray-300 */
  font-size: 1rem;
  line-height: 1.6;
}

.btn-read-more {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-read-more:hover {
  background-color: #2563eb;
}

/* Article Styles */
.article-content {
  color: #d1d5db;
  line-height: 1.7;
}
.article-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.5rem;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.article-content p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style-position: outside;
}
.article-content ul {
  list-style-type: disc;
}
.article-content ol {
  list-style-type: decimal;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content a {
  color: #60a5fa; /* blue-400 */
  text-decoration: underline;
  transition: color 0.2s;
}
.article-content a:hover {
  color: #3b82f6;
}
.article-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #9ca3af; /* gray-400 */
}
