/* ==========================================================================
   Base styles
   ========================================================================== */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #d62828;
}

a {
    text-decoration: none;
}

/* ==========================================================================
   Category Menu Block
   ========================================================================== */
.category-menu {
    position: relative;
    width: 60vw;
    height: 60vh;
    min-width: 300px;
    min-height: 300px;
    margin: 2rem auto;
}

/* Category Menu Item Element */
.category-menu__item {
    position: absolute;
    width: 10rem;
    height: 10rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 2px 4px 0px #8b1414;
    border: 4px solid #ac965d;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-decoration: none;
}

.category-menu__item:hover {
    transform: translate(-50%, -50%) scale(1.05);
    color: #374151;
}

/* Category Menu Icon Element */
.category-menu__icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.5rem;
}

/* Category Menu Item Modifiers (positions and shapes) */
.category-menu__item--family {
    border-radius: 45% 55% 60% 40% / 65% 50% 50% 35%;
    transform: translate(-50%, -50%) translate(0, -16rem);
}

.category-menu__item--family:hover {
    transform: translate(-50%, -50%) translate(0, -16rem) scale(1.05);
}

.category-menu__item--love {
    border-radius: 60% 40% 45% 55% / 55% 65% 35% 45%;
    transform: translate(-50%, -50%) translate(15.2rem, -5rem);
}

.category-menu__item--love:hover {
    transform: translate(-50%, -50%) translate(15.2rem, -5rem) scale(1.05);
}

.category-menu__item--work {
    border-radius: 50% 50% 35% 65% / 60% 40% 60% 40%;
    transform: translate(-50%, -50%) translate(9.4rem, 13rem);
}

.category-menu__item--work:hover {
    transform: translate(-50%, -50%) translate(9.4rem, 13rem) scale(1.05);
}

.category-menu__item--health {
    border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
    transform: translate(-50%, -50%) translate(-9.4rem, 13rem);
}

.category-menu__item--health:hover {
    transform: translate(-50%, -50%) translate(-9.4rem, 13rem) scale(1.05);
}

.category-menu__item--talent {
    border-radius: 65% 35% 55% 45% / 60% 65% 35% 40%;
    transform: translate(-50%, -50%) translate(-15.2rem, -5rem);
}

.category-menu__item--talent:hover {
    transform: translate(-50%, -50%) translate(-15.2rem, -5rem) scale(1.05);
}

/* Category Menu Logo Element */
.category-menu__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 150px;
    width: 150px;
    height: 150px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 55% 45% 65% 35% / 40% 60% 40% 60%;
    padding: 1rem;
    border: 4px solid #ac965d;
    box-shadow: 2px 4px 0px #8b1414;
    z-index: 10;
}

/* ==========================================================================
   Page Content Styles
   ========================================================================== */
.page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.back-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #374151;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 2px 4px 0px #8b1414;
    transition: transform 0.2s;
    text-decoration: none;
}

.back-link:hover {
    transform: translateY(-2px);
    color: #374151;
}

/* ==========================================================================
   Audio Player Styles
   ========================================================================== */
.audio-players-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2rem;
}

.audio-player {
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border: 4px solid #ac965d;
    border-radius: 50px;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 3px 5px 0px #8b1414;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    min-width: 200px;
    overflow: hidden;
}

.audio-button:hover {
    transform: scale(1.05);
    box-shadow: 4px 7px 0px #8b1414;
}

.audio-button.playing {
    background-color: rgba(255, 255, 255, 0.95);
}

.audio-button__progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(214, 40, 40, 0.2) 0%, rgba(214, 40, 40, 0.1) 100%);
    width: 0%;
    transition: width 0.1s ease-out;
    border-radius: 50px;
    z-index: 1;
}

.audio-button__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    z-index: 2;
    transition: all 0.3s ease;
}

.audio-button__image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.audio-button.playing .audio-button__image {
    transform: scale(1.05);
}

.audio-button span {
    flex-grow: 1;
    text-align: center;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.audio-button.playing span {
    font-weight: 700;
    color: #d62828;
}

.audio-button__overlay {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.audio-button.playing .audio-button__overlay {
    transform: scale(1.1);
}

.play-pause-icon {
    width: 12px;
    height: 1.5rem;
    transition: all 0.3s ease;
    background: url('../img/play-pause.svg') no-repeat;
    background-size: 24px 1.5rem; /* Full SVG is 24px wide, so we show it at actual size */
    background-position: 0 0; /* Show left half (play icon) by default */
}

.audio-button.playing .play-pause-icon {
    filter: hue-rotate(180deg) brightness(1.2);
    transform: scale(1.1);
    background-position: -12px 0; /* Move left by 12px to show right half (pause icon) */
}