
/* ==========================================
   1. DESIGN VARIABLES
========================================== */

:root {

    /* Graphite background */
    --bg: #292d33;
    --surface: #292d33;

    /* Text */
    --text: #e1e7ef;
    --muted: #929daa;

    /* Accent */
    --accent: #65aaff;
    --accent-glow: rgba(75, 155, 255, 0.45);

    /* Neumorphic shadow colours */
    --shadow-dark: #202329;
    --shadow-light: #323740;

    /* Dimensions */
    --app-width: 520px;
    --page-padding: 18px;

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 26px;

}


/* ==========================================
   2. RESET
========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    padding: 0;

    background: var(--bg);

    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;

    min-height: 100vh;

}


/* ==========================================
   3. APPLICATION CONTAINER
========================================== */

.app-container {

    width: 100%;

    max-width: var(--app-width);

    min-height: 100vh;

    margin: 0 auto;

    padding: var(--page-padding);

    display: flex;

    flex-direction: column;

    gap: 20px;

}


/* ==========================================
   4. NEUMORPHIC EMBOSSED BLOCK
========================================== */

/*
   Used by:
   - Tile block
   - Nav block
   - Body block
*/

.embossed {

    background: var(--surface);

    box-shadow:
        7px 7px 14px var(--shadow-dark),
        -7px -7px 14px var(--shadow-light);

    border-radius: var(--radius-medium);

}


/* ==========================================
   5. NEUMORPHIC RECESSED BLOCK
========================================== */

/*
   Used by:
   - Section block
*/

.recessed {

    background: var(--surface);

    box-shadow:
        inset 7px 7px 14px var(--shadow-dark),
        inset -7px -7px 14px var(--shadow-light);

    border-radius: var(--radius-large);

}


/* ==========================================
   6. TITLE BLOCK
========================================== */

.title-block {

    min-height: 100px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 18px;

    background: var(--surface);

    border-radius: var(--radius-large);

    box-shadow:
        7px 7px 14px var(--shadow-dark),
        -7px -7px 14px var(--shadow-light);

}

.title-block h1 {

    margin: 0;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--text);

    text-shadow: 0 0 12px var(--accent-glow);

}

.title-block p {

    margin: 8px 0 0;

    font-size: 11px;

    color: var(--muted);

    letter-spacing: 1px;

}


/* ==========================================
   7. NAV BLOCK
========================================== */

.nav-block {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;

    padding: 12px;

    background: var(--surface);

    border-radius: var(--radius-large);

    box-shadow:
        7px 7px 14px var(--shadow-dark),
        -7px -7px 14px var(--shadow-light);

}

.nav-item {

    min-width: 0;

    min-height: 65px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 6px;

    text-decoration: none;

    color: var(--muted);

    border-radius: var(--radius-medium);

    transition: 0.2s ease;

}

.nav-item:hover,
.nav-item.active {

    color: var(--accent);

    background: var(--surface);

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);

}

.nav-icon {

    font-size: 23px;

    line-height: 1;

    color: var(--accent);

    text-shadow: 0 0 10px var(--accent-glow);

}

.nav-label {

    font-size: 10px;

    text-align: center;

}


/* ==========================================
   8. SECTION BLOCK - RECESSED
========================================== */

.section-block {

    padding: 16px;

    background: var(--surface);

    border-radius: var(--radius-large);

    box-shadow:
        inset 7px 7px 14px var(--shadow-dark),
        inset -7px -7px 14px var(--shadow-light);

    display: flex;

    flex-direction: column;

    gap: 10px;

}

.section-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.section-heading h2 {

    margin: 0;

    font-size: 17px;

    font-weight: 600;

}

.section-indicator {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow: 0 0 10px var(--accent);

}


/* ==========================================
   9. TILE BLOCK
========================================== */

.tile-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px;

}

.tile-block {

    min-height: 115px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 12px;

    padding: 15px;

    background: var(--surface);

    border-radius: var(--radius-medium);

    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);

    transition: 0.2s ease;

}

.tile-block:hover {

    transform: translateY(-2px);

}

.tile-icon {

    font-size: 30px;

    color: var(--accent);

    text-shadow: 0 0 12px var(--accent-glow);

}

.tile-title {

    font-size: 12px;

    color: var(--text);

}


/* ==========================================
   10. BODY BLOCK
========================================== */

.body-block {

    padding: 18px;

    background: var(--surface);

    border-radius: var(--radius-medium);

    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);

}

.body-block h3 {

    margin: 0 0 12px;

    font-size: 15px;

    color: var(--accent);

}

.body-block p {

    margin: 0;

    font-size: 13px;

    line-height: 1.7;

    color: var(--muted);

}


/* ==========================================
   11. RESPONSIVE TABLET
========================================== */

@media (min-width: 521px) and (max-width: 900px) {

    :root {
        --app-width: 520px;
    }

}


/* ==========================================
   12. RESPONSIVE MOBILE
========================================== */

@media (max-width: 520px) {

    :root {
        --page-padding: 14px;
    }

    .app-container {
        padding: var(--page-padding);
        gap: 17px;
    }

    .title-block {
        min-height: 85px;
    }

    .title-block h1 {
        font-size: 22px;
    }

    .nav-block {
        gap: 7px;
        padding: 9px;
    }

    .nav-item {
        min-height: 58px;
    }

    .nav-icon {
        font-size: 21px;
    }

    .nav-label {
        font-size: 9px;
    }

    .section-block {
        padding: 12px;
        gap: 17px;
    }

    .tile-grid {
        gap: 12px;
    }

    .tile-block {
        min-height: 100px;
    }

}

.site-logo {
    display: block;
    width: 160px;
    max-width: 80%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}


/* ==========================================
   ALPHABETICAL SONG DIRECTORY
========================================== */

.alphabet-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    justify-items: center;

    align-items: center;

    padding: 12px 4px;

}


/* Circular recessed buttons */

.alphabet-button {

    width: 58px;

    height: 58px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    background: var(--surface);

    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);

    color: var(--accent);

    font-size: 17px;

    font-weight: 600;

    text-decoration: none;

    text-shadow: 0 0 8px var(--accent-glow);

    transition: all 0.2s ease;

}


/* Hover */

.alphabet-button:hover {

    color: #ffffff;

    text-shadow:
        0 0 8px var(--accent),
        0 0 18px var(--accent);

    box-shadow:
        inset 3px 3px 7px var(--shadow-dark),
        inset -3px -3px 7px var(--shadow-light),
        0 0 8px var(--accent-glow);

}


/* Pressed state */

.alphabet-button:active {

    transform: scale(0.94);

}


/* 0-9 oblong button */

.number-button {

    grid-column: span 2;

    width: 125px;

    height: 58px;

    border-radius: 30px;

}


/* ==========================================
   TABLET / DESKTOP
========================================== */

@media (min-width: 521px) {

    .alphabet-grid {

        grid-template-columns: repeat(5, 1fr);

        gap: 20px;

    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 520px) {

    .alphabet-grid {

        grid-template-columns: repeat(4, 1fr);

        gap: 15px 10px;

    }

    .alphabet-button {

        width: 54px;

        height: 54px;

        font-size: 16px;

    }

    .number-button {

        width: 116px;

        height: 54px;

        border-radius: 28px;

    }

}


.song-search {
    width: 100%;
    margin: 15px 0 25px;
}

.song-search form {
    display: flex;
    align-items: center;
    padding: 5px 8px 5px 16px;
    border-radius: 30px;
    background: var(--surface);

    /* Recessed Neumorphic effect */
    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
}

.song-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    padding: 12px 5px;
}

.song-search input::placeholder {
    color: var(--muted);
}

.song-search button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    font-size: 18px;
    cursor: pointer;

    box-shadow:
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
}

.song-search button:active {
    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.song-search {
    width: 100%;
    margin: 15px 0 25px;
}

.song-search form {
    display: flex;
    align-items: center;
    padding: 5px 8px 5px 16px;
    border-radius: 30px;
    background: var(--surface);
    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
}

.song-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    padding: 12px 5px;
}

.song-search input::placeholder {
    color: var(--muted);
}

.song-search button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    font-size: 24px;
    cursor: pointer;
    box-shadow:
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
}


.artist-heading {
	text-align: center;
	margin: 5px 0 8px;
	font-family: 'Oswald', sans-serif;
}


.artist-heading h3 {
	margin: 0 0 8px;
    line-height: 1.3;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
}

.artist-heading p {
	`margin: 0;
    line-height: 1.3;
    color: var(--muted);
    font-size: 16px;
}

.artist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;

    background: var(--surface);

    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
}

.artist-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--surface);

    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 16px;

    color: var(--accent);
    text-decoration: none;

    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);

    transition: 0.2s ease;
}

.artist-item:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-glow);
}

.artist-number {
    width: 35px;
    flex-shrink: 0;
    color: var(--muted);
    font-size: 12px;
}

.no-artists {
    text-align: center;
    color: var(--muted);
    padding: 25px 10px;
}

.back-link {
    text-align: center;
    margin: 10px 0 12px;
}

.back-link a {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
}

/* SONG LIST */

.song-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;

    border-radius: 18px;
    background: var(--surface);

    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
}

.song-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface);

    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.song-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.song-number {
    color: var(--muted);
    font-size: 12px;
    min-width: 25px;
}

.song-name {
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
}

/* VERSION BUTTON */

.version-button {
    margin: 12px 0 0 35px;
    padding: 7px 14px;

    border: none;
    border-radius: 20px;

    background: var(--surface);
    color: var(--muted);

    font-size: 11px;
    cursor: pointer;

    box-shadow:
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
}

.version-button:hover {
    color: var(--accent);
}

/* EXPANDED VERSIONS */

.version-content {
    display: none;
    margin: 14px 0 0 35px;
    padding: 12px;

    border-radius: 12px;
    background: var(--surface);

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.version-title {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.version-content ul {
    margin: 0;
    padding-left: 20px;
}

.version-content li {
    color: var(--text);
    font-size: 12px;
    padding: 5px 0;
}

.bottom-back-link {
    margin-top: 25px;
}
/* SEARCH RESULTS */

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: var(--surface);

    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--surface);

    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.search-result-number {
    color: var(--muted);
    font-size: 12px;
    padding-top: 3px;
    min-width: 22px;
}

.search-result-details {
    flex: 1;
    min-width: 0;
}

.result-artist {
    color: var(--muted);
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    margin-bottom: 4px;
}

.result-song {
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.search-highlight {
    color: #ffffff;
    text-shadow: 0 0 8px var(--accent-glow);
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;

    border-radius: 25px;
    background: var(--surface);

    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);

    transition: all 0.2s ease;
}

.back-button:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--accent-glow);
}

.back-button:active {
    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    transform: scale(0.97);
}

/* CALENDAR */

.calendar-container {
    padding: 12px;
    border-radius: 18px;
    background: var(--surface);

    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.calendar-header h3 {
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 19px;
    margin: 0;
}

.calendar-nav {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    font-size: 16px;
    cursor: pointer;

    box-shadow:
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
}

.calendar-nav:active {
    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.calendar-weekday {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    padding: 8px 0;
}

.calendar-empty {
    min-height: 42px;
}

.calendar-day {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    background: var(--surface);

    color: var(--text);
    font-size: 13px;
    cursor: pointer;

    box-shadow:
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
}

.calendar-day:hover {
    color: var(--accent);
}

.calendar-day.today {
    color: var(--accent);
    font-weight: bold;
}

.calendar-day.has-events {
    color: var(--accent);
    position: relative;
}

.calendar-day.has-events::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.calendar-day.selected-day {
    color: #ffffff;
    background: var(--surface);

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light),
        0 0 7px var(--accent-glow);
}


/* EVENTS SECTION */

.events-section {
    margin-top: 20px;
}

.selected-date {
    text-align: center;
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    margin: 10px 0 18px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;

    border-radius: 18px;
    background: var(--surface);

    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
}

.event-item {
    padding: 14px;
    border-radius: 12px;
    background: var(--surface);

    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.event-title {
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
}

.event-details {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.no-events {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 15px 5px;
}

/* ADD EVENT FORM */

.event-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 12px;
}

.event-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-form-group label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.event-form-group input,
.event-form-group textarea,
.event-form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;

    border: none;
    outline: none;
    border-radius: 12px;

    background: var(--surface);
    color: var(--text);

    font-family: Arial, sans-serif;
    font-size: 14px;

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.event-form-group textarea {
    resize: vertical;
}

.event-form-group input:focus,
.event-form-group textarea:focus,
.event-form-group select:focus {
    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light),
        0 0 5px var(--accent-glow);
}

.event-form-group input[type="datetime-local"] {
    color-scheme: dark;
}

.event-form-group select option {
    background: #292d33;
    color: white;
}

.event-form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.event-submit-button,
.event-reset-button {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 25px;

    background: var(--surface);
    color: var(--accent);

    font-size: 14px;
    font-weight: bold;
    cursor: pointer;

    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.event-submit-button:active,
.event-reset-button:active {
    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.event-reset-button {
    color: var(--muted);
}

.event-message {
    margin: 12px;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
}

.event-message.success {
    color: #65d69a;
}

.event-message.error {
    color: #ff7777;
}
/* Calendar event indicator */

.event-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-glow);
}

.calendar-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
}

.calendar-day.has-events {
    color: var(--accent);
}

.calendar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
}

/* Event information */

.event-type {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 12px;
    color: var(--accent);
    background: var(--shadow-dark);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-link {
    margin-top: 14px;
}

.event-link a {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.event-link a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-glow);
}