
/* ========================================
   FINDEZ - ROBLOX USER EXPLORER
   Dark grayscale interface
   ======================================== */

:root {
    color-scheme: dark;

    --bg: #1E1E1E;
    --surface: #252525;
    --card: #2E2E2E;
    --card-hover: #353535;
    --button: #3E3E3E;
    --button-hover: #505050;

    --border: #414141;
    --border-light: #505050;

    --text: #F5F5F5;
    --text-secondary: #B5B5B5;
    --text-muted: #858585;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --transition: 180ms ease;
}

/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: #505050 #1E1E1E;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

::selection {
    background: #686868;
    color: white;
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #454545;
    border: 2px solid var(--bg);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #626262;
}

/* ACCESSIBILITY */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid #BDBDBD;
    outline-offset: 4px;
}

/* HEADER */

.site-header {
    width: 100%;
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 0 7%;

    background: rgba(30, 30, 30, 0.92);
    border-bottom: 1px solid #303030;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--text);
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -1.3px;

    transition: opacity var(--transition);
}

.brand:hover {
    opacity: 0.8;
}

.brand-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: white;
    background: var(--button);

    border: 1px solid var(--border-light);
    border-radius: 11px;
}

.brand-icon svg {
    width: 21px;
    height: 21px;
}

.header-label {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

/* MAIN */

.main-content {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
    flex: 1;
}

/* HERO */

.hero {
    width: 100%;
    max-width: 680px;

    margin: 78px auto 46px;
    text-align: center;

    animation: fade-up 500ms ease both;
}

.eyebrow {
    display: inline-block;

    color: #A7A7A7;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.hero h1 {
    margin-top: 12px;

    color: var(--text);
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 780;
    letter-spacing: -3.5px;
    line-height: 1.12;
}

.hero h1 span {
    color: #929292;
}

.hero > p:not(.search-hint) {
    max-width: 480px;
    margin: 17px auto 0;

    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* SEARCH */

.search-form {
    width: 100%;
    max-width: 590px;
    min-height: 64px;

    display: flex;
    align-items: center;
    gap: 12px;

    margin: 32px auto 0;
    padding: 7px 8px 7px 18px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.search-form:focus-within {
    background: #292929;
    border-color: #777777;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
}

.search-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;

    color: #909090;
}

.search-form input {
    width: 100%;
    min-width: 0;
    height: 46px;

    color: var(--text);
    background: transparent;
    border: none;
    outline: none;

    font-size: 14px;
}

.search-form input::placeholder {
    color: #777777;
}

.search-form input:focus-visible {
    outline: none;
}

.search-form button {
    min-height: 46px;
    flex-shrink: 0;

    padding: 0 22px;

    color: white;
    background: var(--button);

    border: 1px solid #525252;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--transition),
        transform var(--transition);
}

.search-form button:hover {
    background: var(--button-hover);
}

.search-form button:active {
    transform: scale(0.97);
}

.search-form button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.search-hint {
    margin-top: 13px;
    color: var(--text-muted);
    font-size: 11px;
}

/* SEARCH STATUS */

.search-status {
    max-width: 590px;
    margin: 0 auto 28px;
    padding: 13px 16px;

    color: var(--text-secondary);
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    text-align: center;
    overflow-wrap: anywhere;
}

.search-status.error {
    color: #E0E0E0;
    background: #292929;
    border-color: #666666;
}

.search-status.success {
    color: #E0E0E0;
    border-color: #555555;
}

.search-status.loading::before {
    content: "";

    width: 13px;
    height: 13px;

    display: inline-block;
    vertical-align: -2px;

    margin-right: 10px;

    border: 2px solid #555555;
    border-top-color: #EEEEEE;
    border-radius: 50%;

    animation: spin 700ms linear infinite;
}

/* EMPTY STATE */

.empty-state {
    max-width: 590px;
    margin: 0 auto 80px;
    padding: 42px 20px;

    text-align: center;

    background: rgba(37, 37, 37, 0.5);
    border: 1px dashed #414141;
    border-radius: var(--radius-lg);

    animation: fade-up 500ms ease both;
}

.empty-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin: 0 auto 16px;

    color: #A0A0A0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.empty-icon svg {
    width: 26px;
    height: 26px;
}

.empty-state h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.empty-state p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

/* PROFILE */

.profile-section {
    margin-bottom: 65px;
    animation: fade-up 400ms ease both;
}

.profile-card {
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* PROFILE BANNER */

.profile-banner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 20px 28px;

    background:
        linear-gradient(
            120deg,
            #343434 0%,
            #292929 55%,
            #242424 100%
        );

    border-bottom: 1px solid var(--border);
}

.banner-label {
    color: #B5B5B5;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.8px;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #D0D0D0;
    font-size: 12px;
    font-weight: 600;

    transition: color var(--transition);
}

.external-link:hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* PROFILE IDENTITY */

.profile-main {
    display: flex;
    align-items: center;
    gap: 23px;

    padding: 28px;
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.avatar-image {
    width: 112px;
    height: 112px;

    object-fit: cover;

    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 8px;
    padding: 3px 8px;

    color: #EEEEEE;
    background: #3A3A3A;
    border: 1px solid #555555;
    border-radius: 6px;

    font-size: 10px;
    font-weight: 650;
}

.profile-identity {
    min-width: 0;
    flex: 1;
}

.profile-identity h2 {
    overflow-wrap: anywhere;

    font-size: clamp(21px, 3vw, 29px);
    font-weight: 750;
    letter-spacing: -1px;
    line-height: 1.3;
}

.profile-username {
    margin-top: 5px;

    color: var(--text-secondary);
    font-size: 14px;

    overflow-wrap: anywhere;
}

.profile-id-row {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 13px;

    color: var(--text-muted);
    font-size: 12px;
}

.profile-id-row code {
    color: #D6D6D6;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.icon-button {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;
    flex-shrink: 0;

    color: #A8A8A8;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 7px;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition);
}

.icon-button:hover {
    color: white;
    background: var(--button-hover);
}

.icon-button svg {
    width: 14px;
    height: 14px;
}

/* PROFILE STATISTICS */

.profile-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    padding: 0 28px 28px;
}

.detail-card {
    min-width: 0;
    padding: 17px 16px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    transition:
        background var(--transition),
        border-color var(--transition);
}

.detail-card:hover {
    background: var(--card-hover);
    border-color: var(--border-light);
}

.detail-label {
    display: block;

    color: #999999;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1px;
}

.detail-card p {
    margin-top: 8px;

    color: var(--text);
    font-size: 17px;
    font-weight: 700;

    overflow-wrap: anywhere;
}

/* DESCRIPTION */

.profile-description {
    margin: 0 28px 28px;
    padding: 23px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.profile-description h3 {
    font-size: 13px;
    font-weight: 750;
}

.profile-description p {
    margin-top: 10px;

    color: #C0C0C0;
    font-size: 13px;
    line-height: 1.9;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* EXTRA SECTIONS */

.extra-section {
    margin-top: 34px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.section-heading h2 {
    margin-top: 5px;

    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* MEDIA CARDS */

.media-card {
    min-width: 0;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    transition:
        transform var(--transition),
        border-color var(--transition);
}

.media-card:hover {
    transform: translateY(-3px);
    border-color: #606060;
}

.media-preview {
    min-height: 230px;

    display: grid;
    place-items: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at center,
            #383838 0%,
            #292929 62%,
            #242424 100%
        );

    border-bottom: 1px solid var(--border);
}

.media-preview img {
    width: 150px;
    height: 150px;

    object-fit: contain;

    border-radius: 12px;
}

.avatar-full-preview img {
    width: 180px;
    height: 180px;
}

.media-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 17px 19px;
}

.media-info h3 {
    font-size: 13px;
    font-weight: 750;
}

.media-info p {
    margin-top: 3px;

    color: var(--text-muted);
    font-size: 11px;
}

.media-link {
    flex-shrink: 0;

    padding: 7px 11px;

    color: #E0E0E0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;

    font-size: 11px;
    font-weight: 650;

    transition: background var(--transition);
}

.media-link:hover {
    background: var(--button-hover);
}

/* FOOTER */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    padding: 23px 7%;

    color: var(--text-muted);
    background: #1A1A1A;
    border-top: 1px solid #303030;

    font-size: 11px;
}

/* ANIMATIONS */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* TABLETS */

@media (max-width: 760px) {
    .site-header {
        min-height: 68px;
        padding: 0 5%;
    }

    .main-content {
        width: min(100% - 32px, 600px);
    }

    .hero {
        margin-top: 58px;
    }

    .profile-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-right: 20px;
        padding-left: 20px;
    }

    .profile-main {
        gap: 18px;
        padding: 23px 20px;
    }

    .profile-banner {
        padding-right: 20px;
        padding-left: 20px;
    }

    .profile-description {
        margin-right: 20px;
        margin-left: 20px;
    }

    .media-preview {
        min-height: 190px;
    }

    .media-preview img {
        width: 125px;
        height: 125px;
    }

    .avatar-full-preview img {
        width: 155px;
        height: 155px;
    }

    .site-footer {
        padding-right: 5%;
        padding-left: 5%;
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .site-header {
        min-height: 64px;
    }

    .brand {
        gap: 8px;
        font-size: 22px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .header-label {
        max-width: 110px;
        font-size: 8px;
        letter-spacing: 1px;
        text-align: right;
    }

    .main-content {
        width: calc(100% - 26px);
    }

    .hero {
        margin-top: 48px;
        margin-bottom: 34px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero > p:not(.search-hint) {
        font-size: 13px;
    }

    .search-form {
        min-height: 57px;
        gap: 8px;
        padding: 6px 6px 6px 12px;
        border-radius: 12px;
    }

    .search-icon {
        width: 18px;
        height: 18px;
    }

    .search-form input {
        height: 42px;
        font-size: 12px;
    }

    .search-form button {
        min-height: 42px;
        padding: 0 12px;
        font-size: 11px;
        border-radius: 8px;
    }

    .search-hint {
        font-size: 10px;
    }

    .empty-state {
        padding: 34px 16px;
        margin-bottom: 50px;
    }

    .profile-banner {
        min-height: 64px;
        padding: 15px;
    }

    .banner-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .external-link {
        font-size: 10px;
    }

    .profile-main {
        align-items: flex-start;
        gap: 14px;
        padding: 20px 15px;
    }

    .avatar-image {
        width: 82px;
        height: 82px;
        border-radius: 13px;
    }

    .profile-identity h2 {
        font-size: 20px;
        letter-spacing: -0.6px;
    }

    .profile-username {
        font-size: 12px;
    }

    .profile-id-row {
        gap: 6px;
        font-size: 10px;
    }

    .profile-id-row code {
        font-size: 10px;
    }

    .icon-button {
        width: 25px;
        height: 25px;
    }

    .profile-details {
        gap: 9px;
        padding: 0 15px 20px;
    }

    .detail-card {
        padding: 13px 11px;
    }

    .detail-label {
        font-size: 8px;
        letter-spacing: 0.6px;
    }

    .detail-card p {
        font-size: 15px;
    }

    .profile-description {
        margin: 0 15px 18px;
        padding: 17px;
    }

    .profile-description p {
        font-size: 12px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .media-preview {
        min-height: 215px;
    }

    .media-preview img {
        width: 140px;
        height: 140px;
    }

    .avatar-full-preview img {
        width: 165px;
        height: 165px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;

        padding: 20px 6%;
        font-size: 10px;
    }
}
