/*
 Theme Name:   OceanWP Child
 Theme URI:    https://example.com
 Description:  Thème enfant pour OceanWP
 Author:       Ton Nom
 Template:     oceanwp
 Version:      1.0.0
*/

/*************************************************
 * Mise en page générale pour le CPT album
 *************************************************/

/* Pleine largeur pour les singles album */
body.single-album #content-wrap .content-area {
    width: 100%;
    padding-right: 0;
    border-right-width: 0;
}

/* Wrapper de la fiche */
body.single-album .album-single {
    max-width: 1000px;
    margin: 0 auto 60px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    color: #0f172a; /* texte principal sombre */
}

/* Paragraphe & listes dans la fiche :
   on écrase les règles OceanWP (.entry p, etc.) */
body.single-album .album-single p,
body.single-album .album-single li {
    font-size: 1em !important;
    color: inherit;
}

/* Liens dans la fiche */
body.single-album .album-single a {
    color: #0c8ec7;
    text-decoration: none;
}
body.single-album .album-single a:hover {
    text-decoration: underline;
}

/* Titres de sections */
.album-section__header {
    margin-bottom: 20px;
}

.album-section__header h2 {
    font-size: 1.6rem;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
}

.album-section__header i[aria-hidden="true"] {
    font-size: 1.4rem;
    color: #0c8ec7;
}

.album-section__subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Petits boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn--outline {
    border-color: #0c8ec7;
    color: #0c8ec7;
    background: transparent;
}

.btn--outline:hover {
    background: #0c8ec7;
    color: #fff;
}

/*************************************************
 * SECTION 1 : HERO ALBUM
 *************************************************/

.album-single__hero {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

.album-single__hero-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.album-single__cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Meta album */
.album-single__meta {
    text-align: left;
}

.album-single__title {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #0f172a;
}

.album-single__artist {
    margin: 0 0 15px;
    font-weight: 600;
    font-size: 1.05rem;
}

.album-single__artist i {
    margin-right: 6px;
    color: #0c8ec7;
}

.album-single__meta-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.album-single__meta-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: #475569;
}

.album-single__meta-list i {
    width: 18px;
    text-align: center;
    color: #0c8ec7;
}

.album-single__meta-list span:first-of-type {
    font-weight: 500;
}

.album-single__rating span {
    font-weight: 700;
    color: #0f172a;
}

.album-single__intro {
    margin-top: 10px;
    font-size: 1rem !important;
    line-height: 1.7;
    color: #0f172a;
}

/*************************************************
 * SECTION 2 : PRESSAGE
 *************************************************/

.album-single__pressing {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.album-single__pressing-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

.album-single__pressing-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.album-single__pressing-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #475569;
}

.album-single__pressing-list i {
    width: 18px;
    text-align: center;
    color: #64748b;
}

.album-single__pressing-list span:first-of-type {
    font-weight: 600;
}

.album-single__pressing-value {
    color: #0f172a;
}

.album-single__pressing-link {
    margin-top: 10px;
}

/*************************************************
 * SECTION 3 : CHRONIQUE + VIDÉO
 *************************************************/

.album-single__review {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
	font-size: 1.4rem !important;
}

.album-single__review-body {

    line-height: 1.8;
    color: #0f172a;
}

/* Vidéo responsive */
.album-single__video {
    margin-top: 25px;
}

.album-single__video h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0f172a;
}

.album-single__video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.album-single__video-embed iframe,
.album-single__video-embed object,
.album-single__video-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*************************************************
 * SECTION 4 : ESPACE UTILISATEURS
 *************************************************/

.album-single__community {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 25px 20px 10px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.album-single__community-inner {
    margin-top: 10px;
}

.album-single__community-intro {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #475569;
}

/* on resserre un peu les commentaires par défaut */
body.single-album #comments {
    margin-top: 10px;
}
body.single-album #comments h3,
body.single-album #reply-title {
    font-size: 1.3rem;
}

/*************************************************
 * RESPONSIVE
 *************************************************/

@media (min-width: 768px) {

    .album-single__hero-inner {
        flex-direction: row;
        align-items: flex-start;
    }

    .album-single__cover {
        flex: 0 0 320px;
    }

    .album-single__meta {
        flex: 1;
        padding-left: 20px;
    }

    .album-single__pressing-grid {
        flex-direction: row;
    }

    .album-single__pressing-col {
        flex: 1;
    }
}

/*************************************************
 * Debug Discogs (visible seulement pour les admins)
 *************************************************/

.discogs-debug {
    margin-top: 20px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #111827;
    color: #e5e7eb;
    font-size: 12px;
    overflow-x: auto;
}
.discogs-debug pre {
    margin: 5px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/*************************************************
 * Galerie Discogs
 *************************************************/

.album-single__gallery {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.album-single__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.album-single__gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    position: relative;
}

.album-single__gallery-item a {
    display: block;
}

.album-single__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.album-single__gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.album-single__gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: #e5e7eb;
}

/*************************************************
 * Tags / styles album (cartouches)
 *************************************************/

.album-single__tags {
    margin: 8px 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.album-single__tags-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;        /* comme les lignes meta au-dessus */
    font-weight: 600;
    color: #475569;
}

.album-single__tags-label i {
    color: #0c8ec7;
}

.album-single__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Cartouches de style */
.album-single__tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid rgba(37,99,235,0.15);
    white-space: nowrap;
    line-height: 1.2;
}

/* Styles : même taille que les infos meta */
body.single-album .album-single__tags-label {
    font-size: 1em;      /* comme les lignes 2011 / Master Discogs */
    font-weight: 600;
    color: #475569;
}

/* Intro un peu plus grande que le corps de texte */
body.single-album .album-single__intro {
    font-size: 1em !important;
    line-height: 1.8;
	font-style: italic;
}

/*************************************************
 * Tracklist Discogs
 *************************************************/

.album-single__tracklist {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

/* Liste principale */
.album-single__tracklist-list {
    list-style: none;       /* on gère la numérotation nous-mêmes */
    margin: 0;
    padding: 0;
}

/* Heading / side (ex : Side A, Side B…) */
.album-single__track-heading {
    margin: 12px 0 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
}

/* Ligne de piste */
.album-single__track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.95rem;
}

/* Partie gauche : position + titre */
.album-single__track-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Position (A1, 1, etc.) */
.album-single__track-pos {
    min-width: 32px;
    font-family: monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
}

/* Titre */
.album-single__track-title {
    font-weight: 500;
    color: #0f172a;
}

/* Durée à droite */
.album-single__track-duration {
    font-family: monospace;
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}

/* Notes de release en dessous de la liste */
.album-single__track-notes {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #475569;
}

