/* Clean blog layout - simple and focused */

/* Color scheme */
:root {
  --bg: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --link: #3182ce;
  --link-hover: #2c5282;
}

[data-bs-theme="dark"] {
  --bg: #1a202c;
  --text: #e2e8f0;
  --text-light: #a0aec0;
  --border: #2d3748;
  --card-bg: #2d3748;
  --link: #63b3ed;
  --link-hover: #90cdf4;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

/* Navigation */
.navbar {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  padding: 1rem 0;
}

.navbar .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--link);
}

/* Main content container */
.main-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }
}

/* Content card */
.site-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .site-card {
    padding: 1.5rem;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
}

/* Typography */
.site-card h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 0;
  line-height: 1.2;
}

.site-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.site-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.site-card h4, .site-card h5, .site-card h6 {
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.site-card p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.site-card ul, .site-card ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.site-card li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.site-card blockquote {
  border-left: 4px solid var(--link);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

/* Links */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Code blocks */
.site-card pre {
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

[data-bs-theme="dark"] .site-card pre {
  background: #2d3748;
}

.site-card code {
  background: #f7fafc;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
}

[data-bs-theme="dark"] .site-card code {
  background: #2d3748;
}

/* Images and media */
.site-card img, .site-card video {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

/* YouTube embeds */
.youtube-embed-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.youtube-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  margin-top: 3rem;
}

footer .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer small {
  color: var(--text-light);
  font-size: 0.875rem;
}

#themeToggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}

#themeToggle:hover {
  background-color: var(--border);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .site-card h1 {
    font-size: 1.75rem;
  }
  
  .site-card h2 {
    font-size: 1.375rem;
  }
  
  .site-card h3 {
    font-size: 1.125rem;
  }
  
  .youtube-embed-wrapper {
    margin: 1.5rem 0;
    border-radius: 6px;
  }
  
  footer .container-fluid {
    text-align: center;
    flex-direction: column;
  }
}

