/**
 * GitHub Changelog - Frontend Styles
 */

.github-changelog {
    max-width: 800px;
    margin: 0 auto;
}

.github-changelog-release {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e4e8;
}

.github-changelog-release:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.github-changelog-release-header {
    cursor: pointer;
    list-style: none;
    padding: 0.5rem 0;
    user-select: none;
}

.github-changelog-release-header::-webkit-details-marker {
    display: none;
}

.github-changelog-release-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    display: flex;
    align-items: center;
}

.github-changelog-release-title::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.github-changelog-release[open] .github-changelog-release-title::before {
    transform: rotate(90deg);
}

.github-changelog-release-title a {
    color: inherit;
    text-decoration: none;
}

.github-changelog-release-title a:hover {
    color: #0366d6;
    text-decoration: underline;
}

.github-changelog-prerelease {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #735c0f;
    background-color: #fff5b1;
    border-radius: 2rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.github-changelog-release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #586069;
}

.github-changelog-date {
    display: flex;
    align-items: center;
}

.github-changelog-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.github-changelog-avatar {
    border-radius: 50%;
    vertical-align: middle;
}

.github-changelog-author a {
    color: inherit;
    text-decoration: none;
}

.github-changelog-author a:hover {
    color: #0366d6;
    text-decoration: underline;
}

.github-changelog-release-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #24292e;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.github-changelog-release-body h2,
.github-changelog-release-body h3,
.github-changelog-release-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.github-changelog-release-body h2 {
    font-size: 1.25rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #eaecef;
}

.github-changelog-release-body h3 {
    font-size: 1.1rem;
}

.github-changelog-release-body h4 {
    font-size: 1rem;
}

.github-changelog-release-body p {
    margin: 0 0 1rem 0;
}

.github-changelog-release-body ul,
.github-changelog-release-body ol {
    margin: 0 0 1rem 0;
    padding-left: 2rem;
}

.github-changelog-release-body li {
    margin-bottom: 0.25rem;
}

.github-changelog-release-body code {
    padding: 0.2rem 0.4rem;
    font-size: 0.875em;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
}

.github-changelog-release-body a {
    color: #0366d6;
    text-decoration: none;
}

.github-changelog-release-body a:hover {
    text-decoration: underline;
}

.github-changelog-release-body strong {
    font-weight: 600;
}

/* Error and empty states */
.github-changelog-error,
.github-changelog-empty {
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.github-changelog-error {
    background-color: #ffeef0;
    color: #86181d;
    border: 1px solid #f97583;
}

.github-changelog-empty {
    background-color: #f6f8fa;
    color: #586069;
    border: 1px solid #e1e4e8;
}

/* Responsive styles */
@media (max-width: 768px) {
    .github-changelog {
        padding: 0 1rem;
    }

    .github-changelog-release-title {
        font-size: 1.25rem;
    }

    .github-changelog-release-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .github-changelog-release-body {
        font-size: 0.9375rem;
    }
}
