﻿body {
    margin: 0;
    font-family: 'Cinzel', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', serif;
    background: radial-gradient(circle at top, #1a0f2b 0%, #0b0613 70%);
    color: #e6d9ff;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(20, 8, 35, 0.95);
    border-bottom: 1px solid #5b21b6;
    box-shadow: 0 0 20px rgba(126, 34, 206, 0.3);
}

.site-title {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 24px;
    color: #c084fc;
    text-shadow: 0 0 12px #7e22ce;
    text-decoration: none;
}

.nav-links a,
.social-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #d8b4fe;
    font-weight: 600;
    transition: 0.3s ease;
}

    .nav-links a:hover,
    .social-links a:hover {
        color: #ffffff;
        text-shadow: 0 0 10px #c084fc;
    }

/* MAIN CONTENT */
main {
    padding: 60px 40px;
    max-width: 1100px;
    margin: auto;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #5b21b6;
    margin-top: 60px;
    color: #7e22ce;
    font-size: 14px;
    opacity: 0.8;
}

.page-title {
    text-align: center;
    font-family: 'Uncial Antiqua', cursive;
    font-size: 42px;
    margin-bottom: 50px;
    color: #c084fc;
    text-shadow: 0 0 15px #7e22ce;
    letter-spacing: 2px;
}

/* Commands Styles */

.section-title {
    margin-top: 50px;
    margin-bottom: 18px;
    color: #a855f7;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Uncial Antiqua', cursive;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

    .section-title::before,
    .section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, #5b21b6);
    }

    .section-title::after {
        background: linear-gradient(90deg, #5b21b6, transparent);
    }

.command {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(45, 20, 75, 0.9), rgba(28, 12, 48, 0.9));
    border: 1px solid rgba(126, 34, 206, 0.35);
    border-top: 2px solid #7e22ce;
    padding: 20px 22px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(126, 34, 206, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

    .command::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(192, 132, 252, 0.12), transparent 60%);
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
    }

    .command:hover {
        border-top-color: #c084fc;
        border-color: rgba(192, 132, 252, 0.5);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 32px rgba(192, 132, 252, 0.4);
        transform: translateY(-5px);
    }

        .command:hover::after {
            opacity: 1;
        }

.command-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.command h3 {
    margin: 0;
    color: #e9d5ff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

    .command h3::before {
        content: '⚜';
        font-size: 13px;
        color: #a855f7;
        opacity: 0.85;
        flex-shrink: 0;
    }

.command p {
    margin: 0;
    color: #c4b5e0;
    font-size: 14.5px;
    line-height: 1.7;
    flex: 1 1 auto;
}

.command-footer {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(126, 34, 206, 0.2);
}

.cooldown-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(126, 34, 206, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    font-size: 11px;
    font-family: 'Cinzel', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', serif;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

    .cooldown-badge.no-cooldown {
        background: transparent;
        border-color: rgba(91, 33, 182, 0.2);
        color: #4a3060;
    }

/* Commands Search Bar */
.commands-search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.commands-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    background: rgba(35, 15, 60, 0.85);
    border: 1px solid rgba(126, 34, 206, 0.4);
    border-radius: 30px;
    padding: 10px 18px;
    box-shadow: 0 0 20px rgba(126, 34, 206, 0.15);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

    .commands-search-box:focus-within {
        border-color: rgba(192, 132, 252, 0.6);
        box-shadow: 0 0 28px rgba(192, 132, 252, 0.3);
    }

    .commands-search-box > .fa-search {
        color: #a855f7;
        font-size: 15px;
        flex-shrink: 0;
    }

.commands-search-input {
    flex: 1 1 auto;
    background: transparent;
    border: none;
    outline: none;
    color: #e9d5ff;
    font-family: 'Cinzel', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', serif;
    font-size: 15px;
    letter-spacing: 0.5px;
}

    .commands-search-input::placeholder {
        color: #7e6a9c;
    }

    /* Hide native search clear button (we use our own) */
    .commands-search-input::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
    }

.commands-search-clear {
    background: transparent;
    border: none;
    color: #a855f7;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

    .commands-search-clear:hover {
        color: #e9d5ff;
    }

/* Empty state when no commands match */
.commands-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b8a3d8;
}

.commands-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.commands-empty-state p {
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Commands Layout with Scroll-Spy Sidebar */
.commands-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    width: 90vw;
    max-width: 1600px;
    margin-left: calc(50% - 45vw);
    margin-right: calc(50% - 45vw);
}

@media (max-width: 1700px) {
    .commands-layout {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.commands-content {
    min-width: 0;
}

.commands-sidebar {
    position: sticky;
    top: 20px;
}

.scroll-spy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(35, 15, 60, 0.85);
    border: 1px solid rgba(91, 33, 182, 0.5);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 0 20px rgba(126, 34, 206, 0.2);
}

.spy-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #b8a3d8;
    text-decoration: none;
    font-family: 'Cinzel', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

    .spy-link:hover {
        background: rgba(126, 34, 206, 0.1);
        border-color: rgba(91, 33, 182, 0.3);
        color: #e9d5ff;
    }

    .spy-link.active {
        background: rgba(126, 34, 206, 0.25);
        border-color: #7e22ce;
        color: #e9d5ff;
        box-shadow: inset 0 0 10px rgba(126, 34, 206, 0.15);
    }

.spy-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5b21b6;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.spy-link.active .spy-dot {
    background: #c084fc;
    box-shadow: 0 0 8px #c084fc;
}

/* Commands Grid - 3 per row, cards don't stretch when alone */
.command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    justify-content: start;
}

.command-grid .command {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .commands-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .commands-sidebar {
        position: static;
    }

    .command-grid {
        grid-template-columns: 1fr;
    }
}

/* MAIN CONTAINER */
.artists-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ARTIST CARD */
.artist-card {
    border-radius: 16px;
    border: 1px solid rgba(91, 33, 182, 0.5);
    background: rgba(35, 15, 60, 0.85);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1100px;
    margin: auto;
    width: 100%;
    transition: all 0.3s ease;
}

    .artist-card:hover {
        border-color: rgba(192, 132, 252, 0.5);
        box-shadow: 0 0 35px rgba(126, 34, 206, 0.35);
        transform: translateY(-3px);
    }

/* AVATAR */
.artist-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
    flex-shrink: 0;
    animation: avatarGlow 3s infinite alternate;
    transition: transform 0.3s ease;
}

    .artist-avatar:hover {
        transform: scale(1.06);
    }

@keyframes avatarGlow {
    from {
        box-shadow: 0 0 12px rgba(192, 132, 252, 0.25);
    }

    to {
        box-shadow: 0 0 28px rgba(192, 132, 252, 0.7);
    }
}

/* CONTENT */
.artist-content {
    flex: 1;
}

/* HEADER — name + socials */
.artist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .artist-header h2 {
        margin: 0;
        color: #e9d5ff;
        font-size: 18px;
    }

/* SOCIAL ICONS */
.artist-socials {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(126, 34, 206, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

    .social-icon img {
        width: 18px;
        height: 18px;
        filter: brightness(0) saturate(100%) invert(79%) sepia(21%) saturate(694%) hue-rotate(230deg) brightness(102%) contrast(101%);
        opacity: 0.85;
        transition: filter 0.25s ease, opacity 0.25s ease;
    }

    .social-icon:hover {
        background: rgba(192, 132, 252, 0.25);
        border-color: #c084fc;
        box-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
        transform: scale(1.15);
    }

        .social-icon:hover img {
            filter: brightness(0) saturate(100%) invert(79%) sepia(21%) saturate(694%) hue-rotate(230deg) brightness(110%) contrast(105%) drop-shadow(0 0 6px #c084fc);
            opacity: 1;
        }

/* DIVIDER */
.artist-divider {
    height: 1px;
    background: rgba(91, 33, 182, 0.3);
    margin-bottom: 12px;
}

/* CONTRIBUTIONS */
.artist-contributions h3 {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Uncial Antiqua', cursive;
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #a855f7;
}

.artist-contributions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.artist-contributions li {
    line-height: 1.5;
    padding: 6px 12px;
    border-left: 2px solid #7e22ce;
    border-radius: 0 6px 6px 0;
    background: rgba(126, 34, 206, 0.08);
    font-size: 15px;
    color: #d8b4fe;
}

/* MOBILE */
@media (max-width: 768px) {
    .artist-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .artist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .artist-avatar {
        align-self: center;
    }
}