/* ============================================
   isocial — Simple Clean Dark Reskin
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    color: #f1f1f1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* Brand */
.brand { margin-bottom: 40px; }

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #fff 30%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.9375rem;
    color: #6b6b7b;
    margin-top: 6px;
    font-weight: 500;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #141419;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    text-decoration: none;
    color: #f1f1f1;
    font-size: 1rem;
    font-weight: 600;
    transition: all 180ms ease;
    cursor: pointer;
}

.link:hover {
    background: #1a1a21;
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.link:active {
    transform: scale(0.99);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon svg { width: 22px; height: 22px; }

.link > span { flex: 1; text-align: left; }

.link-arrow {
    width: 16px;
    height: 16px;
    color: #555;
    transition: color 180ms ease, transform 180ms ease;
    flex-shrink: 0;
}

.link:hover .link-arrow {
    color: #888;
    transform: translateX(2px);
}

/* Platform accents */
.snapchat .link-icon { background: rgba(255,252,0,0.1); color: #fffc00; }
.tiktok .link-icon { background: rgba(0,242,234,0.1); color: #00f2ea; }
.instagram .link-icon { background: rgba(228,64,95,0.1); color: #e4405f; }
.telegram .link-icon { background: rgba(0,136,204,0.1); color: #0088cc; }

/* Focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 380px) {
    .logo { font-size: 2rem; }
    .link { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ============================================
   Best Friends page
   ============================================ */
.bf-page {
    padding-top: 24px;
    justify-content: flex-start;
    gap: 16px;
}

.bf-back {
    display: inline-block;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    background: #141419;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    transition: all 180ms ease;
    max-width: max-content;
}
.bf-back:hover {
    background: #1a1a21;
    transform: translateY(-1px);
}

.bf-container {
    background: #141419;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 24px 22px;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.bf-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0a0a0f;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 10px 16px;
    margin-bottom: 24px;
}
.bf-search-icon {
    width: 18px;
    height: 18px;
    color: #6b6b7b;
    flex-shrink: 0;
}
.bf-search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    color: #f1f1f1;
    font-family: inherit;
}
.bf-search-input::placeholder { color: #6b6b7b; }

.bf-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fffc00;
    margin: 0 0 4px;
}
.bf-subtitle {
    font-size: 0.875rem;
    color: #6b6b7b;
    margin: 0 0 18px;
    font-weight: 500;
}

.bf-avatars-banner {
    background: #fffc00;
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.bf-avatars-banner img {
    width: 100%;
    height: auto;
    max-height: 130px;
    object-fit: contain;
    display: block;
}

.bf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.bf-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    border-radius: 12px;
    transition: background 180ms ease;
    cursor: pointer;
}
.bf-item + .bf-item {
    border-top: 1px solid rgba(255,255,255,0.04);
}
.bf-item:hover {
    background: #1a1a21;
}

.bf-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #141419, 0 0 0 3px rgba(255,255,255,0.08);
}

.bf-info {
    flex: 1;
    min-width: 0;
}
.bf-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f1f1;
    margin: 0 0 2px;
}
.bf-meta {
    font-size: 0.8rem;
    color: #6b6b7b;
    font-weight: 500;
    margin: 0;
}
.bf-score {
    color: #ff0050;
    font-weight: 700;
}
.bf-streak {
    color: #ff8a3d;
    font-weight: 700;
}

.bf-emoji {
    font-size: 1.4rem;
    flex-shrink: 0;
}

@media (max-width: 380px) {
    .bf-title { font-size: 1.5rem; }
    .bf-container { padding: 20px 18px; }
    .bf-avatar { width: 40px; height: 40px; font-size: 0.8rem; }
}

/* Best Friends — dynamic additions (img-based avatars, shuffle button, header) */
.bf-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.bf-header > div { min-width: 0; }
.bf-header .bf-subtitle { margin-bottom: 0; }

.bf-shuffle {
    background: #141419;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f1f1f1;
    flex-shrink: 0;
    margin-top: 4px;
    padding: 0;
    transition: background 180ms ease, transform 220ms cubic-bezier(.4,1.6,.6,1);
}
.bf-shuffle:hover { background: #1a1a21; }
.bf-shuffle:active { transform: scale(0.94); }
.bf-shuffle.spinning { transform: rotate(180deg); }
.bf-shuffle svg { width: 18px; height: 18px; }

img.bf-avatar {
    object-fit: cover;
    background: #1a1a21;
    /* override flex/typography from the div variant above */
    font-weight: normal;
    color: transparent;
    font-size: 0;
}

.bf-loading {
    list-style: none;
    text-align: center;
    color: #6b6b7b;
    font-size: 0.875rem;
    padding: 24px 0;
}
