/**
 * Basic styles for SSG Portfolio
 * Extend this file with your own styles
 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.site-header {
  background: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.site-title {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.site-tagline {
  color: #666;
  font-size: 1.1em;
}

/* Navigation */
.main-nav {
  background: #333;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav ul {
  list-style: none;
  display: flex;
  max-width: 800px;
  margin: 0 auto;
}

.main-nav li {
  flex: 1;
}

.main-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 15px 20px;
  text-align: center;
  transition: background 0.3s;
}

.main-nav a:hover {
  background: #555;
}

/* Content */
main {
  padding: 40px 0;
}

h1, h2, h3 {
  margin: 30px 0 15px;
  line-height: 1.3;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.6em;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

h3 {
  font-size: 1.3em;
}

p {
  margin-bottom: 15px;
}

a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border 0.2s;
}

a:hover {
  border-bottom-color: #0066cc;
}

code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

pre {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Articles */
.blog-post,
.project {
  margin: 40px 0;
}

.post-header,
.project-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 20px;
}

.post-meta {
  color: #666;
  font-size: 0.95em;
  margin-top: 10px;
}

.post-meta time,
.post-meta .author {
  display: inline-block;
  margin-right: 20px;
}

.post-content,
.project-content {
  font-size: 1.05em;
  line-height: 1.8;
}

.post-footer,
.project-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  color: #555;
}

.tag:hover {
  background: #e0e0e0;
}

/* Cards */
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.card-title {
  font-size: 1.3em;
  margin: 10px 0;
}

.card-description {
  color: #666;
  margin-bottom: 15px;
}

.card-link {
  display: inline-block;
  color: #0066cc;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #f5f5f5;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 60px;
  color: #666;
}

.footer-content p {
  margin: 5px 0;
}

.footer-content a {
  color: #0066cc;
}

/* Responsive */
@media (max-width: 600px) {
  .site-title {
    font-size: 1.8em;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    border-bottom: 1px solid #555;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.2em;
  }
}
