/* Gibson and Gibson - shared stylesheet */

* {
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    text-align: center;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 20px 12px 40px;
}

h1 {
    color: #30b4da;
    text-transform: uppercase;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    margin: 0 0 6px;
}

h2 {
    color: #3f69d2;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    margin: 0 0 6px;
}

.spotify-link {
    display: inline-block;
    margin: 6px 0;
    padding: 8px 14px;
    border: 1px solid #30b4da;
    color: #30b4da;
    text-decoration: none;
    font-weight: bold;
}

.spotify-link-a {
    text-decoration: none;
    color: #3f69d2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 5px;
    white-space: nowrap;
}

.service-icon {
    width: 17px;
    height: 17px;
    display: inline-block;
    vertical-align: middle;
    flex: 0 0 17px;
}

.spotify-icon { color: #1DB954; }
.amazon-icon { color: #FF9900; }
.youtube-icon { color: #FF0033; }
.apple-icon { color: #fff; }

.spotify-link-a:hover {
    color: #fff;
}

/* Shared navigation - markup is in js/navigation.js */
.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 18px auto 28px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    max-width: 760px;
    width: 100%;
}

.site-nav a {
    display: inline-block;
    padding: 12px 20px;
    color: #30b4da;
    text-decoration: none;
    font-weight: bold;
}

.site-nav a:hover,
.site-nav a.current {
    color: #fff;
    background: #17242a;
}

.footer {
    color: #777;
    font-size: .8em;
    margin-top: 35px;
}

.footer a {
    color: #30b4da;
    text-decoration: none;
}

/* Home page */
body.page-home {
    min-height: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 20px 12px 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-home .site-nav {
    margin-bottom: 20px;
}

.img-container {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.img-container img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Releases page */
.release-list {
    width: min(760px, 96%);
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: left;
}

.release {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px;
    padding: 13px 8px;
    border-bottom: 1px solid #333;
}

.cover {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.number {
    color: #888;
    visibility: hidden;
    display: none;
    text-align: right;
}

.track-title {
    display: block;
    color: #f2f2f2;
    font-size: 1em;
    font-weight: bold;
}

.artist {
    display: block;
    color: #aaa;
    font-size: .86em;
    margin-top: 6px;
}

.releasedate {
    display: block;
    color: #aaa;
    font-size: .66em;
    margin-top: 5px;
}

.duration {
    color: #aaa;
    font-size: .9em;
    white-space: nowrap;
}

.explicit {
    display: inline-block;
    background: #333;
    color: #fff;
    border-radius: 2px;
    padding: 0 4px;
    margin-right: 5px;
    font-size: .75em;
}

.track-links {
    grid-column: 3 / 5;
    justify-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 4px;
}

.track-link {
    display: inline-block;
    color: #3f69d2;
    text-decoration: none;
    font-size: .8em;
}

.track-link:hover {
    color: #fff;
}

/* Lyrics page */
.song-list {
    width: min(760px, 96%);
    margin: 28px auto;
    text-align: left;
}

.song {
    border-bottom: 1px solid #333;
    padding: 0;
}

.song summary {
    cursor: pointer;
    list-style: none;
    color: #30b4da;
    font-weight: bold;
    padding: 16px 12px;
    font-size: 1.02em;
}

.song summary::-webkit-details-marker {
    display: none;
}

.song summary::after {
    content: "+";
    float: right;
    color: #3f69d2;
    font-size: 1.2em;
}

.song[open] summary::after {
    content: "−";
}

.song summary:hover {
    background: #111;
    color: #fff;
}

.song-number {
    display: none;
    color: #777;
    font-weight: normal;
}

.song pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #eee;
    font: 0.94em/1.75 Verdana, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 4px 18px 24px 48px;
}

/* About page */
.page-about .content {
    width: min(760px, 94%);
    margin: 28px auto;
    text-align: left;
    line-height: 1.8;
}

.page-about .content h2 {
    margin-top: 28px;
    text-align: left;
}

.page-about .content a,
.page-contact .content a {
    color: #30b4da;
    text-decoration: none;
}

.page-about .content a:hover,
.page-contact .content a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Contact page */
.page-contact .content {
    width: min(760px, 94%);
    margin: 28px auto;
    text-align: center;
    line-height: 1.8;
}

.page-contact .content h2 {
    margin-top: 28px;
    text-align: center;
}

.page-about .footer,
.page-contact .footer {
    margin-top: 40px;
}

/* Responsive layout */
@media (max-width: 480px) {
    .site-nav a {
        padding: 11px 14px;
        font-size: .9em;
    }

    .release-list {
        width: 90%;
    }

    .release {
        gap: 8px;
        padding: 12px 2px;
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .cover {
        width: 42px;
        height: 42px;
    }

    .track-title {
        font-size: .92em;
    }

    .song summary {
        padding: 14px 6px;
    }

    .song pre {
        padding-left: 42px;
        font-size: .88em;
    }

    .page-about .content,
    .page-contact .content {
        width: 96%;
    }
}


/* Videos page */
.page-videos .video-list {
    width: min(760px, 94%);
    margin: 28px auto;
    text-align: left;
}

.video-item {
    padding: 0 0 24px;
    margin: 0 0 28px;
    border-bottom: 1px solid #333;
}

.video-title {
    color: #30b4da;
    font-size: 1.15em;
    margin: 0 0 14px;
}

.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 68px;
    height: 48px;
    border-radius: 14px;
    background: rgba(220, 0, 0, .92);
    color: #fff;
    font-size: 25px;
    padding-left: 4px;
    transition: background .2s ease, transform .2s ease;
}

.video-thumbnail:hover .video-play-icon {
    background: #f00;
    transform: translate(-50%, -50%) scale(1.08);
}

.video-watch-link a {
    color: #30b4da;
    text-decoration: none;
    font-weight: bold;
}

.video-watch-link a:hover {
    color: #fff;
    text-decoration: underline;
}

.video-caption {
    color: #aaa;
    font-size: .9em;
    margin: 12px 0 0;
}
