@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

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

body {
    background-color: #4b4847;
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
    max-width: 580px;
    width: 100%;
}

.site-logo {
    width: 60px;
    height: 80px;
    border-radius: 8px;
}

.site-title {
    color: white;
    font-size: 64px;
    font-weight: 800;
}

.site-subtitle {
    color: rgb(255, 255, 255);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 1.5rem;
    max-width: 580px;
    width: 100%;
    text-align: center;
}

.search-container {
    display: flex;
    max-width: 580px;
    width: 100%;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 4px;
    gap: 0;
}

#username-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 30px;
    border: none;
    background: transparent;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    outline: none;
}

#search-btn {
    padding: 10px 24px;
    border-radius: 26px;
    border: none;
    background: #fcd1d7;
    color: #4b4847;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

#search-btn:hover {
    opacity: 0.85;
}

.pawncard {
    background: #3a3837;
    border-radius: 18px;
    padding: 3rem 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    position: relative;
}

#download-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

#download-btn:hover {
    background: rgba(252, 209, 215, 0.2);
    color: #fcd1d7;
}

.pawncard-summary {
    display: flex;
    align-items: center;
}

.profile-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 2rem;
    border-right: 1px solid rgba(252, 209, 215, 0.4);
}

#pfp {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#username-subtitle {
    color: white;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4px;
}

#location-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-left: 2rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.stat-value {
    color: white;
    font-size: 20px;
    font-weight: 800;
}

#country {
    width: 42px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    border: none;
    margin-top: 4px;
    display: none;
}

@media (max-width: 500px) {
    body {
        padding: 1rem;
    }

    .pawncard-summary {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-right: 0;
        padding-bottom: 1.5rem;
        width: 100%;
    }

    .info-section {
        padding-left: 0;
        align-items: center;
        width: 100%;
    }

    .feed-card {
        flex-direction: column;
    }

    .feed-left {
        width: 100%;
    }

    .feed-left > div {
        width: 100% !important;
    }
}

.ratings-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    width: 100%;
    padding-top: 24px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
}

.rating-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.rating-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.rating-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.rating-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rating-value {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
}

.rating-record {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: nowrap;
}

#pawncard-banner {
    display: none;
    background: #2a2928;
    margin: 1.5rem -2rem -3rem -2rem;
    padding: 10px 2rem;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#pawncard-banner span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

#pawncard-banner strong {
    color: rgba(255, 255, 255, 0.6);
}

.banner-logo {
    width: 14px;
    height: auto;
    object-fit: contain;
    opacity: 0.4;
}

#chess-logo {
    display: none;
    position: absolute;
    top: 12px;
    right: 30px;
    width: 100px;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
}

.feed-card {
    background: #3a3837;
    border-radius: 18px;
    padding: 1.5rem 2rem;
    max-width: 580px;
    width: 100%;
    display: flex;
    gap: 4rem;
    margin-top: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    position: relative;
}

.feed-left {
    flex: 0 0 auto;
}

.feed-right {
    flex: 1;
}

.feed-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    height: 100%;
}

.feed-matchup {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-player {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.feed-player.you {
    color: #fcd1d7;
}

.feed-player.opp {
    color: rgba(255, 255, 255, 0.6);
}

.feed-vs {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feed-colors {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-color-row {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
}

.feed-condition {
    display: block;
    color: #4caf7d;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.feed-accuracies {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-accuracy {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
}

.feed-win {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 700;
}

.feed-accuracies {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-accuracy {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
}

.acc-bubble {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.white-bubble {
    background: #ffffff;
}

.black-bubble {
    background: #555352;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feed-time-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.feed-header {
    max-width: 580px;
    width: 100%;
    margin: 2rem 0 1rem;
}

.feed-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
}

#feed {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 580px;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}