/* Crosslinking System Styles */

/* Term Links */
.term-link {
    color: #2196f3;
    text-decoration: none;
    border-bottom: 1px dotted #2196f3;
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.term-link:hover {
    color: #1976d2;
    border-bottom: 1px solid #1976d2;
    text-decoration: none;
}

/* Prerequisite Callout */
.prerequisite-callout {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prerequisite-callout h5 {
    color: #1976d2;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.prerequisite-callout ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.prerequisite-callout li {
    margin-bottom: 5px;
}

.prerequisite-callout a {
    color: #1565c0;
    font-weight: 500;
}

.prerequisite-callout a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Related Topics Section */
.related-topics-section {
    background-color: #f5f5f5;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
}

.related-topics-section h4 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    font-size: 1.3rem;
}

.related-topics-section .card {
    border: 1px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.related-topics-section .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.related-topics-section .card-title a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.related-topics-section .card-title a:hover {
    color: #1976d2;
    text-decoration: underline;
}

.related-topics-section .badge {
    font-size: 0.75rem;
    margin-right: 5px;
    padding: 4px 8px;
}

/* Topic Cluster Section */
.topic-cluster-section {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.topic-cluster-section h5 {
    color: #e65100;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.topic-cluster-section .list-group-item {
    border-left: 3px solid #ff9800;
    margin-bottom: 10px;
    transition: background-color 0.2s;
}

.topic-cluster-section .list-group-item:hover {
    background-color: #ffe0b2;
}

.topic-cluster-section .list-group-item h6 {
    color: #f57c00;
    margin-bottom: 5px;
    font-size: 1rem;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: #6c757d;
}

/* Topic Hierarchy */
.topic-hierarchy {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.topic-hierarchy .badge {
    margin: 0 3px;
    padding: 5px 10px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .related-topics-section .col-md-6,
    .related-topics-section .col-lg-4 {
        margin-bottom: 15px;
    }

    .prerequisite-callout,
    .topic-cluster-section {
        padding: 12px;
        margin: 15px 0;
    }

    .breadcrumb {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .related-topics-section h4,
    .topic-cluster-section h5 {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .related-topics-section,
    .topic-cluster-section,
    .prerequisite-callout {
        page-break-inside: avoid;
    }

    .term-link {
        color: #000;
        border-bottom: none;
    }
}
