/* AI Education Page Styles */

/* Full-width layout for How Guides Listen - restores previous full-screen look */
.how-guides-page {
  width: 100%;
  max-width: 100%;
}

.how-guides-container {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 2rem;
  gap: 2rem;
  background-color: #f5f5f0;
  border-radius: 1rem;
  margin: 0;
  box-sizing: border-box;
}

/* When loaded in app-main (SPA partial), ensure scrollable full-width content */
#app-main .how-guides-page,
.app-main .how-guides-page {
  overflow-y: auto;
  height: 100%;
  min-height: 0;
}

#app-main .how-guides-container,
.app-main .how-guides-container {
  max-width: none;
}

/* Nova Introduction Section - Civilization Style Speech Bubble */
.nova-intro-section {
    margin: 2rem 0 3rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #d4af37;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.nova-intro-section::before {
    content: '';
    position: absolute;
    left: 220px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid #d4af37;
}

.nova-intro-section::after {
    content: '';
    position: absolute;
    left: 222px;
    top: 32px;
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-right: 18px solid #f8f9fa;
}

.nova-portrait-container {
    flex-shrink: 0;
}

.nova-portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: cover;
}

.nova-intro-content {
    flex: 1;
    min-width: 0;
}

.nova-intro-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.nova-intro-byline {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
}

.nova-intro-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

.nova-intro-text p {
    margin-bottom: 1rem;
}

.nova-intro-text p:last-child {
    margin-bottom: 0;
}

/* Education Page Header */
.education-header {
    text-align: center;
    margin-bottom: 0;
}

.education-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.education-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* Expanded Guide Cards for Education Page */
.education-guides-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.education-guide-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.education-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #cbd5e0;
}

.education-guide-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.education-guide-card-section {
    margin-bottom: 1.5rem;
}

.education-guide-card-section:last-of-type {
    margin-bottom: 0;
}

.education-guide-card-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-guide-card-section-title i {
    color: #4a5568;
}

.education-guide-card-text {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.education-guide-card-text:last-child {
    margin-bottom: 0;
}

.education-guide-card-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.education-guide-card-list li {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.education-guide-card-list li:last-child {
    margin-bottom: 0;
}

.education-guide-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.education-guide-highlight strong {
    color: #92400e;
}

.education-guide-tip {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

.education-guide-tip em {
    color: #1e40af;
    font-style: italic;
    font-weight: 500;
}

.education-guide-warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

.education-guide-warning strong {
    color: #991b1b;
}

/* Code/Example Blocks */
.education-code-example {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #cbd5e0;
    border-left: 4px solid #6366f1;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    overflow-x: auto;
    color: #1a202c;
    line-height: 1.8;
}

.education-code-example strong {
    color: #6366f1;
    font-weight: 600;
}

.education-code-example-title {
    color: #4a5568;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Why Journaling Helps */
.why-journaling-container {
    background: linear-gradient(180deg, #f5f5f0 0%, #f8f7ef 100%);
}

.why-journaling-page .education-guide-card {
    border-color: #e2e8d8;
}

.why-journaling-page .education-guide-card:hover {
    border-color: #b8c4a8;
}

.why-journaling-accordion {
    margin-top: 1.25rem;
}

.why-journaling-accordion .accordion-item {
    border: 1px solid #d8dfcf;
    border-radius: 0.75rem !important;
    overflow: hidden;
    background: #ffffff;
}

.why-journaling-accordion .accordion-button {
    background: linear-gradient(135deg, #f8faf5 0%, #eef3e7 100%);
    color: #2d3748;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
}

.why-journaling-accordion .accordion-button:not(.collapsed) {
    background: #8b9d83;
    color: #ffffff;
}

.why-journaling-accordion .accordion-button:focus {
    border-color: #8b9d83;
    box-shadow: 0 0 0 0.25rem rgba(139, 157, 131, 0.25);
}

.why-journaling-accordion .accordion-button::after {
    flex-shrink: 0;
}

.why-journaling-accordion .accordion-body {
    color: #4a5568;
    line-height: 1.8;
    padding: 1.25rem 1.5rem;
}

.why-journaling-accordion .accordion-body p {
    margin-bottom: 1rem;
}

.why-journaling-accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

.education-guide-speaker-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.education-guide-speaker-note .education-guide-card-text {
    margin-bottom: 0;
}

.education-guide-speaker-note-coin {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-guide-speaker-note-coin-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d8dfcf;
    box-shadow: 0 4px 10px rgba(45, 55, 72, 0.12);
}

.education-guide-speaker-note-coin-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #d8dfcf;
    background: #eef3e7;
    color: #4a5568;
    display: none;
    align-items: center;
    justify-content: center;
}

.education-guide-speaker-note-coin-fallback i {
    font-size: 1.25rem;
    margin-right: 0;
}

.education-guide-speaker-note-coin-link {
    display: inline-flex;
    flex: 0 0 64px;
    text-decoration: none;
    line-height: 0;
}

.deeper-dive-attribution {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.deeper-dive-speaker-coin {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deeper-dive-speaker-coin-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d8dfcf;
}

.deeper-dive-speaker-coin-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #d8dfcf;
    background: #eef3e7;
    color: #4a5568;
    display: none;
    align-items: center;
    justify-content: center;
}

.deeper-dive-speaker-coin-fallback i {
    font-size: 1.25rem;
    margin-right: 0;
}

.deeper-dive-speaker-coin-link {
    display: inline-flex;
    text-decoration: none;
    line-height: 0;
}

.deeper-dive-attribution .education-guide-card-text {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nova-intro-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .nova-intro-section::before,
    .nova-intro-section::after {
        display: none;
    }
    
    .nova-portrait {
        width: 150px;
        height: 150px;
    }
    
    .education-title {
        font-size: 1.5rem;
    }
    
    .education-guide-card {
        padding: 1.5rem;
    }
    
    .education-guide-card-title {
        font-size: 1.25rem;
    }
    
    .education-guide-card-section-title {
        font-size: 1rem;
    }

    .deeper-dive-attribution {
        gap: 0.625rem;
    }

    .education-guide-speaker-note {
        gap: 0.625rem;
    }
}

@media (max-width: 480px) {
    .nova-intro-section {
        padding: 1rem;
    }
    
    .nova-portrait {
        width: 120px;
        height: 120px;
    }
    
    .education-guide-card {
        padding: 1rem;
    }
    
    .education-title {
        font-size: 1.25rem;
    }

    .education-guide-speaker-note {
        flex-direction: column;
    }
}
