/* Base styles */

::selection {
    background-color: #089063;
    color: #ffffff;
}

html,
body {
    margin: 0;
    background: linear-gradient(115deg, #0f172a, #1c2526, #00d4ff17, #00ffab52);
    color: #e0e0e0;
    font-family: Verdana, Geneva, sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    padding-left: 14rem;
    transition: padding-left 0.5s ease;
}

header {
    background: linear-gradient(180deg, #0f172a, transparent);
    padding: 0.9rem;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 2rem;
}

h2 {
    color: #00ffab;
    text-align: center;
    border-bottom: 2.5px outset #00ffabbf;
}

h3 {
    color: #f6e074;
    text-align: center;
    margin: 1.8rem 0 1rem;
}

p {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.8;
}

summary {
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

summary:focus-visible {
    outline: 5px solid #f6e074;
    outline-offset: 5px;
    border-radius: 3px;
}

iframe {
    margin: 1rem 0;
}

/* Header and profile */

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
}

.header-title h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #00d4ff;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 25%;
    object-fit: cover;
    border: 2px solid #f6e074;
}

.profile-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #00d4ff;
}

.profile-role {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    color: #d4d4d4;
    line-height: 1.3;
}

/* Navigation */

.section-inner {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 12rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    z-index: 15;
    border-right: 2.5px solid #00d4ff;
    border-radius: 0 12px 12px 0;
    transition: width 0.5s ease;
}

.nav-toggle {
    box-sizing: border-box;
    width: 100%;
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle:hover {
    background-color: #00d4ff;
    color: #121212;
}

.nav-toggle:focus-visible {
    outline: 5px solid #f6e074;
    outline-offset: 5px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 99px;
}

.section-inner.is-collapsed {
    width: 4.75rem;
}

.section-inner.is-collapsed .nav-label {
    display: none;
}

.section-inner.is-collapsed .nav-links a {
    justify-content: center;
    padding-right: 12px;
    padding-left: 12px;
    border-radius: 99px;
}

.nav-icon {
    flex: 0 0 1.5rem;
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    text-align: center;
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.section-inner a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid rgba(0, 212, 255, 0.9);
    border-radius: 99px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.section-inner a:hover {
    background-color: #00d4ff;
    color: #121212;
}

.section-inner a:focus-visible {
    outline: 5px solid #f6e074;
    outline-offset: 5px;
}

body.nav-collapsed {
    padding-left: 4.5rem;
    transition: padding-left 0.5s ease;
}

/* Biography */

#biography p {
    font-weight: bolder;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 10px 48px 10px 48px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Favorite games */

.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.game-card {
    position: relative;
    background: #1a1a1a;
    border: 2px solid #00ffcc;
    border-radius: 16px 16px 42px 42px;
    width: 200px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 1px 6px 8px #00C9ff, 1px 6px 16px #92FE9D;
    cursor: none;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card:focus-visible {
    outline: 5px solid #f6e074;
    outline-offset: 5px;
}

.game-card img {
    width: 187.5px;
    height: 350px;
    object-fit: cover;
    display: block;
    margin: auto;
}

.game-info {
    padding: 10px;
    text-align: center;
}

.game-info h3 {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
}

.game-info p {
    font-size: 0.8rem;
    font-weight: bolder;
    color: #121212;
    display: inline-block;
    background: linear-gradient(90deg, #00C9FF 0%, #92FE9D 100%);
    padding: 0.25rem 0.6rem;
    border-radius: 16px 16px 52px 52px;
}

.game-details {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.96);
    color: #e0e0e0;
    text-align: left;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-details h4 {
    margin: 0 0 0.75rem;
    color: #ccf15e;
    text-align: center;
    font-size: 1rem;
}

.game-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
}

.game-details img {
    width: 187.5px;
    height: 350px;
    align-items: center;
}

.game-details strong {
    color: #ccf15e;
}

.game-card:hover .game-details,
.game-card:focus .game-details {
    opacity: 0.96;
    visibility: visible;
}

/* Favorite Umamusume */

.uma-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.sub-title {
    font-weight: bolder;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.uma-card {
    position: relative;
    background: #1a1a1a;
    border: 2px solid #00ffcc;
    border-radius: 10px 40px 20px 20px;
    width: 200px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 1px 6px 8px #d43f8d, 1px 6px 16px #0250c5;
    cursor: none;
}

.uma-details {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1px;
    background: rgba(15, 23, 42, 0.96);
    color: #e0e0e0;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.2s ease;
    cursor: none;
}

.uma-details h4 {
    color: #ccf15e;
    text-align: center;
    font-size: 18px;
    font-weight: bolder;
    border-bottom: none;
}

.uma-card:hover .uma-details,
.uma-card:focus-visible .uma-details {
    opacity: 0.93;
    visibility: visible;
}

.uma-card:hover {
    transform: translateY(-5px);
}

.uma-card:focus-visible {
    outline: 5px solid #f6e074;
    outline-offset: 5px;
}

.uma-card img {
    width: 187.5px;
    height: 350px;
    object-fit: cover;
    -webkit-box-reflect: below 0px linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}

.uma-info {
    padding: 10px;
    text-align: center;
}

.uma-info h3 {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
}

.uma-info p {
    font-size: 0.8rem;
    font-weight: bolder;
    font-style: oblique;
    color: #ededed;
    display: inline-block;
    background-image: linear-gradient(to top, #0250c5 0%, #d43f8d 100%);
    padding: 0.25rem 0.6rem;
    border-radius: 8px 40px;
}

/* Summary & Details */

details {
    interpolate-size: allow-keywords;
    border: 2px solid #00ffcc;
    padding: 0 1rem;
    border-radius: 80px 15px 15px 15px;
}

details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
        block-size 0.35s ease,
        content-visibility 0.35s allow-discrete;
}

details[open]::details-content {
    block-size: auto;
}

details[open] {
    padding-bottom: 1em;
}

summary {
    padding: 1rem 2em 1rem 0;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

summary::marker {
    content: none;
}

summary::before,
summary::after {
    content: '';
    width: 1.25rem;
    height: 0;
    border-bottom: 2.5px solid;
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    transform: translateY(-50%);
}

summary::after {
    transform: rotate(90deg);
    transform-origin: 50% 50%;
    transition: transform 0.35s ease;
}

[open] summary::after {
    transform: rotate(0deg);
}

/* Spotify embeds */

.spotify-embeds {
    display: flex;
    gap: 1.5rem;
    list-style-type: none;
    padding: 0;
}

.spotify-placeholder {
    min-height: 152px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    color: #e0e0e0;
    text-align: center;
}

.spotify-load-btn {
    background-image: linear-gradient(90deg, #30cfd0 0%, #330867 100%);
    color: #ededed;
    font-size: 1.1rem;
    border: 2px solid #00ffcc;
    border-radius: 50px 5px 50px 5px;
    padding: 0.9rem 1.2rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 1px 6px 8px #30cfd0, 3px 18px 32px #330867;
}

.spotify-load-btn:hover {
    transform: translateY(-10px);
}

.spotify-load-btn:focus-visible {
    outline: 5px solid #f6e074;
    outline-offset: 5px;
}

/* Footer and social links */

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #ffffff;
}

footer p {
    margin: 0 0 1rem;
    font-weight: bold;
}

.footer-subtitle {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #d4d4d4;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.social-links li {
    display: inline-flex;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 15%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.social-link:focus-visible {
    outline: 5px solid #f6e074;
    outline-offset: 5px;
}

.social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgb(0 0 0);
    border: 2px solid #00ffcc;
}

.social-link img {
    width: 24px;
    height: 24px;
    border-radius: 10%;
    filter: brightness(1) invert(1);
}

.social-link.discord:hover {
    background-color: #5865f2;
}

.social-link.instagram:hover {
    background-color: #c22aa3;
}

.social-link.x:hover {
    background-color: #1da1f2;
}

.social-link.spotify:hover {
    background-color: #1db954;
}

.social-link.threads:hover {
    background-color: #1c1c1e;
}

.social-link.facebook:hover {
    background-color: #1877f2;
}

.social-link.tiktok:hover {
    background-color: #fe2858;
}

.social-link.reddit:hover {
    background-color: #ff4500;
}

.social-link.github:hover {
    background-color: #171515;
}

/* Floating controls and update notice */

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    border: none;
    background: linear-gradient(115deg, #0f172a, #1c2526, #00d4ff, #00ffab);
    color: white;
    cursor: pointer;
    padding: 20px;
    border-radius: 50px;
    font-size: 20px;
    transition: all 0.3s ease;
}

#backToTopBtn:hover {
    filter: brightness(1.15);
    transform: translateY(-6px);
}

.update-notice {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    box-sizing: border-box;
    width: min(38rem, calc(100% - 2rem));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(115deg, #0f172a, #1c2526, #00d4ff, #00ffab);
    border: 3px solid #00d4ff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 30;
    overflow: auto;
}

.update-notice[hidden] {
    display: none;
}

.update-notice-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.update-notice button {
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    color: #00d4ff;
    background: #121212;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
}

.update-notice button:hover {
    color: #121212;
    background: #00d4ff;
}

.update-notice button:focus-visible {
    outline: 3px solid #f6e074;
    outline-offset: 2px;
}

.update-notice #dismissUpdate {
    width: 2.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
}

/* Entrance animation */

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive layout */

@media (max-width: 900px) {
    body {
        padding-left: 0;
    }

    body.nav-collapsed {
        padding-left: 0;
    }

    .section-inner {
        position: sticky;
        top: 0;
        bottom: auto;
        width: 100%;
        max-width: none;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem;
        border-radius: 0;
        overflow-x: auto;
        overflow-y: hidden;
        background-color: #121212;
        white-space: nowrap;
        border-bottom: 2.5px solid #00d4ff96;
        border-right: none;
    }

    .section-inner a {
        flex: 0 0 auto;
        min-height: 2.75rem;
        border-radius: 99px;
        border: 0.5px solid;
    }

    #navToggle,
    #mobile-hidden {
        display: none;
    }

    .section-inner.is-collapsed {
        width: 100%;
    }

    .nav-links {
        flex: 0 0 auto;
        flex-direction: row;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .profile-card {
        justify-content: center;
        width: auto;
        margin-bottom: 1rem;
    }

    .header-title {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }

    .header-title h1 {
        font-size: 2rem;
        overflow-wrap: anywhere;
    }

    .spotify-embeds {
        display: grid;
        gap: 1.5rem;
        list-style-type: none;
        padding: 0;
    }

    main {
        padding: 1rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-links img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 360px) {
    .header-title h1 {
        font-size: 1.3rem;
    }
}