/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.jb-body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.jb-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.jb-main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-hover);
}

/* Header */
.jb-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.jb-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jb-header-logo {
    font-size: 1.5rem;
}

.jb-logo-link {
    display: inline-block;
    color: var(--text-primary);
    font-weight: 700;
}

.jb-logo-text {
    color: var(--text-primary);
}

.jb-logo-highlight {
    color: var(--accent-color);
}

.jb-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
}

.jb-menu-toggle-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.jb-nav-list {
    display: flex;
    list-style: none;
}

.jb-nav-item {
    margin-left: 1.5rem;
}

.jb-nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.jb-nav-link:hover {
    color: var(--text-primary);
}

.jb-nav-link-active {
    color: var(--text-primary);
}

.jb-nav-link-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Hero Section */
.jb-hero-section {
    background: linear-gradient(135deg, var(--surface-color) 0%, #1a2438 100%);
    padding: 4rem 0;
}

.jb-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.jb-hero-content {
    padding-right: 2rem;
}

.jb-hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.jb-hero-highlight {
    color: var(--accent-color);
}

.jb-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.jb-hero-actions {
    display: flex;
    gap: 1rem;
}

.jb-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.jb-hero-visual-element {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    position: relative;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.4; }
}

/* Buttons */
.jb-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.jb-button-primary {
    background-color: var(--accent-color);
    color: white;
}

.jb-button-primary:hover {
    background-color: var(--accent-hover);
    color: white;
}

.jb-button-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.jb-button-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

.jb-button-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.jb-button-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Section Styles */
.jb-section {
    padding: 4rem 0;
}

.jb-section-alt {
    background-color: var(--surface-color);
}

.jb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.jb-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.jb-section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.jb-section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.jb-section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Release Card */
.jb-release-card {
    background-color: var(--surface2-color);
    border-radius: 8px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.jb-release-info {
    padding-right: 1rem;
}

.jb-release-badge {
    display: inline-block;
    background-color: var(--accent2-color);
    color: var(--bg-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.jb-release-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.jb-release-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.jb-release-actions {
    display: flex;
    gap: 1.5rem;
}

.jb-release-link {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.25rem;
}

.jb-release-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.jb-release-link:hover::after {
    width: 100%;
}

.jb-release-art {
    display: flex;
    justify-content: center;
}

.jb-release-art-placeholder {
    width: 250px;
    height: 250px;
    background-color: var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.jb-release-art-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, var(--accent-color) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.jb-release-art-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.jb-release-art-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.jb-release-art-subtext {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.5rem;
}

/* News Grid */
.jb-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Concerts Preview */
.jb-concerts-preview {
    max-width: 800px;
    margin: 0 auto;
}

.jb-concert-card {
    background-color: var(--surface2-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.jb-concert-card-featured {
    border-left-color: var(--warning-color);
}

.jb-concert-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background-color: var(--surface-color);
    border-radius: 4px;
    margin-right: 1.5rem;
    min-width: 70px;
}

.jb-concert-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.jb-concert-month {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.jb-concert-info {
    flex: 1;
}

.jb-concert-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.jb-concert-location {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.jb-concert-tags {
    display: flex;
    gap: 0.5rem;
}

.jb-concert-tag {
    display: inline-block;
    background-color: var(--surface-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.jb-concert-tag-accent {
    background-color: var(--accent-color);
    color: white;
}

.jb-concert-link {
    color: var(--accent-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 2px solid var(--border-color);
}

.jb-concert-link:hover {
    border-color: var(--accent-color);
}

.jb-concerts-list {
    display: grid;
    gap: 1rem;
}

.jb-concert-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--surface2-color);
    border-radius: 4px;
}

.jb-concert-item-date {
    font-weight: 700;
    min-width: 60px;
    margin-right: 1rem;
}

.jb-concert-item-info {
    flex: 1;
}

.jb-concert-item-title {
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.jb-concert-item-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.jb-concert-item-button {
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.jb-concert-item-button:hover {
    background-color: var(--accent-hover);
    color: white;
}

/* Media Grid */
.jb-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.jb-media-item {
    background-color: var(--surface2-color);
    border-radius: 8px;
    overflow: hidden;
}

.jb-media-item-large {
    grid-column: span 2;
}

.jb-media-preview {
    height: 200px;
    background-color: var(--border-color);
    position: relative;
}

.jb-media-item-large .jb-media-preview {
    height: 250px;
}

.jb-media-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jb-media-play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.jb-media-info {
    padding: 1.5rem;
}

.jb-media-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.jb-media-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Divider */
.jb-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 3rem 0;
}

/* Footer */
.jb-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.jb-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.jb-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.jb-footer-section {
    display: flex;
    flex-direction: column;
}

.jb-footer-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.jb-footer-subheading {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.jb-footer-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.jb-social-links {
    display: flex;
    gap: 1rem;
}

.jb-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--surface2-color);
    border-radius: 50%;
    color: var(--text-secondary);
}

.jb-social-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.jb-social-icon {
    width: 20px;
    height: 20px;
}

.jb-footer-list {
    list-style: none;
}

.jb-footer-list-item {
    margin-bottom: 0.75rem;
}

.jb-footer-label {
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.125rem;
}

.jb-footer-value {
    color: var(--text-primary);
}

.jb-footer-link {
    color: var(--text-secondary);
}

.jb-footer-link:hover {
    color: var(--accent-color);
}

.jb-footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.jb-footer-copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.jb-footer-url {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .jb-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .jb-hero-content {
        padding-right: 0;
    }

    .jb-hero-actions {
        justify-content: center;
    }

    .jb-release-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .jb-release-info {
        padding-right: 0;
    }

    .jb-release-actions {
        justify-content: center;
    }

    .jb-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jb-media-item-large {
        grid-column: span 2;
    }

    .jb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .jb-menu-toggle {
        display: flex;
    }

    .jb-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        border-top: 1px solid var(--border-color);
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .jb-nav.jb-nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .jb-nav-list {
        flex-direction: column;
        align-items: center;
    }

    .jb-nav-item {
        margin: 0.5rem 0;
    }

    .jb-hero-title {
        font-size: 2.5rem;
    }

    .jb-media-grid {
        grid-template-columns: 1fr;
    }

    .jb-media-item-large {
        grid-column: span 1;
    }

    .jb-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .jb-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .jb-hero-title {
        font-size: 2rem;
    }

    .jb-section-title {
        font-size: 2rem;
    }

    .jb-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .jb-button {
        width: 100%;
        max-width: 250px;
    }

    .jb-concert-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .jb-concert-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .jb-concert-link {
        margin-top: 1rem;
        align-self: flex-start;
    }
}

/* List page styles */
.jb-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.jb-page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.jb-page-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.jb-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.jb-list-card {
    background-color: var(--surface2-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jb-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.jb-list-card-image {
    height: 180px;
    overflow: hidden;
}

.jb-list-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jb-list-card:hover .jb-list-card-image img {
    transform: scale(1.05);
}

.jb-list-card-body {
    padding: 1.5rem;
}

.jb-list-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.jb-list-card-link {
    color: var(--text-primary);
}

.jb-list-card-link:hover {
    color: var(--accent-color);
}

.jb-list-card-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.jb-list-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Blog page styles */
.jb-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.jb-blog-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.jb-blog-card:hover {
    transform: translateY(-5px);
}

.jb-blog-card-image {
    height: 200px;
    overflow: hidden;
}

.jb-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jb-blog-card:hover .jb-blog-card-image img {
    transform: scale(1.05);
}

.jb-blog-card-body {
    padding: 1.5rem;
}

.jb-blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.jb-blog-card-link {
    color: var(--text-primary);
}

.jb-blog-card-link:hover {
    color: var(--accent-color);
}

.jb-blog-card-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.jb-blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.jb-blog-card-date {
    color: var(--text-muted);
}

.jb-blog-card-readmore {
    color: var(--accent-color);
    font-weight: 600;
}

.jb-pagination-wrapper {
    text-align: center;
}

/* Article page styles */
.jb-article {
    padding: 4rem 0;
}

.jb-article-hero {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.jb-article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.jb-article-hero-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.jb-article-content {
    max-width: 800px;
    margin: 0 auto;
}

.jb-article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.jb-article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.jb-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.jb-article-categories {
    display: flex;
    gap: 0.5rem;
}

.jb-article-category {
    background-color: var(--surface2-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.jb-article-category:hover {
    background-color: var(--accent-color);
    color: white;
}

.jb-article-body {
    line-height: 1.8;
}

.jb-article-body h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.jb-article-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.jb-article-body p {
    margin-bottom: 1.5rem;
}

.jb-article-body ul, .jb-article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.jb-article-body li {
    margin-bottom: 0.5rem;
}

.jb-article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Related articles */
.jb-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.jb-related-card {
    background-color: var(--surface2-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.jb-related-card:hover {
    transform: translateY(-5px);
}

.jb-related-card-image {
    height: 150px;
    overflow: hidden;
}

.jb-related-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jb-related-card:hover .jb-related-card-img {
    transform: scale(1.05);
}

.jb-related-card-body {
    padding: 1rem;
}

.jb-related-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.jb-related-card-link {
    color: var(--text-primary);
}

.jb-related-card-link:hover {
    color: var(--accent-color);
}

.jb-related-card-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.page-item {
    margin: 0 0.25rem;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--surface2-color);
    color: var(--text-secondary);
    border-radius: 4px;
    font-weight: 600;
}

.page-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--accent-color);
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Markdown body styles for content */
.markdown-body {
    font-family: var(--font-main);
    line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.markdown-body h1 { font-size: 2.5rem; }
.markdown-body h2 { font-size: 2rem; }
.markdown-body h3 { font-size: 1.5rem; }
.markdown-body h4 { font-size: 1.25rem; }
.markdown-body h5 { font-size: 1rem; }
.markdown-body h6 { font-size: 0.875rem; }

.markdown-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.markdown-body a {
    color: var(--accent-color);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.markdown-body code {
    background-color: var(--surface2-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

.markdown-body pre {
    background-color: var(--surface2-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.markdown-body th,
.markdown-body td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.markdown-body th {
    background-color: var(--surface2-color);
    font-weight: 700;
}

.markdown-body tr:nth-child(even) {
    background-color: var(--surface-color);
}

/* Responsive adjustments for markdown */
@media (max-width: 768px) {
    .markdown-body h1 { font-size: 2rem; }
    .markdown-body h2 { font-size: 1.75rem; }
    .markdown-body h3 { font-size: 1.5rem; }

    .jb-article-title {
        font-size: 2rem;
    }

    .jb-list-grid,
    .jb-blog-grid,
    .jb-related-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BLOG: subtitle exists in HTML but not styled
   ========================================================= */
.jb-page-subtitle {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* =========================================================
   CONTENT TABLES (global for articles/pages)
   Works even when content is NOT inside .markdown-body
   ========================================================= */
.jb-main article table,
.jb-main section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface2-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.25rem 0 1.75rem;
}

.jb-main article caption,
.jb-main section caption {
    caption-side: top;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.25rem 0 0.75rem;
}

.jb-main article thead th,
.jb-main section thead th {
    background: var(--surface-color);
    color: var(--text-primary);
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.jb-main article th,
.jb-main article td,
.jb-main section th,
.jb-main section td {
    padding: 0.75rem 1rem;
    vertical-align: top;
}

.jb-main article tbody td,
.jb-main section tbody td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.jb-main article tbody tr:last-child td,
.jb-main section tbody tr:last-child td {
    border-bottom: none;
}

.jb-main article tbody tr:nth-child(odd),
.jb-main section tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.jb-main article tbody tr:hover,
.jb-main section tbody tr:hover {
    background: rgba(124, 92, 255, 0.08);
}

/* mobile: allow horizontal scroll without changing HTML */
@media (max-width: 768px) {
    .jb-main article table,
    .jb-main section table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================================
   LYRICS / PREFORMATTED TEXT (works for lyrics pages)
   ========================================================= */
.jb-main article pre,
.jb-main section pre {
    margin: 1rem 0 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--surface2-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.8;
    font-size: 0.95rem;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* nicer inline code outside markdown-body */
.jb-main article code,
.jb-main section code {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

/* =========================================================
   PAGINATION (upgrade your existing .pagination styles)
   Compatible with current HTML structures: .pagination, .page-item, .page-link
   ========================================================= */
.jb-pagination-wrapper .pagination,
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-item {
    margin: 0; /* kill old spacing */
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 42px;
    padding: 0 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--surface2-color);
    color: var(--text-secondary);
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-link:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-1px);
    background: rgba(124, 92, 255, 0.08);
}

.page-item.active .page-link {
    background: var(--accent-color);
    border-color: transparent;
    color: #fff;
}

.page-item.disabled .page-link {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.page-link:focus-visible {
    outline: 2px solid rgba(124, 92, 255, 0.55);
    outline-offset: 2px;
}
