/* /app/static/significantstories_com/css/toc.css */

/* General page styling */
.toc-title {
    text-align: center;
    font-family: var(--serif-font);
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

/* Series Card Styling */
.series-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px; /* More rounded corners */
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* More prominent shadow */
}

.series-header h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: left; /* Align series title left */
}

.series-header p {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: -0.5rem;
    text-align: left; /* Align series description left */
    margin-bottom: 1.5rem;
}

/* Topic Accordion Styling */
.topics-container {
    border-top: 1px solid #ecf0f1; /* Separator for first topic */
}

.topic-accordion {
    border-bottom: 1px solid #ecf0f1;
}

.topic-accordion:last-child {
    border-bottom: none; /* No border for the last topic in a series */
}

.topic-accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1rem 0.5rem;
    font-size: 1.2rem;
    font-family: var(--primary-font);
    font-weight: 600;
    color: #34495e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.topic-accordion-header:hover {
    background-color: #f9f9f9;
}

.topic-accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #95a5a6;
    transition: transform 0.3s ease-in-out;
}

.topic-accordion-header.active .topic-accordion-icon {
    transform: rotate(45deg);
}

.topic-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out; /* Only max-height transition */
    padding: 0 1rem; /* Adjust padding to fit chips better */
}

/* Article List (Chips) Styling */
.article-list {
    list-style: none;
    padding: 0.5rem 0 1rem 0; /* Adjusted padding */
    margin: 0;
    display: flex; /* Arrange chips horizontally */
    flex-wrap: wrap; /* Allow chips to wrap */
    gap: 0.75rem; /* Space between chips */
}

.article-list li {
    background-color: #f0f3f6;
    border: 1px solid #dcdfe4;
    border-radius: 10px; /* Rounded chip corners */
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    display: flex; /* For internal badge alignment */
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for chips */
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(10px);
}

.article-list li.visible { /* Staggered animation final state */
    opacity: 1;
    transform: translateY(0);
}

.article-list li:hover {
    background-color: #e8ebed;
    transform: translateY(-2px); /* Lift effect on hover */
}

.article-list li a {
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
    margin-right: 0.5rem; /* Space between title and badge */
}

.article-list li a:hover {
    text-decoration: underline;
}

/* "Start Here" Badge Styling */
.start-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 8px; /* Slightly less rounded than article chips */
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto; /* Push to the right within the flex container */
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent badge text from wrapping */
}

.start-badge.start-here {
    background-color: #2ecc71;
    color: white;
}

.start-badge.or-here {
    background-color: #f1c40f;
    color: #333;
}
