/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #0a0a0a;
  --bg-secondary: #111111;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --accent-color: #ff1493;
  --accent-hover: #ff69b4;
  --border-color: #333333;
  --container-max-width: 800px;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 60px;
  position: relative;
  z-index: 100;
}

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

.logo-link {
  text-decoration: none;
  color: var(--text-primary);
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  position: relative;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 1001;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: var(--accent-color);
}

.menu-text {
  font-size: 14px;
  font-weight: 500;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu-toggle.active {
  color: var(--text-primary);
}

/* Full Screen Menu Overlay */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu.active {
  opacity: 1;
  visibility: visible;
}

.nav-item {
  margin: 0;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu.active .nav-item {
  transform: translateY(0);
  opacity: 1;
}

.nav-menu.active .nav-item:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-menu.active .nav-item:nth-child(2) {
  transition-delay: 0.2s;
}

.nav-menu.active .nav-item:nth-child(3) {
  transition-delay: 0.3s;
}

.nav-menu.active .nav-item:nth-child(4) {
  transition-delay: 0.4s;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin: 20px 0;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-color);
  transform: translateX(10px);
}

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

/* Close button in menu */
.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 36px;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.menu-close:hover {
  color: var(--text-primary);
}

/* Search in menu */
.menu-search {
  margin-top: 60px;
  position: relative;
  width: 400px;
  max-width: 80vw;
}

.search-input {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 16px;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

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

.search-input:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.1);
}

/* Search Results */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.search-result-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.search-result-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  display: block;
  text-decoration: none;
}

.search-result-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.search-result-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Search highlight */
.search-highlight {
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 1px 2px;
  border-radius: 2px;
}

/* Featured Post */
.featured-post {
  margin-bottom: 80px;
}

.featured-post-header {
  margin-bottom: 20px;
}

.featured-post-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.featured-post-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.featured-post-date {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
}

.featured-post-content {
  max-width: 700px;
}

.featured-post-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.read-more-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.read-more-link:hover {
  color: var(--accent-hover);
}

/* Previous Posts */
.previous-posts {
  margin-top: 60px;
}

.previous-posts-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 40px;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
}

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

.post-item-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-item-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.post-item-date {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
}

.post-item-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.5;
}

/* List Pages */
.list-header {
  margin-bottom: 60px;
}

.list-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.list-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.no-posts {
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
  padding: 60px 0;
}

/* Single Post */
.single-post {
  max-width: 700px;
}

.single-post-header {
  margin-bottom: 40px;
}

.single-post-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-post-date {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
}

.single-post-image {
  margin-bottom: 40px;
}

.post-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.single-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 32px 0 16px 0;
  line-height: 1.3;
}

.single-post-content h1 {
  font-size: 32px;
}
.single-post-content h2 {
  font-size: 28px;
}
.single-post-content h3 {
  font-size: 24px;
}
.single-post-content h4 {
  font-size: 20px;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.single-post-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.single-post-content ul,
.single-post-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.single-post-content li {
  margin-bottom: 8px;
}

.single-post-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.single-post-content code {
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 14px;
}

.single-post-content pre {
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

.single-post-content pre code {
  background: none;
  padding: 0;
}

/* Post Navigation */
.post-navigation {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

.post-navigation .nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: block;
}

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

/* Footer */
.footer {
  margin-top: 100px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header {
    margin-bottom: 40px;
  }

  .featured-post-title {
    font-size: 36px;
  }

  .single-post-title {
    font-size: 36px;
  }

  .list-title {
    font-size: 36px;
  }

  .post-item-title {
    font-size: 20px;
  }

  .featured-post {
    margin-bottom: 60px;
  }

  .previous-posts {
    margin-top: 40px;
  }

  .post-navigation {
    flex-direction: column;
    text-align: left;
  }

  .nav-next {
    text-align: left;
  }

  .nav-link {
    font-size: 36px;
  }

  .menu-search {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .featured-post-title {
    font-size: 28px;
  }

  .single-post-title {
    font-size: 28px;
  }

  .list-title {
    font-size: 28px;
  }

  .post-item-title {
    font-size: 18px;
  }

  .nav-link {
    font-size: 28px;
  }

  .menu-search {
    width: 250px;
  }
}
