/* sleep_and_light.css - Law 6 Specific Styles */
/* Theme: Sleep & Light (Lavender, Mint, Coral) */

/* Base Theme - White Background */
/* No special background decoration needed as per user request */

/* Rich Gradient Heading */
.content-block h2 {
    font-size: 1.8rem;
    color: #334155;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.2rem;
    padding-bottom: 0.5rem;
    display: inline-block; /* Aligns underline to text width */
    width: 100%; /* Ensures consistency */
}

/* Vertical Accent Bar */
.content-block h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(180deg, #a78bfa 0%, #6ee7b7 100%); /* Lavender to Mint */
    border-radius: 4px;
}

/* Bottom Gradient Line (Half-width) */
.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem; /* Start after the bar */
    width: 60px; /* Short stylish line */
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    box-shadow: inset 0 0 0 0 #a78bfa; /* Prepare for transition if needed */
}

/* Law 6 Hero: Rich Aurora & Glassmorphism Theme */
.law6-hero-light {
  background: white; /* Maintain white base */
  padding: 2rem; /* Adjusted padding */
  border-radius: 24px;
  text-align: center;
  margin-bottom: 3rem;
  color: #475569;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(167, 139, 250, 0.15); /* Richer shadow */
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px; /* Taller for grandeur */
}

/* Background Effects Container */
.law6-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Aurora Blobs */
.law6-blob {
    position: absolute;
    filter: blur(70px);
    opacity: 0.7;
    animation: floatBlob 12s infinite alternate ease-in-out;
    border-radius: 50%;
}

.blob-1 {
    top: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #e9d5ff 0%, #a78bfa 100%); /* Lavender */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #d1fae5 0%, #6ee7b7 100%); /* Mint */
    animation-delay: 3s;
}

.blob-3 {
    top: 30%;
    right: 15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #fda4af 0%, rgba(255,255,255,0) 70%); /* Coral burst */
    animation-delay: 6s;
    opacity: 0.5;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.1); }
}

/* Glass Card Content */
.hero-inner {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.65); /* Less transparent for readability */
    backdrop-filter: blur(16px); /* Strong blur */
    -webkit-backdrop-filter: blur(16px);
    padding: 4rem 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(167, 139, 250, 0.05);
    max-width: 700px;
    width: 90%;
    transition: transform 0.5s ease;
}

.hero-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(167, 139, 250, 0.1);
}

/* Sparkles */
.law6-sparkles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #fef08a; /* Glow */
    opacity: 0;
    animation: twinkle 4s infinite ease-in-out;
    z-index: 5;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); }
}

.law6-hero-icon {
  color: #a78bfa; /* Soft Lavender */
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.law6-line {
  margin: 1.5rem auto;
  width: 60px;
  background: #fda4af; /* Warm Coral */
  height: 4px;
  border-radius: 2px;
}

/* Insight Box */
.law6-insight-box {
  background: #fdf2f8; /* Very light pink/lavender mix hint */
  padding: 2rem;
  border: none;
  border-left: 5px solid #fda4af; /* Warm Coral */
  margin: 2rem 0;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.law6-insight-icon {
  color: #fda4af;
  font-size: 2rem;
  margin-top: 0.2rem;
  display: block;
}

/* Spiritual Box */
.law6-spiritual-box {
  background: linear-gradient(135deg, #ffffff 0%, #fefaff 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid #e9d5ff; /* Light purple border */
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.08); /* Lavender shadow */
}

.law6-spiritual-note {
  margin-bottom: 1rem;
  color: #7c3aed; /* Stronger purple for header */
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.law6-spiritual-icon {
  color: #a78bfa;
}

.law6-spiritual-space {
  margin-top: 1.5rem;
  font-style: italic;
  color: #64748b;
}

/* Check Card (Calculator) */
.law6-check-card {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  border-radius: 24px;
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.law6-check-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #a78bfa, #6ee7b7);
}

.law6-cycle-number {
  color: #059669; /* Green text */
  font-size: 1.25rem;
  font-weight: 800;
  padding: 0.5rem 1rem;
  background: #ecfdf5; /* Mint bg */
  border-radius: 50px;
  display: inline-block;
  margin: 0.5rem;
  border: 1px solid #6ee7b7;
}

/* Calculator specific styles */
.calc-title {
  color: #334155;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.calc-description {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.law6-calc-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cycle-btn {
  padding: 0.8rem 1.5rem;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  color: #64748b;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.cycle-btn:hover {
  background: #f0fdf4; /* Mint tint */
  border-color: #6ee7b7;
  transform: translateY(-2px);
  color: #059669;
}

.cycle-btn.active {
  background: #10b981; /* Strong mint/emerald */
  color: white;
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

#cycle-result {
  text-align: center;
  min-height: 120px;
  padding: 1.5rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.calc-placeholder {
  color: #94a3b8;
  font-style: italic;
}

/* Calculator Result Styles */
.law6-calc-result-title {
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.law6-calc-result-flex {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.law6-calc-result-item {
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
}

.law6-calc-result-item:nth-child(1) { animation-delay: 0.1s; }
.law6-calc-result-item:nth-child(2) { animation-delay: 0.2s; }
.law6-calc-result-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.law6-calc-result-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.4rem;
}

/* Tip Banner and Habits */
.law6-tip-banner {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  font-weight: 500;
  text-align: center;
  color: #475569;
  border: 1px solid #e2e8f0;
  margin: 3rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
}

.law6-tip-banner i {
    color: #a78bfa;
    margin-right: 8px;
}

.law6-tip-banner div:last-child {
    color: #fbbf24; /* Sun icon stays warm */
}

.law6-tip-banner div:last-child i {
    color: #fbbf24;
}

.mb-half {
  margin-bottom: 0; /* Handled by flex gap now */
}

/* Rich Morning Habits Cards */
.law6-habit-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap; /* Friendly for mobile */
}

.law6-habit-item {
  flex: 1;
  min-width: 280px;
  background: white;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.law6-habit-item:hover {
  transform: translateY(-8px);
}

/* Icon Wrapper */
.habit-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.law6-habit-item:hover .habit-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: white;
}

/* Specific Card Themes */
/* Breakfast - Warm Pink */
.habit-breakfast:hover {
    border-color: #fda4af;
    background: linear-gradient(to bottom right, #fff1f2, #fff);
    box-shadow: 0 10px 30px rgba(253, 164, 175, 0.2);
}

.habit-breakfast .habit-icon-wrapper { color: #f43f5e; background: #ffe4e6; }

/* Sun - Fresh Orange */
.habit-sun:hover {
    border-color: #fdba74;
    background: linear-gradient(to bottom right, #fff7ed, #fff);
    box-shadow: 0 10px 30px rgba(253, 186, 116, 0.2);
}

.habit-sun .habit-icon-wrapper { color: #f59e0b; background: #ffedd5; }

/* Typography */
.habit-step {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.habit-content h3 {
    font-size: 1.3rem;
    color: #334155;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.habit-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Summary Box */
.law6-summary-box {
  background: #f0fdfa; /* Mint/Teal tint */
  border: 1px solid #ccfbf1;
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 4rem 0;
  text-align: center;
}

.law6-summary-title {
  text-align: center;
  font-weight: 800;
  color: #0d9488; /* Teal */
  margin-bottom: 2rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

/* Storytelling Enhancements */
.law6-lead-section {
  text-align: center;
  margin: 4rem 0;
  padding: 0 1rem;
}

.law6-lead-text {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  background: linear-gradient(120deg, #a78bfa 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.law6-sub-lead {
  font-size: 1.15rem;
  color: #64748b;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* Empathy / Checkbox */
.law6-empathy-box {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 4rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); /* Proper float shadow */
}

.law6-check-title {
  text-align: center;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.law6-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.law6-check-item {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  justify-content: center;
  gap: 0.8rem;
  color: #475569;
  font-weight: 600;
  border: 2px solid transparent; /* Prepare for border transition */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 100px;
}

.law6-check-item:hover {
  background: white;
  border-color: #a78bfa;
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.15);
  transform: translateY(-4px);
}

.law6-check-item.active {
  background: white;
  border-color: #6ee7b7; /* Mint border on active */
  box-shadow: 0 4px 12px rgba(110, 231, 183, 0.2);
}

.law6-check-icon {
  color: #cbd5e1;
  font-size: 1.4rem;
  transition: all 0.3s;
}

.law6-check-item.active .law6-check-icon {
  color: #10b981; /* Green check */
  transform: scale(1.2);
}

.law6-check-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.law6-check-answer {
  display: none;
  font-size: 0.95rem;
  color: #059669;
  font-weight: 700;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 2px dashed #a7f3d0;
  width: 100%;
  animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Summary Box */
.law6-summary-box {
  background: #f0fdfa; /* Mint/Teal tint */
  border: 1px solid #ccfbf1;
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.law6-summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #a78bfa, #6ee7b7);
}

.law6-summary-title {
  text-align: center;
  font-weight: 800;
  color: #0d9488; /* Teal */
  margin-bottom: 2rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.summary-list {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0 auto;
    max-width: 600px; /* Constrain width for better centering */
    text-align: left; /* Reset text alignment for list items */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-list li {
    position: relative;
    padding: 1rem 1.5rem 1rem 3rem; /* Space for icon */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    font-weight: 600;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.summary-list li:hover {
    transform: translateX(5px);
    border-color: #6ee7b7;
}

.summary-list li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981; /* Mint Green */
    font-size: 1.1rem;
}

.law6-special-glow {
  text-align: center;
  margin-top: 5rem;
  padding: 5rem 2rem 3rem 2rem;
  background: linear-gradient(to bottom, white, #fdf4ff);
  border-radius: 80px 80px 0 0;
  border-top: 1px solid #fbcfe8;
  position: relative;
}

.law6-special-glow::before {
    content: '★';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fdf4ff;
    padding: 10px;
    font-size: 1.5rem;
    color: #f472b6;
    border-radius: 50%;
}

.law6-message-green {
  font-weight: bold;
  font-size: 1.25rem;
  color: #059669;
  letter-spacing: 0.05em;
}

.law6-message-orange {
  font-size: 1.4rem;
  font-weight: 800;
  color: #db2777; /* Pink/Rose instead of Orange */
  line-height: 1.8;
}

.law6-message-box-center {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: #f0fdf4;
  border-radius: 16px;
  border: 1px dashed #6ee7b7;
}

/* Sidebar Advice Text */
.law6-advice-text {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Navigation & Footer Buttons */
.footer-navigation { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 1.5rem; 
    margin-top: 5rem; 
    flex-wrap: wrap;
}

.back-home-btn {
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem;
    padding: 0.9rem 2.2rem; 
    border-radius: 50px;
    background: white; 
    color: #64748b; 
    text-decoration: none;
    font-weight: 600; 
    border: 2px solid #f1f5f9; 
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.back-home-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: #334155;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-next-chapter { 
    background: #a78bfa; 
    border-color: #a78bfa; 
    color: white; 
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

.btn-next-chapter:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .law6-hero-light {
        padding: 3rem 1.5rem;
    }
    
    .law6-lead-text {
        font-size: 1.6rem;
    }
    
    .footer-navigation {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .back-home-btn {
        width: 100%;
        justify-content: center;
    }
}
