/**
 * Tutorial Page Styles
 */

/* Tutorial Hero */
.tutorial-hero {
  background: linear-gradient(135deg, rgba(33, 73, 69, 0.85) 0%, rgba(33, 73, 69, 0.9) 100%),
              url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 140px 0 60px 0;
  text-align: center;
  position: relative;
  min-height: 300px;
}

.tutorial-hero .hero-overlay {
  position: relative;
  z-index: 2;
}

.tutorial-hero .page-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.tutorial-hero .page-subtitle {
  font-size: 22px;
  color: var(--white);
  opacity: 0.98;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

/* Tutorial Content */
.tutorial-content {
  background: var(--cream);
  padding: var(--section-padding);
  min-height: 100vh;
}

.tutorial-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar */
.tutorial-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.tutorial-toc {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tutorial-toc h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-purple);
}

.tutorial-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tutorial-toc ul li {
  margin-bottom: 8px;
}

.tutorial-toc ul li a {
  display: block;
  padding: 8px 12px;
  color: var(--text-body);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.tutorial-toc ul li a:hover {
  background: var(--cream);
  color: var(--dark-green);
  transform: translateX(4px);
}

/* Main Content */
.tutorial-main {
  background: transparent;
}

.tutorial-section {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}

.tutorial-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-purple);
}

/* Tutorial Cards */
.tutorial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-purple);
}

.tutorial-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 16px;
}

.tutorial-card p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tutorial-card p:last-child {
  margin-bottom: 0;
}

.tutorial-card ol,
.tutorial-card ul {
  color: var(--text-body);
  line-height: 1.8;
  margin-left: 24px;
  margin-bottom: 16px;
}

.tutorial-card ol li,
.tutorial-card ul li {
  margin-bottom: 8px;
}

.tutorial-card ol li ul,
.tutorial-card ul li ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

.tutorial-card strong {
  color: var(--dark-green);
  font-weight: 600;
}

.tutorial-card code {
  background: var(--cream);
  color: var(--primary-purple);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
}

/* Tutorial Tips */
.tutorial-tip {
  background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
  border-left: 4px solid #4CAF50;
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 16px;
}

.tutorial-tip p,
.tutorial-tip strong {
  color: #1B5E20;
}

.tutorial-tip code {
  background: var(--white);
  color: #1B5E20;
}

/* Tip Cards */
.tutorial-tip-card {
  background: var(--white);
  color: var(--text-body);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(182, 149, 179, 0.3);
  border-left: 4px solid var(--primary-purple);
}

.tutorial-tip-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 12px;
}

.tutorial-tip-card p,
.tutorial-tip-card li {
  color: var(--text-body);
  opacity: 1;
}

.tutorial-tip-card ul {
  margin-left: 24px;
}

.tutorial-tip-card a {
  color: var(--primary-purple);
  text-decoration: underline;
  font-weight: 600;
}

.tutorial-tip-card a:hover {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
  .tutorial-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tutorial-sidebar {
    position: static;
    order: -1;
  }

  .tutorial-toc {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .tutorial-hero {
    padding: 100px 0 60px 0;
    min-height: 280px;
  }

  .tutorial-hero .page-title {
    font-size: 36px;
    letter-spacing: 1px;
  }

  .tutorial-hero .page-subtitle {
    font-size: 18px;
  }

  .tutorial-section h2 {
    font-size: 26px;
  }

  .tutorial-card h3 {
    font-size: 20px;
  }

  .tutorial-card {
    padding: 20px;
  }

  .tutorial-tip-card {
    padding: 20px;
  }
}

/* Password Protection Form Styling */
.post-password-form {
  background: linear-gradient(135deg, #214945 0%, #2a5f5a 50%, #336b66 100%);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  margin: 60px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 4px solid var(--dark-green);
}

.post-password-form p {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.post-password-form label {
  display: block;
  text-align: left;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.post-password-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--dark-green);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.post-password-form input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(182, 149, 179, 0.1);
}

.post-password-form input[type="submit"] {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-pink) 100%);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.post-password-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182, 149, 179, 0.4);
}
