/**
 * Style dla pojedynczego artykułu blogowego
 * Futurystyczny design w stylu głównej strony
 */

:root {
  --single-blog-neon-cyan: #00f5ff;
  --single-blog-neon-purple: #8b5cf6;
  --single-blog-neon-pink: #ff00aa;
  --single-blog-bg-dark: #0a0a0f;
  --single-blog-text-primary: #e4e4e7;
  --font-display: 'Orbitron', 'Roboto', 'Share Tech Mono', sans-serif;
  --font-body: 'Lexend', 'Roboto', sans-serif;
}

.single-blog-wrap {
  position: relative;
  min-height: 100vh;
  background: var(--single-blog-bg-dark);
  color: var(--single-blog-text-primary);
  overflow-x: hidden;
}

/* ===== Spine (linia boczna) ===== */
.single-blog-spine {
  position: fixed;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 1;
  pointer-events: none;
}

.single-blog-spine-line {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--single-blog-neon-cyan) 20%,
    var(--single-blog-neon-cyan) 80%,
    transparent 100%
  );
  opacity: 0.3;
}

/* ===== Grid Overlay ===== */
.single-blog-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
  animation: single-blog-grid-pulse 4s ease-in-out infinite;
}

@keyframes single-blog-grid-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ===== Główna zawartość ===== */
.single-blog-main {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ===== Header Artykułu ===== */
.single-blog-header {
  margin-bottom: 4rem;
}

.single-blog-header-inner {
  position: relative;
}

.single-blog-badge,
.single-blog-category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--single-blog-neon-purple);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.single-blog-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--single-blog-neon-cyan);
  text-shadow: 
    0 0 30px rgba(0, 245, 255, 0.6),
    0 0 60px rgba(0, 245, 255, 0.3);
  margin: 2rem 0;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.single-blog-featured-image {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  overflow: hidden;
  border: 2px solid rgba(0, 245, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.2);
}

.single-blog-image {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%) contrast(1.1) brightness(0.9);
  transition: filter 0.3s ease;
}

.single-blog-featured-image:hover .single-blog-image {
  filter: grayscale(0%) contrast(1.2) brightness(1);
}

.single-blog-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(0, 245, 255, 0.15) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.single-blog-image-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--single-blog-neon-cyan);
  background: rgba(0, 0, 0, 0.9);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 245, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

/* ===== Treść Artykułu ===== */
.single-blog-content-wrapper {
  margin-top: 4rem;
}

.single-blog-content {
  max-width: 900px;
  margin: 0 auto;
}

.single-blog-entry-content {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--single-blog-text-primary);
}

.single-blog-entry-content p {
  margin-bottom: 1.5rem;
}

.single-blog-entry-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--single-blog-neon-cyan);
  margin: 3rem 0 1.5rem;
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.single-blog-entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--single-blog-neon-purple);
  margin: 2rem 0 1rem;
}

.single-blog-entry-content a {
  color: var(--single-blog-neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
  transition: all 0.3s ease;
}

.single-blog-entry-content a:hover {
  color: var(--single-blog-neon-pink);
  border-bottom-color: var(--single-blog-neon-pink);
  text-shadow: 0 0 10px rgba(255, 0, 170, 0.5);
}

.single-blog-entry-content ul,
.single-blog-entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.single-blog-entry-content li {
  margin-bottom: 0.75rem;
}

.single-blog-entry-content blockquote {
  border-left: 3px solid var(--single-blog-neon-cyan);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--single-blog-text-primary);
  opacity: 0.9;
  background: rgba(0, 245, 255, 0.05);
  padding: 1.5rem 2rem;
}

.single-blog-entry-content code {
  font-family: 'Share Tech Mono', monospace;
  background: rgba(0, 245, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  color: var(--single-blog-neon-cyan);
  font-size: 0.9em;
}

.single-blog-entry-content pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

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

.single-blog-entry-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border: 1px solid rgba(0, 245, 255, 0.2);
}

/* ===== Footer Artykułu ===== */
.single-blog-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 245, 255, 0.2);
}

.single-blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.single-blog-date,
.single-blog-categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.single-blog-categories {
  margin-left: auto;
  text-align: right;
}

.single-blog-meta-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--single-blog-neon-purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.single-blog-meta-value {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--single-blog-text-primary);
}

.single-blog-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.single-blog-category-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--single-blog-neon-cyan);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.05);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.single-blog-category-link:hover {
  color: var(--single-blog-neon-pink);
  border-color: var(--single-blog-neon-pink);
  background: rgba(255, 0, 170, 0.1);
  box-shadow: 0 0 15px rgba(255, 0, 170, 0.3);
}

/* ===== Sekcja Podobnych Artykułów ===== */
.single-blog-related {
  margin-top: 6rem;
  padding: 4rem 0;
  border-top: 2px solid rgba(0, 245, 255, 0.3);
}

.single-blog-related-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.single-blog-related-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--single-blog-neon-cyan);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

/* ===== Slider ===== */
.single-blog-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.single-blog-slider {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

.single-blog-slide {
  flex: 0 0 calc(33.333% - 1.33rem);
  min-width: 0;
}

.single-blog-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.single-blog-slide-link:hover {
  border-color: var(--single-blog-neon-pink);
  box-shadow: 
    0 0 20px rgba(255, 0, 170, 0.3),
    0 0 40px rgba(255, 0, 170, 0.1);
  transform: translateY(-5px);
}

.single-blog-slide-thumb {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.single-blog-slide-thumb--no-image {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.single-blog-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.2) brightness(0.8);
  transition: filter 0.3s ease;
}

.single-blog-slide-link:hover .single-blog-slide-image {
  filter: grayscale(0%) contrast(1.3) brightness(1);
}

.single-blog-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.3) 0%,
    rgba(0, 245, 255, 0.2) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.single-blog-slide-link:hover .single-blog-slide-overlay {
  opacity: 0.8;
}

.single-blog-slide-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--single-blog-neon-cyan);
  background: rgba(0, 0, 0, 0.8);
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(0, 245, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.single-blog-slide-content {
  padding: 1.5rem;
}

.single-blog-slide-meta {
  margin-bottom: 0.75rem;
}

.single-blog-slide-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--single-blog-neon-purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.single-blog-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: var(--single-blog-neon-cyan);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.single-blog-slide-link:hover .single-blog-slide-title {
  color: var(--single-blog-neon-pink);
  text-shadow: 0 0 20px rgba(255, 0, 170, 0.6);
  animation: single-blog-title-glitch 0.3s ease;
}

@keyframes single-blog-title-glitch {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.single-blog-slide-excerpt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--single-blog-text-primary);
  line-height: 1.6;
  opacity: 0.85;
}

/* ===== Nawigacja Slidera ===== */
.single-blog-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 245, 255, 0.1);
  border: 2px solid rgba(0, 245, 255, 0.3);
  color: var(--single-blog-neon-cyan);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.single-blog-slider-nav:hover {
  background: var(--single-blog-neon-cyan);
  color: var(--single-blog-bg-dark);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.6);
}

.single-blog-slider-prev {
  left: -70px;
}

.single-blog-slider-next {
  right: -70px;
}

.single-blog-slider-nav-icon {
  line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1400px) {
  .single-blog-slide {
    flex: 0 0 calc(50% - 1rem);
  }
  
  .single-blog-slider-prev {
    left: 1rem;
  }
  
  .single-blog-slider-next {
    right: 1rem;
  }
}

@media (max-width: 1024px) {
  .single-blog-main {
    padding: 3rem 1.5rem;
  }
  
  .single-blog-slide {
    flex: 0 0 calc(50% - 1rem);
  }
  
  .single-blog-spine {
    left: 0.75rem;
  }
}

@media (max-width: 768px) {
  .single-blog-slide {
    flex: 0 0 100%;
  }
  
  .single-blog-meta {
    grid-template-columns: 1fr;
  }
  
  .single-blog-slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .single-blog-slider-prev {
    left: 0.5rem;
  }
  
  .single-blog-slider-next {
    right: 0.5rem;
  }
}
