/*
|--------------------------------------------------------------------------
| MP3Skull.homes
| Main Stylesheet
|--------------------------------------------------------------------------
*/

:root {
    --purple: #7c3aed;
    --purple-dark: #6425c7;
    --purple-light: #ede9fe;
    --blue: #3b82f6;
    --blue-light: #eff6ff;

    --text: #25213a;
    --text-light: #68657a;
    --white: #ffffff;
    --border: #ddd8f0;
    --background: #f8f9ff;
    --card: #ffffff;

    --shadow: 0 3px 14px rgba(87, 70, 140, 0.08);

    --container: 1120px;
    --radius: 10px;
}

/*
|--------------------------------------------------------------------------
| Reset
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(80, 65, 130, 0.05);
}

.header-inner {
    width: min(
        calc(100% - 32px),
        var(--container)
    );

    min-height: 64px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;

    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.logo-main {
    color: var(--purple);
}

.logo-dot {
    color: var(--blue);
}

/*
|--------------------------------------------------------------------------
| Main Navigation
|--------------------------------------------------------------------------
*/

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.main-navigation a {
    padding: 7px 10px;

    color: var(--text);
    font-size: 14px;
    font-weight: 600;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--purple);
    background: var(--purple-light);
}

/*
|--------------------------------------------------------------------------
| Main
|--------------------------------------------------------------------------
*/

.site-main {
    width: min(
        calc(100% - 32px),
        var(--container)
    );

    margin: 0 auto;
    padding: 28px 0 40px;
}

/*
|--------------------------------------------------------------------------
| Homepage Hero
|--------------------------------------------------------------------------
*/

.hero {
    text-align: center;
    padding: 22px 0 24px;
}

.hero h1 {
    margin: 0 0 8px;

    color: var(--purple);

    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.hero p {
    max-width: 680px;
    margin: 0 auto;

    color: var(--text-light);
    font-size: 15px;
}

/*
|--------------------------------------------------------------------------
| Search Box
|--------------------------------------------------------------------------
*/

.search-wrapper {
    position: relative;

    width: min(760px, 100%);
    margin: 20px auto 28px;
}

.search-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    height: 48px;

    padding: 0 16px;

    color: var(--text);
    background: var(--white);

    border: 2px solid var(--border);
    border-radius: 8px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-input::placeholder {
    color: #9995aa;
}

.search-input:focus {
    border-color: var(--purple);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-button {
    height: 48px;

    padding: 0 22px;

    color: var(--white);
    background: var(--purple);

    border: 0;
    border-radius: 8px;

    font-weight: 700;
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.search-button:hover {
    background: var(--purple-dark);
}

.search-button:active {
    transform: translateY(1px);
}

/*
|--------------------------------------------------------------------------
| Autocomplete
|--------------------------------------------------------------------------
*/

.suggestions-box {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;

    z-index: 1000;

    display: none;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    box-shadow: var(--shadow);

    text-align: left;
}

.suggestions-box.active {
    display: block;
}

.suggestion-item {
    display: block;

    padding: 10px 14px;

    color: var(--text);

    border-bottom: 1px solid #eeeaf7;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.suggestion-item:last-child {
    border-bottom: 0;
}

.suggestion-item:hover {
    color: var(--purple);
    background: var(--purple-light);
}

/*
|--------------------------------------------------------------------------
| Content Sections
|--------------------------------------------------------------------------
*/

.section {
    margin-top: 26px;
}

.section-title {
    margin: 0 0 14px;

    color: var(--text);

    font-size: 20px;
    line-height: 1.3;
}

.section-title span {
    color: var(--purple);
}

/*
|--------------------------------------------------------------------------
| Search Results
|--------------------------------------------------------------------------
*/

.search-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.result-card {
    overflow: hidden;

    background: var(--card);

    border: 1px solid #d9d0f2;
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.result-header {
    padding: 13px 15px 10px;
}

.result-title {
    margin: 0;

    color: var(--purple);

    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.result-title a:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Thumbnail / Player Area
|--------------------------------------------------------------------------
*/

.result-media {
    position: relative;

    overflow: hidden;

    background: #eeeefe;
}

.result-thumbnail {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.play-overlay {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    color: var(--white);
    background: var(--purple);

    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    cursor: pointer;

    box-shadow:
        0 5px 18px rgba(35, 20, 75, 0.25);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.play-overlay:hover {
    background: var(--purple-dark);
    transform: translate(-50%, -50%) scale(1.06);
}

.play-icon {
    width: 0;
    height: 0;

    margin-left: 4px;

    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid var(--white);
}

/*
|--------------------------------------------------------------------------
| Hidden YouTube Container
|--------------------------------------------------------------------------
*/

.youtube-player-container {
    display: none;

    width: 100%;
    height: 0;

    overflow: hidden;
}

.youtube-player-container.active {
    display: block;
    height: 0;
}

/*
|--------------------------------------------------------------------------
| MP3 Style Player
|--------------------------------------------------------------------------
*/

.mp3-player {
    display: none;

    padding: 10px 13px;

    background: #faf9ff;

    border-top: 2px solid var(--purple);
}

.mp3-player.active {
    display: block;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-button {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background: var(--purple);

    border: 0;
    border-radius: 50%;

    cursor: pointer;
}

.player-button:hover {
    background: var(--purple-dark);
}

.player-progress {
    flex: 1;

    height: 5px;

    appearance: none;
    -webkit-appearance: none;

    background: #dcd5f2;

    border-radius: 999px;

    cursor: pointer;
}

.player-progress::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 14px;
    height: 14px;

    background: var(--purple);

    border-radius: 50%;
}

.player-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;

    background: var(--purple);

    border: 0;
    border-radius: 50%;
}

.volume-control {
    width: 75px;

    height: 5px;

    appearance: none;
    -webkit-appearance: none;

    background: #dcd5f2;

    border-radius: 999px;

    cursor: pointer;
}

.volume-control::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 12px;
    height: 12px;

    background: var(--purple);

    border-radius: 50%;
}

.volume-control::-moz-range-thumb {
    width: 12px;
    height: 12px;

    background: var(--purple);

    border: 0;
    border-radius: 50%;
}

/*
|--------------------------------------------------------------------------
| Result Details
|--------------------------------------------------------------------------
*/

.result-details {
    padding: 12px 15px;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;

    margin: 0;
}

.result-meta-item {
    color: var(--text-light);
    font-size: 13px;
}

.result-meta-item strong {
    color: var(--purple);
    font-weight: 700;
}

.result-description {
    margin: 9px 0 0;

    color: var(--text-light);

    font-size: 13px;
    line-height: 1.55;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 9px;
}

.result-tag {
    padding: 3px 8px;

    color: var(--purple);

    background: var(--purple-light);

    border-radius: 5px;

    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| Full Width Separator
|--------------------------------------------------------------------------
*/

.result-separator {
    width: 100%;
    height: 2px;

    margin: 0;

    background: var(--purple);

    border: 0;
}

/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.loading {
    padding: 20px;

    color: var(--purple);

    text-align: center;
    font-weight: 600;
}

.error-message {
    padding: 13px 15px;

    color: #a33a3a;

    background: #fff4f4;

    border: 1px solid #f0cccc;
    border-radius: 8px;
}

/*
|--------------------------------------------------------------------------
| Static Content Pages
|--------------------------------------------------------------------------
*/

.content-page {
    width: min(850px, 100%);
    margin: 0 auto;
}

.content-page h1 {
    margin: 0 0 18px;

    color: var(--purple);

    font-size: 30px;
    line-height: 1.25;
}

.content-page h2 {
    margin: 25px 0 9px;

    color: var(--purple);

    font-size: 20px;
}

.content-page p {
    margin: 0 0 13px;

    color: var(--text-light);
}

.content-page ul,
.content-page ol {
    color: var(--text-light);
    padding-left: 22px;
}

.content-page li {
    margin-bottom: 6px;
}

/*
|--------------------------------------------------------------------------
| Contact Form
|--------------------------------------------------------------------------
*/

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;

    margin-bottom: 6px;

    color: var(--text);

    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;

    padding: 11px 13px;

    color: var(--text);
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 7px;

    outline: none;
}

.form-control:focus {
    border-color: var(--purple);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.08);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    padding: 10px 20px;

    color: var(--white);
    background: var(--purple);

    border: 0;
    border-radius: 7px;

    font-weight: 700;
    cursor: pointer;
}

.form-submit:hover {
    background: var(--purple-dark);
}

/*
|--------------------------------------------------------------------------
| FAQ
|--------------------------------------------------------------------------
*/

.faq-item {
    margin-bottom: 10px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;
}

.faq-question {
    padding: 13px 15px;

    color: var(--purple);

    font-weight: 700;
}

.faq-answer {
    padding: 0 15px 13px;

    color: var(--text-light);
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    margin-top: 30px;

    background: var(--white);

    border-top: 1px solid var(--border);
}

.footer-inner {
    width: min(
        calc(100% - 32px),
        var(--container)
    );

    margin: 0 auto;
    padding: 25px 0 18px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    color: var(--purple);

    font-size: 20px;
    font-weight: 800;
}

.footer-logo span {
    color: var(--blue);
}

.footer-brand p {
    margin: 4px 0 15px;

    color: var(--text-light);

    font-size: 13px;
}

.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 7px 16px;
}

.footer-navigation a {
    color: var(--text-light);

    font-size: 13px;
}

.footer-navigation a:hover {
    color: var(--purple);
}

.footer-bottom {
    margin-top: 17px;
    padding-top: 14px;

    border-top: 1px solid #eeeaf5;

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    color: #858195;

    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Utility Classes
|--------------------------------------------------------------------------
*/

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.no-results {
    padding: 25px;

    color: var(--text-light);

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .header-inner {
        min-height: auto;

        padding: 12px 0;

        flex-direction: column;
        gap: 8px;
    }

    .site-logo {
        font-size: 22px;
    }

    .main-navigation {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;
    }

    .main-navigation a {
        padding: 5px 8px;

        font-size: 13px;
    }

    .site-main {
        width: min(
            calc(100% - 20px),
            var(--container)
        );

        padding-top: 20px;
    }

    .hero {
        padding-top: 10px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .result-header {
        padding: 11px 12px 9px;
    }

    .result-title {
        font-size: 16px;
    }

    .result-details {
        padding: 11px 12px;
    }

    .player-row {
        gap: 7px;
    }

    .volume-control {
        width: 55px;
    }

    .content-page h1 {
        font-size: 26px;
    }

    .footer-inner {
        width: min(
            calc(100% - 20px),
            var(--container)
        );
    }
}

@media (max-width: 420px) {

    body {
        font-size: 14px;
    }

    .site-logo {
        font-size: 21px;
    }

    .main-navigation {
        gap: 2px;
    }

    .main-navigation a {
        font-size: 12px;
    }

    .play-overlay {
        width: 52px;
        height: 52px;
    }

    .volume-control {
        display: none;
    }
}