/*
Theme Name: Spark Metal Universe
Description: Cadre steampunk et catalogue WordPress de Phil Spark.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: spark-metal-universe
*/

.section-title .screen-reader-text {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.cms-content { padding: 12px 20px 42px; }
.cms-content img { max-width: 100%; height: auto; }
.cms-content .wp-block-gallery, .cms-content .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.cms-content .wp-block-gallery figure { flex: 1 1 20%; }
.record-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.record-card {
    border: 4px ridge #bc8247;
    border-radius: 9px;
    background: linear-gradient(#35271d, #141717);
    box-shadow: inset 0 0 0 1px #161110, 0 3px 8px #0009;
    overflow: hidden;
    text-align: center;
}
.record-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.record-card h2 { font-size: 18px; margin: 8px; }
.record-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 0 6px 8px; }
.record-links a {
    border: 1px solid #a46e3e;
    border-radius: 5px;
    padding: 4px 8px;
    color: #f4dfbd;
    background: #251c17;
}
.player-overlay {
    left: 18px;
    top: 386px;
    width: 188px;
    height: 248px;
    padding: 9px 11px 8px;
    border: 1px solid #684021;
    border-radius: 13px;
    background: radial-gradient(ellipse at top, #39291e, #1a1512 56%, #100e0d);
    box-shadow: inset 0 0 14px #000b;
    pointer-events: auto;
}
.audio-title {
    margin: 0 0 9px;
    color: #f4d8aa;
    font-size: 19px;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 2px #000;
}
.player-overlay select {
    width: 100%;
    padding: 5px 6px;
    color: #f8dfaf;
    background: #231912;
    border: 1px solid #a56c38;
    border-radius: 4px;
    font: 13px Georgia, serif;
}
.player-overlay .waveform {
    height: 43px;
    margin: 8px 0 0;
    background: linear-gradient(#151211, #21160f);
    border-block: 1px solid #694421;
}
.player-overlay .audio-actions {
    gap: 6px;
    margin-top: 9px;
}
.player-overlay .audio-actions button {
    flex: 1;
    min-width: 0;
    min-height: 34px;
    padding: 0;
    border: 1px solid #9d6737;
    border-radius: 4px;
    background: linear-gradient(#58391f, #211711);
    box-shadow: inset 0 1px #bf8648, 0 2px 3px #0008;
}
.player-overlay #playButton {
    flex: 1.3;
    color: #231208;
    background: linear-gradient(#f1ba67, #b46a2a);
}
.player-overlay .audio-progress { padding-top: 8px; }
.player-overlay .audio-progress input { flex: 1; width: auto; }
#sparkAudioStatus, .audio-empty { font-size: 13px; margin: 5px 0 0; }

/* Reuse the corners and copper edges from the approved album artwork. */
[data-section="discography"] .cms-content .wp-block-gallery.has-nested-images {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    width: 100%;
}
[data-section="discography"] .cms-content .wp-block-gallery.has-nested-images > figure.wp-block-image {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}
[data-section="discography"] .wp-block-gallery.has-nested-images > .wp-block-image,
.record-card {
    border: 7px solid #a76732;
    border-image: url("assets/record-frame.webp") 7 stretch;
    background-color: #1c1713;
    box-shadow: 0 3px 10px #000b;
}
[data-section="discography"] .wp-block-gallery.has-nested-images > .wp-block-image > a,
[data-section="discography"] .wp-block-gallery.has-nested-images > .wp-block-image img {
    display: block;
    width: 100%;
}
[data-section="discography"] .wp-block-gallery.has-nested-images > .wp-block-image img {
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

/* The panel sits inside the copper frame in right.webp. */
.social-panel {
    position: absolute;
    z-index: 8;
    left: 1348px;
    top: 380px;
    width: 165px;
    height: 290px;
    padding: 10px 9px 12px;
    border: 1px solid #684021;
    border-radius: 9px;
    background: radial-gradient(ellipse at top, #39291e, #1a1512 56%, #100e0d);
    box-shadow: inset 0 0 14px #000b;
    color: #f4d8aa;
}
.social-panel h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 21px;
    line-height: 1.15;
    text-shadow: 0 2px 2px #000;
}
.social-panel ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.social-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 10px;
    border: 1px solid #79502c;
    border-radius: 4px;
    color: inherit;
    background: linear-gradient(#2e241b, #181311);
    box-shadow: inset 0 1px #725031;
    font-size: 17px;
    text-decoration: none;
}
.social-panel a::after { content: "\2197"; color: #d99453; }
.social-panel a:hover,
.social-panel a:focus-visible {
    background: #412b1b;
    outline: 2px solid #d99453;
    outline-offset: -2px;
}

[data-section="home"] .cms-content:has(> .spark-home-intro:only-child) { padding: 0; }
[data-section="home"] .spark-home-intro {
    position: relative;
    display: flex;
    min-height: 100%;
    margin: 0;
    padding: 48px 40px 82px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: #140f0c url("assets/home-studio.webp") center right / cover no-repeat;
    color: #f7e4c7;
    box-shadow: inset 0 -2px #91572e;
}
.spark-home-intro > * { width: 49%; max-width: 460px; }
.spark-home-intro h2 {
    margin: 0;
    color: #efb577;
    background: linear-gradient(#fff1cb 12%, #c88043 56%, #f4c486 81%, #b26a34);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 78px;
    line-height: 1.02;
    font-variant: small-caps;
    letter-spacing: -0.035em;
    filter: drop-shadow(0 3px 3px #0009);
}
.spark-home-intro .spark-home-subtitle {
    margin: 8px 0 22px;
    color: #edbd8f;
    font-size: 26px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.spark-home-intro .spark-home-roles {
    margin: 0 0 17px;
    padding-top: 14px;
    border-top: 1px solid #ba7341;
    color: #ffe0ac;
    font-size: 16px;
}
.spark-home-intro .spark-home-description {
    max-width: 390px;
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
    text-shadow: 0 2px 4px #000;
}

/* Match the left wall's copper arc to the title strips at the seam. */
.left-wall {
    top: 303px;
    height: 721px;
}
