@import "../global.css";

body {
  display: grid;
  grid-template-rows: 110px 1fr auto;
  grid-template-columns: 1fr;
  grid-template-areas:
    "nav"
    "main"
    "footer";
  min-height: 100vh;
  box-sizing: border-box;
}

/* Nav */
nav {
  background-color: var(--space-black-02);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-area: nav;
  height: 110px;
  box-sizing: border-box;
}

nav img {
  width: 225px;
  height: 30px;
}



nav .nav-section {
  display: flex;
  gap: 40px;
}

nav .nav-section a {
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  box-sizing: border-box;
}

nav .nav-section a:hover {
  color: var(--space-red-00);
}

nav .nav-contact-section {
  display: flex;
  gap: 40px;
}

nav .nav-contact-section a {
  font-size: 16px;
  /* Cyberpunk button styling is now handled by the .cyberpunk-btn class */
}

/* Add subtle pulse effect to nav button */
nav .cyberpunk-btn {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(238, 51, 51, 0.3), inset 0 0 20px rgba(238, 51, 51, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(238, 51, 51, 0.5), inset 0 0 20px rgba(238, 51, 51, 0.15);
  }
}

/* Main */
.main-container {
  padding: 0;
  grid-area: main;
  opacity: 1; /* Always visible by default */
}

/* Transition class applied only during SPA navigation */
.main-container.spa-transition {
  transition: opacity 0.2s ease-in-out;
}

.main-container > *:not(.heading-block) {
  padding: 0 24px;
}

/* Footer */
footer {
  min-height: 110px;
  padding: 40px;
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  margin-top: auto;
}

footer p {
  font-size: 14px;
}

footer .social-section {
  display: flex;
  gap: 16px;
}

footer svg {
  width: 24px;
  height: 24px;
  filter: var(--filter-space-black-01);
  transition: filter 0.3s ease;
}

footer svg:hover {
  filter: var(--filter-space-red-00);
}



/* Heading block */
.heading-block {
  height: 500px;
  background: linear-gradient(to bottom, var(--space-black-02) 0%, var(--space-black-02) 30%, var(--space-black-01) 100%);
  position: relative;
  overflow: hidden;
}

.heading-section {
  max-width: 1366px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 80px 60px 0 60px;
  box-sizing: border-box;
}

.heading-section h1 {
  font-size: 5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  position: relative;
  font-family: var(--font-headings);
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  max-width: 100%;
}

.heading-section h1 .char {
  display: inline-block;
  transition: all 0.1s ease;
}

.heading-section h1 .char.flicker {
  opacity: 0;
  text-shadow: 0 0 0 var(--space-red-00), 1px 0 0 var(--space-red-00), 2px 0 0 var(--space-red-00), 3px 0 0 var(--space-red-00), 4px 0 0 var(--space-red-00), 5px 0 0 var(--space-red-00);
  color: transparent;
  animation: pixelFlicker 0.1s ease-in-out;
}

.heading-section h1 .char.glitch {
  color: var(--space-red-00);
  text-shadow: -1px 0 var(--space-purple-00), 1px 0 var(--space-red-00), 2px 0 var(--space-purple-00);
  transform: translateX(2px);
  animation: pixelGlitch 0.2s ease-in-out;
}

.heading-section h1 .char.pixelated {
  filter: blur(1px);
  text-shadow: 0 0 0 var(--white), 1px 1px 0 var(--space-red-00), 2px 2px 0 var(--space-purple-00);
  animation: pixelEffect 0.15s ease-in-out;
}

.heading-section p {
  font-size: 20px;
  color: var(--white);
  font-family: var(--font-body);
}

/* Stars */
.star {
  position: absolute;
  background-color: var(--space-grey-00);
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s ease-in-out infinite alternate;
}

.star.small {
  width: 1px;
  height: 1px;
}

.star.medium {
  width: 2px;
  height: 2px;
}

.star.large {
  width: 3px;
  height: 3px;
}

/* Falling star */
.falling-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
}

.falling-star::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  border-radius: 50%;
  transform: rotate(45deg);
}

@keyframes twinkle {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes fall {
  0% {
    transform: translateY(-50px) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(550px) translateX(100px);
    opacity: 0;
  }
}

@keyframes pixelFlicker {
  0% {
    opacity: 0;
    text-shadow: 0 0 0 var(--space-red-00), 1px 0 0 var(--space-red-00), 2px 0 0 var(--space-red-00);
  }
  50% {
    opacity: 0.3;
    text-shadow: 0 0 0 var(--space-red-00), 1px 0 0 var(--space-red-00), 2px 0 0 var(--space-red-00), 3px 0 0 var(--space-red-00);
  }
  100% {
    opacity: 0;
    text-shadow: 0 0 0 var(--space-red-00), 1px 0 0 var(--space-red-00), 2px 0 0 var(--space-red-00), 3px 0 0 var(--space-red-00), 4px 0 0 var(--space-red-00);
  }
}

@keyframes pixelGlitch {
  0% {
    transform: translateX(0);
    color: var(--space-red-00);
  }
  25% {
    transform: translateX(-2px);
    color: var(--space-purple-00);
  }
  50% {
    transform: translateX(2px);
    color: var(--space-red-00);
  }
  75% {
    transform: translateX(-1px);
    color: var(--space-purple-00);
  }
  100% {
    transform: translateX(0);
    color: var(--space-red-00);
  }
}

@keyframes pixelEffect {
  0% {
    filter: blur(0px);
    text-shadow: 0 0 0 var(--white), 1px 1px 0 var(--space-red-00);
  }
  50% {
    filter: blur(2px);
    text-shadow: 0 0 0 var(--white), 1px 1px 0 var(--space-red-00), 2px 2px 0 var(--space-purple-00), 3px 3px 0 var(--space-red-00);
  }
  100% {
    filter: blur(0px);
    text-shadow: 0 0 0 var(--white), 1px 1px 0 var(--space-red-00), 2px 2px 0 var(--space-purple-00);
  }
}

/* Content block */
.content-block {
  position: relative;
  padding-top: 40px;
  margin-top: -100px;
  min-height: calc(100vh - 110px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Content section */
.blog-content-section {
  position: relative;
  width: 100%;
  max-width: 1366px;
  background-color: var(--white);
  padding: 40px 120px;
  border-radius: var(--border-radius-00);
  box-shadow: var(--shadow-normal);
  margin: 0 24px;
  box-sizing: border-box;
}



/* Blog Styles */
.blog-container {
  width: 100%;
}

.blog-header {
  margin-bottom: 40px;
}

.blog-header h2 {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--space-black-01);
  margin-bottom: 24px;
  font-family: var(--font-headings);
}

.blog-container h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--space-black-01);
  margin-bottom: 24px;
  font-family: var(--font-headings);
}



/* Search Bar */
.blog-search {
  margin-bottom: 24px;
}

.cyberpunk-search {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-text);
  background: var(--space-black-02);
  color: var(--white);
  border: 2px solid var(--space-red-00);
  border-radius: 0;
  outline: none;
  box-shadow: 0 0 10px rgba(238, 51, 51, 0.2), inset 0 0 10px rgba(238, 51, 51, 0.05);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.cyberpunk-search::placeholder {
  color: var(--space-grey-00);
  opacity: 0.7;
}

.cyberpunk-search:focus {
  border-color: var(--space-purple-00);
  box-shadow: 0 0 20px rgba(102, 51, 238, 0.4), 0 0 40px rgba(238, 51, 51, 0.2), inset 0 0 10px rgba(102, 51, 238, 0.1);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Filter Buttons */
.blog-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

/* Blog Post Cards */
.blog-post {
  background: var(--white);
  border: 1px solid var(--space-grey-00);
  border-radius: 0;
  padding: 0;
  transition: all 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.blog-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post:hover .blog-post-image img {
  transform: scale(1.05);
}

.blog-post-content {
  padding: 24px;
}

.blog-post::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--space-red-00), var(--space-purple-00));
  transition: left 0.5s ease;
}

.blog-post:hover::before {
  left: 100%;
}

.blog-post:hover {
  border-color: var(--space-grey-00);
  box-shadow: 0 4px 20px rgba(238, 51, 51, 0.1), 0 0 30px rgba(102, 51, 238, 0.05);
  transform: translateY(-2px);
}

.blog-post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.blog-post-date {
  font-size: 14px;
  color: var(--space-purple-01);
  font-family: var(--font-text);
  font-weight: 500;
}

.blog-post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  background: var(--space-red-00);
  border-radius: var(--border-radius-00);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post h3 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.blog-post h3 a {
  color: var(--space-black-01);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post h3 a:hover {
  color: var(--space-red-00);
  text-shadow: 0 0 5px rgba(238, 51, 51, 0.3);
}

.blog-post p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--space-black-01);
  margin: 0 0 16px 0;
}

.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--space-grey-00);
}

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

.read-more:hover {
  color: var(--space-purple-00);
  text-shadow: 0 0 5px rgba(102, 51, 238, 0.5);
  transform: translateX(4px);
}

.read-time {
  font-size: 14px;
  color: var(--space-purple-01);
  font-style: italic;
}

/* Hidden posts for filtering */
.blog-post.hidden {
  display: none;
}

/* Pagination */
.pagination-container {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--space-grey-00);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.pagination-info {
  font-size: 14px;
  color: var(--space-purple-01);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  color: var(--space-black-01);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--space-grey-00);
  border-radius: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.pagination-btn:hover:not([disabled]) {
  background: var(--space-grey-00);
  border-color: var(--space-black-01);
  color: var(--space-black-01);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 22, 42, 0.1);
}

.pagination-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  color: var(--space-black-01);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--space-grey-00);
  border-radius: 0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-number:hover {
  background: var(--space-grey-00);
  border-color: var(--space-black-01);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 22, 42, 0.1);
}

.pagination-number.active {
  background: var(--space-black-01);
  color: var(--white);
  border-color: var(--space-black-01);
}

.pagination-number.active:hover {
  background: var(--space-black-02);
  border-color: var(--space-black-02);
  transform: translateY(-1px);
}

.pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  color: var(--space-purple-01);
  user-select: none;
}

/* Loading States */
.loading-overlay {
  backdrop-filter: blur(2px);
}

.loading-spinner {
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 500;
  color: var(--space-black-01);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 20px 40px;
  border: 1px solid var(--space-red-00);
  background: rgba(238, 51, 51, 0.05);
  animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-spinner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(238, 51, 51, 0.1), transparent);
  animation: loadingScan 2s linear infinite;
}

@keyframes loadingPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(238, 51, 51, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(238, 51, 51, 0.4);
  }
}

@keyframes loadingScan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Utility Classes */
.mb-3 {
  margin-bottom: 24px;
}

/* Authentication Forms */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 40px 0;
  margin-top: 100px;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.auth-form {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--space-grey-00);
  border-radius: 0;
  box-shadow: 
    0 4px 20px rgba(238, 51, 51, 0.1),
    0 0 30px rgba(102, 51, 238, 0.05);
  position: relative;
  overflow: hidden;
}

.auth-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--space-red-00), var(--space-purple-00));
  animation: authScan 3s ease-in-out infinite;
}

@keyframes authScan {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.auth-label {
  display: block;
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 500;
  color: var(--space-black-01);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cyberpunk-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-text);
  color: var(--space-black-01);
  background: var(--white);
  border: 2px solid var(--space-grey-00);
  border-radius: 0;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.cyberpunk-input:focus {
  border-color: var(--space-red-00);
  box-shadow: 0 0 10px rgba(238, 51, 51, 0.2);
}

.cyberpunk-input.is-invalid {
  border-color: var(--space-red-00);
  box-shadow: 0 0 10px rgba(238, 51, 51, 0.3);
}

.auth-error {
  color: var(--space-red-00);
  font-size: 14px;
  margin-top: 8px;
  font-family: var(--font-text);
}

.auth-flash {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: rgba(238, 51, 51, 0.1);
  border: 1px solid var(--space-red-00);
  color: var(--space-red-00);
  font-size: 14px;
  font-family: var(--font-text);
}

.auth-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--space-grey-00);
}

.auth-link, .auth-link a {
  font-size: 14px;
  color: var(--space-black-01);
  margin-bottom: 8px;
  font-family: var(--font-text);
}

.cyberpunk-link {
  color: var(--space-red-00);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cyberpunk-link:hover {
  color: var(--space-purple-00);
  text-shadow: 0 0 5px rgba(102, 51, 238, 0.5);
}

/* Individual Blog Post Page */
.blog-post-container {
  width: 100%;
}

.blog-nav {
  margin-bottom: 32px;
}

.blog-post-full {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
}

.blog-post-featured-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 32px;
}

.blog-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog-post-full .blog-post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 0 24px;
}

.blog-post-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-post-meta span {
  font-family: var(--font-text);
  font-weight: var(--font-weight-normal);
  color: var(--space-black-01);
  font-size: 12px;
  line-height: 1.5;
}

.blog-post-date {
  font-size: 14px;
  color: var(--space-purple-01);
  font-weight: 500;
}

.blog-post-reading-time {
  font-size: 14px;
  color: var(--space-purple-01);
  font-style: italic;
}

.blog-post-full .blog-post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-post-full .blog-post-content {
  padding: 0 24px;
  line-height: 1.8;
}

.blog-post-full .blog-post-content h2 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--space-black-01);
  margin: 0 0 24px 0;
  font-family: var(--font-headings);
}

.blog-post-full .blog-post-content h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--space-black-01);
  margin: 32px 0 16px 0;
  font-family: var(--font-text);
}

.blog-post-full .blog-post-content h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--space-black-01);
  margin: 24px 0 12px 0;
  font-family: var(--font-text);
}

.blog-post-full .blog-post-content p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--space-black-01);
}

.blog-post-full .blog-post-content ul {
  margin: 0 0 20px 0;
  padding-left: 32px;
  list-style: none;
}

.blog-post-full .blog-post-content ul li {
  position: relative;
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--space-black-01);
  list-style-position: outside;
}

.blog-post-full .blog-post-content ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 1em;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--space-red-00) 0%, var(--space-purple-00) 100%);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 4px rgba(238, 51, 51, 0.3);
}

.blog-post-full .blog-post-content ul li:hover::before {
  background: linear-gradient(135deg, var(--space-purple-00) 0%, var(--space-red-00) 100%);
  box-shadow: 0 0 8px rgba(102, 51, 238, 0.4);
  transform: translateY(-50%) scale(1.1);
  transition: all 0.2s ease;
}

.blog-post-full .blog-post-content ol {
  margin: 0 0 20px 0;
  padding-left: 32px;
  list-style: none;
  counter-reset: custom-counter;
}

.blog-post-full .blog-post-content ol li {
  position: relative;
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--space-black-01);
  list-style-position: outside;
  counter-increment: custom-counter;
}

.blog-post-full .blog-post-content ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: -24px;
  top: 0.1em;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--space-red-00) 0%, var(--space-purple-00) 100%);
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(238, 51, 51, 0.3);
}

.blog-post-full .blog-post-content ol li:hover::before {
  background: linear-gradient(135deg, var(--space-purple-00) 0%, var(--space-red-00) 100%);
  box-shadow: 0 0 8px rgba(102, 51, 238, 0.4);
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.blog-post-full .blog-post-content li {
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--space-black-01);
}

.blog-post-full .blog-post-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--space-red-00);
  background: rgba(238, 51, 51, 0.05);
  font-style: italic;
}

.blog-post-full .blog-post-content blockquote p {
  margin: 0;
  font-size: 18px;
  color: var(--space-black-01);
}

/* Markdown Generated Elements */
.blog-post-full .blog-post-content code {
  background: rgba(238, 51, 51, 0.1);
  color: var(--space-red-00);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 14px;
}

.blog-post-full .blog-post-content pre {
  background: var(--space-black-02);
  color: var(--white);
  padding: 20px;
  margin: 24px 0;
  overflow-x: auto;
  border-left: 4px solid var(--space-red-00);
}

.blog-post-full .blog-post-content pre code {
  background: none;
  color: var(--white);
  padding: 0;
  border-radius: 0;
  font-size: 14px;
}

.blog-post-full .blog-post-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--space-red-00), var(--space-purple-00));
  margin: 40px 0;
}

.blog-post-full .blog-post-content strong {
  font-weight: 600;
  color: var(--space-black-01);
}

.blog-post-full .blog-post-content em {
  font-style: italic;
  color: var(--space-purple-01);
}

.blog-post-full .blog-post-content a {
  color: var(--space-red-00);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post-full .blog-post-content a:hover {
  color: var(--space-purple-00);
  text-shadow: 0 0 5px rgba(102, 51, 238, 0.5);
}

.blog-post-full .blog-post-footer {
  margin-top: 48px;
  padding: 32px 24px;
  border-top: 1px solid var(--space-grey-00);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.blog-post-author {
  flex: 1;
}

.author-info {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--space-grey-00);
  transition: border-color 0.3s ease;
}

.author-avatar img:hover {
  border-color: var(--space-red-00);
}

.author-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--space-black-01);
}

.author-name a {
  color: var(--space-black-01);
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-name a:hover {
  color: var(--space-red-00);
  text-decoration: underline;
}

.author-avatar a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.author-avatar a:hover {
  transform: scale(1.05);
}

.author-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-bio {
  font-size: 14px;
  color: var(--space-purple-01);
  line-height: 1.5;
}

.blog-post-share {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-post-share h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--space-black-01);
  margin: 0;
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--space-black-01);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--space-grey-00);
  border-radius: 0;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--space-grey-00);
  border-color: var(--space-black-01);
  color: var(--space-black-01);
  transform: translateY(-1px);
}

/* CTA Box */
.blog-cta-box {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--space-black-02) 0%, var(--space-black-01) 100%);
  border: 2px solid var(--space-red-00);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.blog-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--space-red-00), var(--space-purple-00));
  animation: ctaScan 4s ease-in-out infinite;
}

@keyframes ctaScan {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 16px 0;
  font-family: var(--font-headings);
}

.cta-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  margin: 0 0 24px 0;
  opacity: 0.9;
}

.blog-cta-box:hover {
  border-color: var(--space-purple-00);
  box-shadow: 
    0 0 30px rgba(238, 51, 51, 0.3),
    0 0 60px rgba(102, 51, 238, 0.2);
}

.blog-cta-box .cyberpunk-btn {
  margin-top: 8px;
}

/* Related Posts */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--space-grey-00);
}

.related-posts h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--space-black-01);
  margin: 0 0 24px 0;
  font-family: var(--font-headings);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.related-post {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--space-grey-00);
  border-radius: 0;
  transition: all 0.3s ease;
}

.related-post:hover {
  border-color: var(--space-black-01);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 22, 42, 0.1);
}

.related-post-image {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-post-content h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.related-post-content h4 a {
  color: var(--space-black-01);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-content h4 a:hover {
  color: var(--space-red-00);
}

.related-post-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--space-purple-01);
}

/* Smaller screens */
@media (max-width: 1366px) and (min-width: 1024px) {
  .heading-section h1 {
    font-size: 4rem;
    white-space: normal;
    word-break: normal;
  }
}

/* ===== TABLET STYLES (1024px and below) ===== */
@media (max-width: 1024px) {
  /* Navigation */
  nav {
    padding: 32px;
  }

  nav img {
    width: 200px;
    height: 26px;
  }

  /* Footer */
  footer {
    padding: 32px;
    min-height: 94px;
  }

  /* Heading Section */
  .heading-section {
    padding: 40px 40px 0 40px;
    gap: 32px;
  }

  .heading-section h1 {
    font-size: 4rem;
    white-space: normal;
    word-break: normal;
  }

  .heading-section p {
    font-size: 18px;
  }

  /* Content Section */
  .blog-content-section {
    padding: 32px;
    margin: 0 20px;
  }

  /* Blog Header */
  .blog-header {
    margin-bottom: 32px;
  }

  .blog-header h2 {
    font-size: 2.2rem;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
  }

  /* Blog Posts */
  .blog-post-image {
    height: 180px;
  }

  .blog-post-content {
    padding: 20px;
  }

  /* Pagination */
  .pagination-container {
    margin-top: 32px;
    padding-top: 24px;
    gap: 20px;
  }

  .pagination {
    gap: 12px;
  }

  .pagination-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .pagination-number {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Individual Blog Post Page */
  .blog-post-container {
    width: 100%;
  }

  .blog-nav {
    margin-bottom: 24px;
  }

  .blog-post-featured-image {
    height: 300px;
    margin-bottom: 24px;
  }

  .blog-post-full .blog-post-header {
    padding: 0 20px;
    margin-bottom: 24px;
  }

  .blog-post-full .blog-post-content {
    padding: 0 20px;
  }

  .blog-post-full .blog-post-content h2 {
    font-size: 1.75rem;
  }

  .blog-post-full .blog-post-content h3 {
    font-size: 1.35rem;
  }

  .blog-post-full .blog-post-content h4 {
    font-size: 1.15rem;
  }

  .blog-post-full .blog-post-footer {
    padding: 24px 20px;
    gap: 24px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .related-post {
    padding: 14px;
  }

  .related-post-image {
    width: 90px;
    height: 70px;
  }

  .related-post-content h4 {
    font-size: 13px;
  }
}

/* ===== MOBILE STYLES (768px and below) ===== */
@media (max-width: 768px) {
  /* Grid Layout */
  body {
    grid-template-rows: 80px 1fr auto;
  }

  /* Navigation */
  nav {
    padding: 20px 24px;
    height: 80px;
  }

  nav img {
    width: 150px;
    height: 20px;
  }

  nav .cyberpunk-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

    /* Heading Section */
  .heading-block {
    height: 400px;
  }

  .heading-section {
    padding: 60px 24px 0 24px;
    gap: 24px;
  }

  .heading-section h1 {
    font-size: 2rem;
    line-height: 1.2;
    hyphens: none;
    word-break: normal;
    white-space: normal;
  }

  .heading-section p {
    font-size: 14px;
    line-height: 1.5;
    hyphens: none;
    word-break: normal;
  }

  /* Content Block */
  .content-block {
    margin-top: -80px;
    padding-top: 32px;
  }

  .blog-content-section {
    padding: 24px;
    margin: 0 16px;
    border-radius: 0;
  }

  /* Blog Header */
  .blog-header {
    margin-bottom: 24px;
  }

  .blog-header h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  /* Search Bar */
  .blog-search {
    margin-bottom: 20px;
  }

  .cyberpunk-search {
    font-size: 14px;
    padding: 10px 14px;
  }

  /* Filter Buttons */
  .blog-filters {
    gap: 8px;
    margin-bottom: 24px;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Blog Posts */
  .blog-post {
    padding: 0;
  }

  .blog-post-image {
    height: 160px;
  }

  .blog-post-content {
    padding: 20px;
  }

  .blog-post h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .blog-post p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .blog-post-header {
    margin-bottom: 14px;
  }

  .blog-post-date {
    font-size: 12px;
  }

  .tag {
    font-size: 10px;
    padding: 3px 6px;
  }

  .blog-post-footer {
    margin-top: 14px;
    padding-top: 14px;
  }

  .read-more {
    font-size: 12px;
  }

  .read-time {
    font-size: 12px;
  }

  /* Footer */
  footer {
    padding: 24px;
    min-height: 80px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  footer p {
    font-size: 12px;
    order: 2;
  }

  footer .social-section {
    order: 1;
    gap: 20px;
  }

  footer svg {
    width: 20px;
    height: 20px;
  }

  /* Individual Blog Post Page */
  .blog-post-container {
    width: 100%;
  }

  .blog-nav {
    margin-bottom: 20px;
  }

  .blog-post-featured-image {
    height: 250px;
    margin-bottom: 20px;
  }

  .blog-post-full .blog-post-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0 20px;
  }

  .blog-post-meta {
    flex-direction: row;
    gap: 16px;
  }



  .blog-post-full .blog-post-content {
    padding: 0 20px;
  }

  .blog-post-full .blog-post-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .blog-post-full .blog-post-content h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px 0;
  }

  .blog-post-full .blog-post-content h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
  }

  .blog-post-full .blog-post-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .blog-post-full .blog-post-content li {
    font-size: 14px;
    line-height: 1.6;
  }

  .blog-post-full .blog-post-content ul li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  .blog-post-full .blog-post-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
  }

  .blog-post-full .blog-post-content blockquote p {
    font-size: 16px;
  }

  .blog-post-full .blog-post-footer {
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
    padding: 24px 20px;
  }

  /* Author Section - Mobile */
  .author-info {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .author-avatar img {
    width: 50px;
    height: 50px;
  }

  .author-details {
    text-align: center;
  }

  .blog-post-share {
    align-items: flex-start;
  }

  .share-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .share-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Pagination */
  .pagination-container {
    margin-top: 24px;
    padding-top: 20px;
    gap: 16px;
  }

  .pagination-info {
    font-size: 12px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .pagination-btn span:last-child {
    display: none;
  }

  .pagination-btn span:first-child {
    display: block;
  }

  .pagination-numbers {
    gap: 6px;
  }

  .pagination-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .pagination-dots {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* CTA Box */
  .blog-cta-box {
    margin: 32px 0;
    padding: 24px;
  }

  .cta-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .cta-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  /* Related Posts */
  .related-posts {
    margin-top: 32px;
    padding-top: 24px;
  }

  .related-posts h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-post {
    padding: 12px;
  }

  .related-post-image {
    width: 80px;
    height: 60px;
  }

  .related-post-content h4 {
    font-size: 13px;
  }

  .related-post-meta {
    font-size: 11px;
    gap: 12px;
  }

  /* Authentication Forms - Mobile */
  .auth-container {
    padding: 20px 0;
    min-height: 300px;
  }

  .auth-form-wrapper {
    max-width: 350px;
  }

  .auth-form {
    padding: 24px;
    margin: 0 16px;
  }

  .auth-label {
    font-size: 12px;
  }

  .cyberpunk-input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .auth-error {
    font-size: 12px;
  }

  .auth-links {
    margin-top: 24px;
    padding-top: 20px;
  }

  .auth-link {
    font-size: 12px;
  }
}
