/* Pluto Notebooks page specific styles (colors come from the variables in main.css) */

section h2 {
    margin-bottom: 25px;
}

section h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
}

/* Introduction content */
.intro-content {
    line-height: 1.7;
}

.intro-content p {
    margin-bottom: 20px;
    color: var(--text);
}

.features-list {
    margin: 20px 0;
    padding-left: 25px;
}

.features-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.features-list strong {
    color: var(--heading);
}

.getting-started {
    background-color: var(--panel);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin: 25px 0;
}

.getting-started ol {
    margin: 15px 0;
    padding-left: 25px;
}

.getting-started li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.getting-started .install-list {
    list-style: disc;
    margin: 8px 0 8px 0;
    padding-left: 22px;
}

.getting-started .install-list li {
    margin-bottom: 6px;
}

.getting-started code {
    overflow-wrap: anywhere;
}

.getting-started code {
    background-color: var(--code-bg);
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--code-text);
}

.useful-links {
    margin-top: 30px;
}

.useful-links ul {
    list-style: none;
    padding-left: 0;
}

.useful-links li {
    margin-bottom: 10px;
}

.useful-links a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.useful-links a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.useful-links i {
    margin-right: 8px;
    width: 16px;
}

/* Accordion */
.subjects-accordion {
    margin-top: 25px;
}

.subject-section {
    margin-bottom: 15px;
    border: 1px solid var(--border-dotted);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--surface);
}

.subject-header {
    background-color: var(--panel);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    user-select: none;
}

.subject-header:hover {
    background-color: var(--panel-hover);
}

.subject-header.active {
    background-color: var(--accent);
    color: var(--on-accent);
}

.subject-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading);
    margin: 0;
}

.subject-header.active .subject-title {
    color: var(--on-accent);
}

.subject-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.subject-header.active .subject-icon {
    transform: rotate(180deg);
    color: var(--on-accent);
}

.subject-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: var(--surface);
}

.subject-content.active {
    max-height: 2000px; /* Adjust based on content */
}

/* Notebooks grid */
.notebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 25px;
}

.notebook-item {
    background-color: var(--surface);
    border: 1px solid var(--border-dotted);
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.notebook-item:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.notebook-item.placeholder {
    background-color: var(--panel);
    border-style: dashed;
    opacity: 0.7;
}

.notebook-item h3 {
    color: var(--heading);
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.notebook-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.notebook-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.notebook-meta span {
    display: inline-block;
    background-color: var(--tag-bg);
    color: var(--heading);
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 5px;
}

.topic {
    background-color: var(--topic-bg) !important;
    color: var(--accent) !important;
}

.difficulty {
    background-color: var(--difficulty-bg) !important;
    color: var(--difficulty-text) !important;
}

.notebook-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notebook-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.notebook-link:hover {
    background-color: var(--accent-hover);
    color: var(--on-accent);
}

.notebook-link i {
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notebooks-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .notebook-links {
        flex-direction: column;
    }

    .notebook-link {
        text-align: center;
    }

    .subject-header {
        padding: 15px;
    }

    .subject-title {
        font-size: 1.1rem;
    }
}
