/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Dynamic Projects Styles */
.activity-section {
  margin-bottom: 3rem;
}

.activity-header {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
}

.activity-header.high-activity {
  color: #ef4444;
  border-color: #ef4444;
}

.activity-header.medium-activity {
  color: #f59e0b;
  border-color: #f59e0b;
}

.activity-header.low-activity {
  color: #3b82f6;
  border-color: #3b82f6;
}

.activity-description {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.project-card {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  background-color: #1a1a2e;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-card.high-activity {
  border-left: 4px solid #ef4444;
}

.project-card.medium-activity {
  border-left: 4px solid #f59e0b;
}

.project-card.low-activity {
  border-left: 4px solid #3b82f6;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-header h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.25rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
  align-items: center;
}

.star-count, .commit-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.commit-count {
  color: #10b981;
  font-weight: 500;
}

.last-updated {
  font-style: italic;
}

.project-description {
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-tech {
  margin-bottom: 1rem;
}

.tech-tag {
  display: inline-block;
  background-color: #374151;
  color: #e5e7eb;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tech-tag.primary-language {
  background-color: #4f46e5;
  color: #f8fafc;
  font-weight: 500;
}

.project-links {
  margin-top: auto;
}

.project-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #93c5fd;
}

.no-projects {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
}

.no-projects code {
  background-color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: #f8fafc;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #e4e4e7;
  background-color: #0f0f23;
  margin: 0;
  padding: 0;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid #333;
  padding-bottom: 2rem;
}

.blog-header h1 {
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.blog-header h1 a {
  color: #f8fafc;
  text-decoration: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.social-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.social-link:hover {
  color: #93c5fd;
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.main-nav {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  color: #9ca3af;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #93c5fd;
  background-color: #1e293b;
}

.nav-link.active {
  color: #93c5fd;
  background-color: #1e293b;
}

.draft-link {
  color: #fbbf24 !important;
  font-style: italic;
}

.draft-link:hover {
  color: #fcd34d !important;
}

.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.page-content {
  margin-top: 2rem;
}

.page-content h1 {
  color: #f8fafc;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-align: center;
}

.page-content h2 {
  color: #f8fafc;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content ul {
  margin-bottom: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.about-section p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.projects-section p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: #1e293b;
  padding: 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
}

.project-card h3 {
  color: #f8fafc;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.project-card p {
  margin-bottom: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.project-tech {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #374151;
  color: #d1d5db;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
}

.project-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.projects-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #1e293b;
  border-radius: 0.5rem;
  border-left: 4px solid #93c5fd;
}

.projects-note p {
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.projects-note p:last-child {
  margin-bottom: 0;
}

.links-section p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.links-category {
  margin-bottom: 3rem;
}

.links-category h2 {
  color: #f8fafc;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #93c5fd;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #1e293b;
  border-radius: 0.375rem;
  border-left: 3px solid #93c5fd;
}

.external-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.external-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.link-description {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.5;
}

.posts-list {
  margin-top: 2rem;
}

.post-preview {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.post-preview h2 {
  margin-bottom: 0.5rem;
}

.post-preview h2 a {
  color: #f8fafc;
  text-decoration: none;
}

.post-preview h2 a:hover {
  color: #93c5fd;
}

.post-meta {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.post-description {
  color: #9ca3af;
  font-style: italic;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
}

.post-content {
  margin-bottom: 2rem;
}

.post-content h1, .post-content h2, .post-content h3 {
  color: #f8fafc;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content code {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
}

.post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

.post-footer {
  border-top: 1px solid #333;
  padding-top: 1rem;
  margin-top: 2rem;
}

.post-footer a {
  color: #93c5fd;
  text-decoration: none;
}

.post-footer a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

/* General link styling for better contrast */
a {
  color: #93c5fd;
  text-decoration: underline;
}

a:hover {
  color: #bfdbfe;
}

.post-content a {
  color: #93c5fd;
  text-decoration: underline;
}

.post-content a:hover {
  color: #bfdbfe;
}

/* Tag styling */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: #374151;
  color: #d1d5db;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tag:hover {
  background-color: #4b5563;
  color: #f3f4f6;
  text-decoration: none;
}
