/* Base styles */
:root {
  --primary-color: #0366d6;
  --secondary-color: #24292e;
  --text-color: #24292e;
  --background-color: #ffffff;
  --light-gray: #f6f8fa;
  --border-color: #e1e4e8;
  --bs-primary: #0366d6;
  --bs-primary-rgb: 3, 102, 214;
  --bs-secondary: #24292e;
  --bs-secondary-rgb: 36, 41, 46;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 1rem;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--secondary-color);
}

/* Content */
.site-content {
  min-height: calc(100vh - 180px);
  padding: 1rem 0 3rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  color: #6a737d;
  background-color: var(--light-gray);
}

/* Posts */
.post-list {
  margin-top: 2rem;
}

.post-item {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.post-item:last-child {
  border-bottom: none;
}

.post-meta {
  display: block;
  color: #6a737d;
  margin-bottom: 0.5rem;
}

.post-link {
  font-size: 1.25rem;
  font-weight: 600;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
}

/* Button */
.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.button:hover {
  background-color: #0256b3;
  text-decoration: none;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 2rem 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
}

/* Code */
pre {
  background-color: var(--light-gray);
  padding: 1rem;
  overflow: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    margin-top: 1rem;
    width: 100%;
  }
}

/* Custom styles to complement Bootstrap */

/* Header customization */
.bd-header {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.bd-header .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: color 0.15s ease-in-out;
}

.bd-header .nav-link:hover {
  color: var(--bs-primary) !important;
}

/* Hero section */
.hero-section {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

/* Cards customization */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Blog post content styling */
.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

.blog-post-content h2 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1.5rem 0;
}

.blog-post-content pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post-content code {
  color: #d63384;
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

/* Footer customization */
.bd-footer {
  font-size: 0.875rem;
}

.bd-footer a {
  color: inherit;
  text-decoration: none;
}

.bd-footer a:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(45deg, #0366d6, #6f42c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0356b3;
  --bs-btn-hover-border-color: #0356b3;
  --bs-btn-focus-shadow-rgb: 3, 102, 214;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0356b3;
  --bs-btn-active-border-color: #0356b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bd-header .nav {
    margin-top: 1rem;
  }
} 