/* ===== HEADER & FOOTER (Plugin CD Manager) ===== */
.cd-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cd-header-wrapper {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cd-branding {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.site-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #0073aa;
}

.site-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.cd-main-nav {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.cd-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.cd-main-nav li a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.cd-main-nav li a:hover {
    color: #0073aa;
}

.cd-main-content {
    flex: 1;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.cd-footer-wrapper {
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 40px 0;
    margin-top: 60px;
}

.cd-site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cd-footer-content {
    color: #666;
    font-size: 14px;
}

.cd-footer-content p {
    margin: 0;
}

.cd-footer-content a {
    color: #0073aa;
    text-decoration: none;
}

.cd-footer-content a:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    background: #222;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .cd-main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .cd-main-nav li {
        border-bottom: 1px solid #eee;
    }

    .cd-main-nav li:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }

    .site-title {
        font-size: 24px;
    }
}

/* ===== PAGE SINGLE CD (DÉTAIL) ===== */
.cd-single {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.cd-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
}

.cd-header h3 {
    margin: 20px 0 10px 0;
}

/* Grille images + infos */
.cd-content {
    margin-bottom: 40px;
}

.cd-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Subtitle */
.cd-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Year */
.cd-year {
    font-size: 13px;
    color: #888;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Description */
.cd-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.cd-description p {
    margin: 0 0 15px 0;
}

/* Images */
.cd-images {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.cd-cover,
.cd-back {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    flex: 1;
    height: 500px;
    background: #fff;
}

.cd-cover:hover,
.cd-back:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cd-cover img,
.cd-back img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Audio player / Playlist */
.cd-tracks {
    margin-top: 40px;
}

.cd-tracks iframe,
.cd-tracks [class*="audiogenerator"],
.cd-tracks [class*="audio"] {
    width: 100%;
    margin-bottom: 15px;
}

/* Back button */
.cd-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.btn-back:hover {
    background: #000;
}

/* ===== LIGHTBOX ===== */
.cd-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cd-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.cd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.cd-lightbox-close:hover {
    opacity: 0.7;
}

.cd-lightbox-link {
    cursor: pointer;
}

.cd-lightbox-link:hover img {
    opacity: 0.8;
}

/* ===== GALERIE CD ===== */
.cd-gallery {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.cd-gallery-1-columns {
    grid-template-columns: repeat(1, 1fr);
}

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

.cd-gallery-3-columns {
    grid-template-columns: repeat(3, 1fr);
}

.cd-gallery-4-columns {
    grid-template-columns: repeat(4, 1fr);
}

.cd-gallery-6-columns {
    grid-template-columns: repeat(6, 1fr);
}

.cd-gallery-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.cd-gallery-item:hover {
    transform: translateY(-5px);
}

.cd-gallery-link {
    display: block;
    text-decoration: none;
}

.cd-gallery-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.cd-gallery-item:hover .cd-gallery-cover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cd-gallery-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
    font-style: italic;
}

.cd-gallery-info {
    padding: 10px 0;
}

.cd-gallery-info h3 {
    margin: 5px 0;
    font-size: 15px;
    line-height: 1.4;
}

.cd-gallery-info h3 a {
    color: #333;
    text-decoration: none;
}

.cd-gallery-info h3 a:hover {
    color: #0073aa;
}

.cd-gallery-artist {
    font-size: 12px;
    color: #666;
    margin: 3px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cd-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cd-header h1 {
        font-size: 28px;
    }

    .cd-images {
        flex-direction: column;
        gap: 20px;
    }

    .cd-cover,
    .cd-back {
        height: auto;
        min-height: 300px;
    }

    /* Galerie responsive */
    .cd-gallery-3-columns,
    .cd-gallery-4-columns,
    .cd-gallery-6-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .cd-gallery-2-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cd-gallery-2-columns,
    .cd-gallery-3-columns,
    .cd-gallery-4-columns,
    .cd-gallery-6-columns {
        grid-template-columns: 1fr;
    }
}

/* ===== COVER/BACK IMAGES (utilisé partout) ===== */
.cd-cover-image,
.cd-back-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 4px;
}

.cd-manager-section {
    margin: 30px 0;
}

.cd-manager-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.cd-images-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cd-image-wrapper {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.cd-image-wrapper img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.cd-tracks-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

/* CD List Styles */
.cd-list-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cd-list-table thead {
    background-color: #f5f5f5;
}

.cd-list-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.cd-list-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.cd-list-table tbody tr:hover {
    background-color: #f9f9f9;
}

.cd-list-table a {
    color: #0073aa;
    text-decoration: none;
}

.cd-list-table a:hover {
    text-decoration: underline;
}
