/* CSS Variables for Theme */
:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --text-secondary: #666;
  --border-color: #e5e5e5;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --link-color: #2563eb;
  --link-hover: #1d4ed8;
  --code-bg: #f4f4f4;
  --shadow: rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] {
  --bg-color: #0d1117;
  --text-color: #c9d1d9;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  --card-bg: #161b22;
  --header-bg: #161b22;
  --link-color: #58a6ff;
  --link-hover: #79c0ff;
  --code-bg: #21262d;
  --shadow: rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

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

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

.wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 1rem;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav a:hover {
  color: var(--text-color);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--link-color);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0 0.25rem;
}

.lang-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

.lang-link:hover {
  color: var(--text-color);
}

.lang-link.active {
  color: var(--text-color);
  font-weight: 600;
}

.lang-separator {
  color: var(--text-secondary);
  user-select: none;
}

/* Header Search */
.search-container-header {
  position: relative;
}

.header-search-input {
  width: 160px;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  outline: none;
  flex-shrink: 1;
  min-width: 100px;
}

.header-search-input::placeholder {
  color: var(--text-secondary);
}

.header-search-input:focus {
  width: 200px;
  border-color: var(--link-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search-input:focus + #header-search-results,
.header-search-results.active {
  display: block;
}

.header-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 350px;
  max-height: 400px;
  overflow-y: auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
  z-index: 1000;
  padding: 0.5rem 0;
}

.search-result-item-header {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-color);
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.search-result-item-header:last-child {
  border-bottom: none;
}

.search-result-item-header:hover {
  background-color: var(--border-color);
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.search-result-meta-header {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.search-result-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background-color: var(--border-color);
  border-color: var(--text-secondary);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

#theme-icon {
  display: block;
  line-height: 1;
}

/* Ana Sayfa */
.home {
  padding: 4rem 0;
}

.hero {
  text-align: center;
  padding: 4rem 0 6rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero-intro {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-social {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-social a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.hero-social a:hover {
  color: var(--link-color);
  background-color: var(--border-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.hero-social a svg {
  width: 20px;
  height: 20px;
}

.hero-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.hero-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-links a:hover {
  color: var(--link-color);
}

/* Blog Listesi */
.blog-page {
  padding: 2rem 0 4rem;
}

.blog-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.post-list {
  list-style: none;
}

.post-item {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

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

.post-item:hover {
  transform: translateX(4px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.post-date {
  color: var(--text-secondary);
}

.post-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.post-link:hover {
  color: var(--link-color);
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Post Sayfası */
.post {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

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

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-meta-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
}

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

.post-content ul,
.post-content ol {
  margin-left: 2rem;
  margin-bottom: 1.25rem;
}

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

.post-content code {
  background-color: var(--code-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 0.9em;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.post-content pre {
  background-color: var(--code-bg);
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
  border: none;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px var(--shadow);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-footer a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.post-footer a:hover {
  color: var(--link-hover);
}

/* Reading Time */
.reading-time {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Social Share Buttons */
.post-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.share-button:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

.share-button svg {
  flex-shrink: 0;
}

.share-button span {
  white-space: nowrap;
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.related-posts-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.related-posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-post-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.related-post-item:hover {
  border-color: var(--link-color);
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateY(-2px);
}

.related-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-post-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  line-height: 1.4;
}

.related-post-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.related-post-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.5rem;
}

/* Search Page */
.search-page {
  padding: 2rem 0 4rem;
}

.search-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.search-container {
  max-width: 700px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--link-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-results {
  min-height: 200px;
}

.search-results-list {
  list-style: none;
}

.search-result-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.search-result-item h3 {
  margin-bottom: 0.5rem;
}

.search-result-item h3 a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.search-result-item h3 a:hover {
  color: var(--link-color);
}

.search-result-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.search-result-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.no-results {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem 0;
  font-size: 1.1rem;
}

/* About Page */
.about-page {
  padding: 3rem 0 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
  line-height: 1.2;
}

.about-page h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  line-height: 1.3;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.about-page h2:first-of-type {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.about-page h2 code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 1.5rem;
  background-color: var(--code-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--link-color);
  font-weight: 500;
}

.about-page p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.about-page p:last-child {
  margin-bottom: 0;
}

.about-page > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 1.75rem;
}

.about-page strong {
  color: var(--text-color);
  font-weight: 600;
}

.about-page ul {
  list-style: none;
  padding-left: 0;
  max-width: 100%;
  margin-top: 1.5rem;
}

.about-page ul li {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  padding-left: 2.5rem;
  position: relative;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.about-page ul li:hover {
  border-color: var(--link-color);
  box-shadow: 0 2px 8px var(--shadow);
  transform: translateX(4px);
}

.about-page ul li::before {
  content: "→";
  color: var(--link-color);
  font-weight: bold;
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
}

.about-page ul li.achievement-featured {
  border-color: var(--link-color);
  border-width: 2px;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(37, 99, 235, 0.08) 100%);
  position: relative;
}

.about-page ul li.achievement-featured::after {
  content: "⭐";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.about-page ul li.achievement-featured:hover {
  border-color: var(--link-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transform: translateX(4px) translateY(-2px);
}

[data-theme="dark"] .about-page ul li.achievement-featured {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(88, 166, 255, 0.12) 100%);
}

[data-theme="dark"] .about-page ul li.achievement-featured:hover {
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.25);
}

.about-page ul li strong {
  color: var(--link-color);
  font-weight: 600;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.95rem;
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .about-page {
    padding: 2rem 0 3rem;
  }

  .about-page h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .about-page h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }

  .about-page h2 code {
    font-size: 1.25rem;
  }

  .about-page ul li {
    padding: 0.875rem 1rem;
    padding-left: 2.25rem;
    font-size: 0.95rem;
  }
}

/* Talks Page */
.talks-page {
  padding: 2rem 0 4rem;
}

.talks-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.talks-list {
  min-height: 300px;
}

.talks-intro {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.talks-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.talk-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  transition: all 0.3s ease;
}

.talk-item:hover {
  border-color: var(--link-color);
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateY(-2px);
}

.talk-item-featured {
  border-color: var(--link-color);
  border-width: 2px;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.talk-item-featured:hover {
  border-color: var(--link-hover);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .talk-item-featured {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(88, 166, 255, 0.08) 100%);
}

[data-theme="dark"] .talk-item-featured:hover {
  box-shadow: 0 6px 16px rgba(88, 166, 255, 0.25);
}

.talk-date {
  min-width: 140px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding-top: 0.25rem;
  text-align: right;
  flex-shrink: 0;
}

.talk-content {
  flex: 1;
}

.talk-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.talk-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.talk-title a:hover {
  color: var(--link-color);
}

.talk-title a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.youtube-icon {
  width: 18px;
  height: 18px;
  fill: #ff0000;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.talk-title a:hover .youtube-icon {
  transform: scale(1.1);
  fill: #cc0000;
}

[data-theme="dark"] .youtube-icon {
  fill: #ff4444;
}

[data-theme="dark"] .talk-title a:hover .youtube-icon {
  fill: #ff6666;
}

.talk-role {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 4rem 0;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  margin-top: 6rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border-radius: 6px;
}

.footer-social-link:hover {
  color: var(--link-color);
  background-color: var(--border-color);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-rss:hover {
  color: var(--link-color);
}

.footer-rss svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .wrapper {
    padding: 0 20px;
  }

  .site-header .wrapper {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
    order: 2;
    width: 100%;
  }

  .header-actions {
    margin-left: 0;
    order: 1;
    margin-left: auto;
  }

  .header-search-input {
    width: 150px;
  }

  .header-search-input:focus {
    width: 180px;
  }

  .header-search-results {
    width: 280px;
    right: 0;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0.4rem;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-social {
    gap: 1rem;
  }

  .hero-social a {
    width: 36px;
    height: 36px;
  }

  .hero-social a svg {
    width: 18px;
    height: 18px;
  }

  .hero-links {
    flex-direction: column;
    gap: 1rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .blog-page h1 {
    font-size: 1.75rem;
  }

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

  .talk-item {
    flex-direction: column;
    gap: 1rem;
  }

  .talk-date {
    min-width: auto;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0 4rem;
  }

  .hero-name {
    font-size: 2rem;
  }

  .site-header .wrapper {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .site-nav {
    gap: 0.75rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-search-input {
    width: calc(100% - 50px);
    flex: 1;
  }

  .header-search-input:focus {
    width: calc(100% - 50px);
  }

  .header-search-results {
    width: 100%;
    right: 0;
    left: 0;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    padding: 0.3rem;
  }
}

/* Projects Page */
.projects-page {
  padding: 2rem 0 4rem;
}

.projects-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.projects-list {
  min-height: 300px;
}

.projects-intro {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-item {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  transition: all 0.3s ease;
}

.project-item:hover {
  border-color: var(--link-color);
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateY(-2px);
}

.project-item-featured {
  border-color: var(--link-color);
  border-width: 2px;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.project-item-featured:hover {
  border-color: var(--link-hover);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .project-item-featured {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(88, 166, 255, 0.08) 100%);
}

[data-theme="dark"] .project-item-featured:hover {
  box-shadow: 0 6px 16px rgba(88, 166, 255, 0.25);
}

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

.project-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  line-height: 1.4;
}

.project-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: var(--link-color);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.kali-badge {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.kali-badge:hover {
  background-color: var(--border-color);
  border-color: var(--link-color);
  color: var(--text-color);
}

.kali-badge .kali-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

[data-theme="dark"] .kali-badge .kali-logo {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.blackarch-badge {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.blackarch-badge:hover {
  background-color: var(--border-color);
  border-color: var(--link-color);
  color: var(--text-color);
}

.blackarch-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

[data-theme="dark"] .blackarch-badge .blackarch-logo {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.kali-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
  object-fit: contain;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-description .conference-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-description .conference-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.project-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.project-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project-language {
  padding: 0.25rem 0.5rem;
  background-color: var(--code-bg);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

.projects-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
}

.projects-footer a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.projects-footer a:hover {
  color: var(--link-hover);
}

@media (max-width: 768px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-meta {
    font-size: 0.8rem;
  }

  /* Related Posts Responsive */
  .related-posts-list {
    grid-template-columns: 1fr;
  }

  /* Social Share Responsive */
  .post-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .share-buttons {
    width: 100%;
  }

  .share-button {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .share-button span {
    display: none;
  }

  .share-button {
    padding: 0.5rem;
    min-width: 44px;
    justify-content: center;
  }
}
