/* ---=CUSTOM PROPERTIES=--- */

:root {
    --color-salmon:      rgb(255, 160, 122);
    --color-coral:       rgb(240, 128, 128);
    --color-red:        rgb(235, 66, 66);
    --color-blue-light:  rgb(135, 205, 250);
    --color-blue-border: rgb(135, 205, 235);
    --color-blue-mid:    rgb(100, 150, 200);
    --color-blue-nav:    rgb(80, 130, 180);
    --color-cyan:        rgb(0, 255, 255);
    --color-navy:        rgb(12, 12, 59);
    --color-black:       rgb(0, 0, 0);
    --color-text-shadow: rgb(1, 7, 35);
}

/* ---=MAIN ELEMENTS=--- */

header {
    background-color: var(--color-coral);
    background-image: url("images/hero.webp");
    background-size: 100%;
    background-position: center;
    padding-top: .5%;
    text-align: center;
    font-size: 400%;
}
body {
    background: var(--color-salmon);
    color: var(--color-blue-light);
    font-family: 'Times New Roman', Times, sans-serif;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    text-shadow: var(--color-text-shadow) .25px .5px .75px;
    margin: 0;
    padding: 0;
}
footer {
    background: var(--color-salmon);
    bottom: 0;
    color: var(--color-cyan);
    font-size: 100%;
    margin-top: .5%;
    text-align: center;
    width: 100%;
}
.visit-counter {
    color: var(--color-blue-light);
    font-size: 90%;
    padding: 5px 0;
}
.visit-counter p {
    margin: 5px 0;
}

/* ---=COMMON TAGS=--- */

p.large-text {
    font-size: 200%;
    text-shadow: var(--color-black) .5px 1px 2px;
}
section {
    background: var(--color-salmon);
    color: var(--color-blue-light);
    padding: .5%;
}
h1 {
    margin: .5%;
    text-align: center;
}
section h2 {
    font-size: 300%;
    padding-left: 5%;
}
section.centered-text h2 {
    padding-left: 0;
    text-align: center;
}
section pre {
    display: inline;
    font-size: 300%;
    text-decoration: underline;
    user-select: all;
}
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
ul li {
    display: inline-block;
    margin-right: 2%;
}
ol {
    font-size: 200%;
    padding-left: 10%;
}
ol li a,
footer a {
    color: var(--color-blue-light);
    text-decoration: underline;
}
ol li a {
    padding-left: 1%;
}
footer a {
    color: var(--color-cyan);
}
header a {
    color: var(--color-blue-mid);
    text-decoration: none;
}
figure {
    display: table;
    text-align: center;
}
figure div p {
    text-align: left;
}

/* ---=CLASSES=--- */


.large-text {
    font-size: 150%;
}
.centered-text {
    text-align: center;
}
.info {
    color: var(--color-navy);
    font-size: 125%;
}
.text {
    font-size: 16px;
    text-align: left;
}
.divider,
.content {
    border: 20px solid var(--color-blue-border);
}
.feature-box,
.ABOUT-feature-box {
    background-color: var(--color-coral);
    width: auto;
}
.ABOUT-feature-box {
    display: flex;
    align-items: flex-start;
    gap: 2%;
}
.ABOUT-feature-box figure {
    flex: 0 0 auto;
}
.ABOUT-feature-box .info {
    flex: 1 1 60%;
    max-width: 70%;
}
.ABOUT-feature-box figure img {
    border: 1px solid var(--color-blue-border);
    border-radius: 50%;
    box-shadow: var(--color-black) 0px 0px 10px;
    width: 200px;
}
.content figure figcaption {
    margin-left: 2.75%;
}
.feature-box.tutorials figure {
    display: inline-block;
}

/* ---=STATS SECTION=--- */

.stats-section {
    background-color: var(--color-coral);
    padding: 2% 5%;
}
.stats-section h2.centered-text {
    color: var(--color-blue-light);
    font-size: 300%;
    margin-bottom: 3%;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 2%;
}
.stat-box {
    background-color: var(--color-salmon);
    border: 3px solid var(--color-blue-border);
    border-radius: 15px;
    box-shadow: var(--color-black) 0px 4px 8px;
    padding: 5%;
    text-align: center;
    flex: 1;
    min-width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--color-black) 0px 6px 12px;
}
.stat-number {
    color: var(--color-blue-light);
    font-size: 400%;
    font-weight: bold;
    text-shadow: var(--color-black) 1px 2px 3px;
    margin-bottom: 10px;
}
.stat-label {
    color: var(--color-navy);
    font-size: 125%;
    font-weight: bold;
}

/* ---=SOCIAL LINKS SECTION=--- */

.social-links-section {
    background-color: var(--color-coral);
    padding: 2% 5%;
}
.social-links-section h2.centered-text {
    color: var(--color-blue-light);
    font-size: 300%;
    margin-bottom: 3%;
}
.social-links-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2%;
    flex-wrap: wrap;
}
.social-link {
    background-color: var(--color-salmon);
    border: 3px solid var(--color-blue-border);
    border-radius: 10px;
    box-shadow: var(--color-black) 0px 4px 8px;
    color: var(--color-blue-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    min-width: 120px;
}
.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--color-black) 0px 6px 12px;
    background-color: var(--color-blue-border);
}
.social-icon {
    font-size: 250%;
    margin-bottom: 10px;
    text-shadow: var(--color-black) 1px 2px 3px;
}
.social-name {
    color: var(--color-navy);
    font-size: 125%;
    font-weight: bold;
    text-align: center;
}
.social-link:hover .social-name {
    color: var(--color-blue-light);
}
.artist {
    white-space: nowrap;
}

/* ---=PSEUDO-CLASSES=--- */

a:hover,
a:visited:hover {
    color: var(--color-blue-mid);
    text-decoration: underline;
}
nav a:visited:hover {
    color: var(--color-blue-nav);
    text-decoration: underline;
}
footer a:visited:hover {
    color: rgb(0, 235, 235);
}

/* ---=IDs=--- */

#current-page {
    background-color: transparent;
}

/* ============================================================
   HOME PAGE — NEW SECTIONS
   All new rules use explicit px values and div elements
   to avoid any conflict with the existing section/h2 CSS.
   ============================================================ */

/* ---=HERO=--- */

.hero-header {
    background-size: cover;
    padding-bottom: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 5% 20px;
}

.hero-tagline {
    color: var(--color-blue-light);
    font-size: 42px;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    text-shadow: var(--color-black) 2px 4px 10px;
}

.hero-cta {
    background-color: transparent;
    border: 3px solid var(--color-blue-border);
    border-radius: 8px;
    color: var(--color-blue-light);
    display: inline-block;
    font-family: 'Times New Roman', Times, serif;
    font-size: 22px;
    font-style: italic;
    letter-spacing: 0.06em;
    padding: 14px 36px;
    text-decoration: none;
    text-shadow: var(--color-black) 1px 2px 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
    background-color: var(--color-blue-border);
    box-shadow: var(--color-black) 0px 6px 18px;
    color: var(--color-navy);
    text-decoration: none;
    text-shadow: none;
    transform: translateY(-4px);
}

/* ---=EXPLORE SECTION=--- */
/* Uses div, not section, to avoid base section CSS overrides */

.explore-section {
    background-color: var(--color-coral);
    box-sizing: border-box;
    padding: 50px 5% 60px;
    width: 100%;
}

.explore-heading {
    color: var(--color-blue-light);
    font-family: 'Times New Roman', Times, serif;
    font-size: 42px;
    font-style: italic;
    margin: 0 0 40px 0;
    text-align: center;
    text-shadow: var(--color-text-shadow) 1px 2px 4px;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.explore-card {
    background-color: var(--color-navy);
    border: 3px solid var(--color-blue-border);
    border-radius: 16px;
    box-shadow: var(--color-black) 0px 6px 16px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.explore-card:hover {
    border-color: var(--color-cyan);
    box-shadow: var(--color-black) 0px 12px 28px;
    transform: translateY(-8px);
}

.explore-card-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 18px;
    text-shadow: none;
}

.explore-card-title {
    color: var(--color-blue-light);
    font-family: 'Times New Roman', Times, serif;
    font-size: 26px;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 14px;
    text-shadow: var(--color-black) 1px 2px 4px;
}

.explore-card-desc {
    color: var(--color-blue-border);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 24px 0;
    text-shadow: none;
    flex-grow: 1;
}

.explore-card-link {
    background-color: transparent;
    border: 2px solid var(--color-blue-border);
    border-radius: 6px;
    color: var(--color-blue-light);
    display: inline-block;
    font-size: 15px;
    font-style: italic;
    letter-spacing: 0.04em;
    margin-top: auto;
    padding: 8px 20px;
    text-decoration: none;
    text-shadow: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.explore-card-link:hover {
    background-color: var(--color-blue-border);
    border-color: var(--color-cyan);
    color: var(--color-navy);
    text-decoration: none;
    text-shadow: none;
}

/* ---=MUSIC SECTION=--- */
/* Uses div, not section, to avoid base section CSS overrides */

.music-section {
    background-color: var(--color-salmon);
    box-sizing: border-box;
    padding: 50px 5% 60px;
    text-align: center;
    width: 100%;
}

.music-heading {
    color: var(--color-blue-light);
    font-family: 'Times New Roman', Times, serif;
    font-size: 42px;
    font-style: italic;
    margin: 0 0 10px 0;
    text-shadow: var(--color-text-shadow) 1px 2px 4px;
}

.music-subtext {
    color: var(--color-blue-mid);
    font-size: 18px;
    font-style: italic;
    margin: 0 0 36px 0;
    text-shadow: var(--color-text-shadow) .5px 1px 2px;
}

.music-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 900px;
    margin: 0 auto;
}

.music-link {
    background-color: var(--color-navy);
    border: 3px solid var(--color-blue-border);
    border-radius: 14px;
    box-shadow: var(--color-black) 0px 5px 14px;
    color: var(--color-blue-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 16px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.music-link:hover {
    background-color: var(--color-blue-border);
    border-color: var(--color-cyan);
    box-shadow: var(--color-black) 0px 10px 24px;
    text-decoration: none;
    transform: translateY(-7px);
}

.music-link-icon {
    color: var(--color-blue-light);
    font-size: 36px;
    line-height: 1;
    text-shadow: var(--color-black) 1px 2px 4px;
    transition: color 0.3s ease;
}

.music-link:hover .music-link-icon {
    color: var(--color-navy);
    text-shadow: none;
}

.music-link-name {
    color: var(--color-blue-border);
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    font-style: italic;
    font-weight: bold;
    text-shadow: none;
    transition: color 0.3s ease;
}

.music-link:hover .music-link-name {
    color: var(--color-navy);
}

/* ---=MOBILE RESPONSIVE (NEW HOME SECTIONS)=--- */

@media (max-width: 800px) {
    .hero-tagline {
        font-size: 28px;
    }
    .hero-cta {
        font-size: 18px;
        padding: 12px 26px;
    }
    .explore-grid {
        grid-template-columns: 1fr;
    }
    .music-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .music-links-grid {
        grid-template-columns: 1fr 1fr;
    }
    .explore-heading,
    .music-heading {
        font-size: 32px;
    }
}

/* ---=INSTRUCT=--- */
/* Hardened block: covers inherited text-shadow from body,
   anchor colour overrides from ol li a / footer a / header a,
   and the a:hover / a:visited:hover chain. */

.instruct,
.instruct p,
.instruct span,
.instruct li,
.instruct h1,
.instruct h2,
.instruct h3 {
    color: var(--color-salmon) !important;
    text-shadow: none !important;
}

/* Anchors inside .instruct, and .instruct applied directly to an <a> */
.instruct a,
a.instruct,
.instruct a:visited,
a.instruct:visited,
.instruct a:hover,
a.instruct:hover,
.instruct a:visited:hover,
a.instruct:visited:hover {
    color: var(--color-salmon) !important;
    text-shadow: none !important;
}
