/* ===================================
   Content Page Specific Styles
   =================================== */

.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--text-medium);
}

.content-page {
    padding: 4rem 0;
    background: transparent;
    min-height: calc(100vh - 80px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-header h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.content-card {
    background: var(--bg-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.content-card h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
}

.content-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.content-card h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.content-card h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.content-card p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

.content-card ul,
.content-card ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-medium);
}

.content-card li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.content-card a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.content-card a:hover {
    border-bottom-color: var(--primary-color);
}

.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.content-card blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--bg-light);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-medium);
}

/* Book Cover Card */
.book-cover-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin: 2rem auto;
    max-width: 400px;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.book-cover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.book-cover-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.book-cover-card .book-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 1rem;
    font-weight: 700;
}

/* Related Topics Section */
.related-topics {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 16px;
}

.related-topics h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-icon {
    font-size: 2rem;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.related-card:hover .related-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: scale(1.1);
}

.related-title {
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    font-size: 1.05rem;
}

/* Image with caption */
.image-with-caption {
    margin: 2rem 0;
    text-align: center;
}

.image-with-caption img {
    margin-bottom: 1rem;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
}

.highlight-box h4 {
    color: var(--text-dark);
    margin-top: 0;
}

/* Info boxes */
.info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.info-box h4 {
    color: var(--text-dark);
    margin-top: 0;
}

/* Responsive Design for Content Pages */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .content-card h2 {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .content-card {
        padding: 1.25rem;
    }
    
    .content-card p {
        font-size: 1rem;
    }
}


/* Orbit simulation styles */
.page-header .page-lead {
    max-width: 720px;
    margin: 0.75rem auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.orbit-simulation {
    position: relative;
    width: clamp(240px, 70vw, 380px);
    aspect-ratio: 1;
    margin: 2rem auto;
    padding: clamp(1.5rem, 5vw, 2.75rem);
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0%, rgba(224, 242, 254, 0.95) 55%, rgba(191, 219, 254, 0.75) 100%);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.orbit-simulation {
    --orbit-diameter: calc(100% - clamp(2.5rem, 8vw, 4.25rem));
}

.orbit-trail,
.orbit-path {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--orbit-diameter);
    height: var(--orbit-diameter);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-trail {
    border: 2px dashed rgba(59, 130, 246, 0.35);
    box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.08);
}

.orbit-path {
    animation: orbit-rotation 12s linear infinite;
}

.sun {
    position: absolute;
    width: clamp(68px, 20vw, 120px);
    height: clamp(68px, 20vw, 120px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fde68a 0%, #fbbf24 45%, #f59e0b 80%);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.45), 0 0 80px rgba(251, 191, 36, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
}

.earth {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: clamp(26px, 8vw, 48px);
    height: clamp(26px, 8vw, 48px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #bbf7d0 0%, #34d399 40%, #047857 90%);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.earth::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 65% 35%, rgba(14, 165, 233, 0.7) 0%, rgba(14, 165, 233, 0.05) 70%, rgba(14, 165, 233, 0) 100%);
    mix-blend-mode: screen;
}

@keyframes orbit-rotation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.simulation-caption {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
}

.info-card {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(191, 219, 254, 0.9) 100%);
    border-left-color: rgba(59, 130, 246, 0.45);
}

.info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
    .orbit-path {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 480px) {
    .simulation-caption {
        font-size: 0.9rem;
    }

    .info-links {
        flex-direction: column;
        align-items: stretch;
    }
}
