@import url('style.css');
/* Import variables and base styles */

/* === PROGRESS BAR === */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-violet), var(--primary-fuchsia), var(--accent-cyan));
  width: 0%;
  box-shadow: 0 0 10px var(--primary-violet);
  transition: width 0.1s;
}

/* === POST LAYOUT === */
body {
  background-color: var(--bg-dark);
}

.post-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.post-article {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Decorative Glow */
.post-article::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.post-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 2rem;
}

.post-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #a3a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-meta strong {
  color: var(--primary-fuchsia);
}

/* === CONTENT STYLES === */
.post-body {
  font-size: 1.1rem;
  color: #d4d4d4;
  line-height: 1.8;
}

.post-body h2 {
  font-size: 2rem;
  color: var(--primary-violet);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-body h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body strong {
  color: #fff;
}

/* === CODE BLOCKS (Mac Terminal Style) === */
pre {
  background: #0e0e0e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  /* Top padding for window controls */
  position: relative;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.95rem;
  color: #a5f3fc;
  /* Cyan-ish text */
}

pre::before {
  content: '';
  /* Traffic lights */
  position: absolute;
  top: 15px;
  left: 15px;
  width: 12px;
  height: 12px;
  background: #ff5f56;
  border-radius: 50%;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

pre::after {
  content: 'CSS / HTML';
  /* Label (optional) */
  position: absolute;
  top: 10px;
  right: 15px;
  color: #555;
  font-size: 0.8rem;
  font-family: var(--font-main);
  font-weight: 600;
}

code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary-fuchsia);
  font-size: 0.9em;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

/* === BUTTONS & EXTRAS === */
.exercise-button {
  margin-top: 3rem;
  text-align: center;
}

.btn-exercise {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-violet), var(--primary-fuchsia));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4);
  transition: var(--transition);
}

.btn-exercise:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.6);
}

.back-link {
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .post-article {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 2.2rem;
  }
}