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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #0d1117;
  color: #e6edf3;
  line-height: 1.6;
}

a {
  color: #58a6ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: linear-gradient(135deg, #161b22 0%, #1a1f2b 100%);
  border-bottom: 1px solid #30363d;
  padding: 3rem 1rem;
  text-align: center;
}

.header-content {
  max-width: 700px;
  margin: 0 auto;
}

header h1 {
  font-size: 2rem;
  color: #58a6ff;
  margin-bottom: 0.5rem;
}

.tagline {
  color: #8b949e;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f6fc;
}

.stat-label {
  font-size: 0.75rem;
  color: #8b949e;
}

/* Main */
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #21262d;
}

/* About */
.about p {
  color: #c9d1d9;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #21262d;
  color: #58a6ff;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  border: 1px solid #30363d;
}

/* Repos */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.repo-card {
  display: block;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.repo-card:hover {
  border-color: #58a6ff;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.repo-preview {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #0d1117;
}

.repo-preview iframe {
  width: 200%;
  height: 200%;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

.repo-title {
  color: #58a6ff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.repo-info {
  padding: 0.85rem 1rem;
  border-top: 1px solid #30363d;
}

.repo-desc {
  color: #c9d1d9;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.repo-lang {
  color: #8b949e;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.lang-dot.python {
  background: #3572a5;
}

.lang-dot.html {
  background: #e34c26;
}

/* Filter */
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}

.filter-btn.active {
  background: #58a6ff;
  color: #0d1117;
  border-color: #58a6ff;
}

/* Tweets */
.tweet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tweet-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.tweet-card:hover {
  border-color: #484f58;
}

.tweet-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.tweet-date {
  color: #8b949e;
  font-size: 0.8rem;
}

.tweet-likes {
  color: #f85149;
  font-size: 0.85rem;
  font-weight: 600;
}

.tweet-text {
  color: #e6edf3;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.tweet-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tweet-images img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #30363d;
  object-fit: cover;
  max-height: 300px;
}

.tweet-category {
  margin-top: 0.6rem;
}

.tweet-category .tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #21262d;
  color: #8b949e;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
  header {
    padding: 2rem 1rem;
  }
  header h1 {
    font-size: 1.5rem;
  }
  .stats {
    gap: 1rem;
  }
  .stat-num {
    font-size: 1.2rem;
  }
}
