/* ----------------------------------------------
   🔥 FREE FIRE PLAYER INFO - COMPLETE STYLING
   ------------------------------------------------ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ---------- MAIN CONTAINER ---------- */
.container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* ---------- HEADING ---------- */
h1 {
    color: #fff;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

h1::before {
    content: '🎮 ';
}

/* ---------- SEARCH BOX ---------- */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
}

.search-box input:focus {
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.15);
}

.search-box input:focus::placeholder {
    opacity: 0.5;
}

.search-box button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6b35, #e63e00);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.search-box button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(255, 107, 53, 0.4);
}

.search-box button:active {
    transform: scale(0.96);
}

/* ---------- LOADING ---------- */
#loading {
    text-align: center;
    color: #ff6b35;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 0;
    letter-spacing: 0.5px;
}

#loading::after {
    content: ' ⌛';
    animation: dots 1.2s steps(4) infinite;
}

@keyframes dots {
    0% { content: ' ⌛'; }
    25% { content: ' ⌛.'; }
    50% { content: ' ⌛..'; }
    75% { content: ' ⌛...'; }
}

/* ---------- UTILITY HIDDEN ---------- */
.hidden {
    display: none !important;
}

/* ---------- PLAYER CARD ---------- */
.card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 25px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeSlideUp 0.5s ease forwards;
    margin-top: 10px;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- AVATAR ---------- */
.avatar {
    flex-shrink: 0;
}

.avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ff6b35;
    object-fit: cover;
    background: #1a1a2e;
    transition: transform 0.3s ease;
}

.avatar img:hover {
    transform: scale(1.05);
}

/* ---------- PLAYER INFO ---------- */
.player-info {
    flex: 1;
    min-width: 0;
}

.player-info h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.2;
}

.player-info h2::before {
    content: '🏷️ ';
    font-size: 18px;
}

.player-info p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-info p strong {
    color: #ff6b35;
    font-weight: 600;
    min-width: 60px;
}

/* ---------- ERROR MESSAGE ---------- */
.error {
    color: #ff6b6b;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding: 18px 20px;
    background: rgba(255, 68, 68, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 68, 68, 0.15);
    margin-top: 20px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 500px) {
    .container {
        padding: 28px 18px;
        border-radius: 18px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    .search-box input {
        padding: 12px 16px;
        font-size: 15px;
    }

    .search-box button {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 14px;
    }

    .avatar img {
        width: 70px;
        height: 70px;
    }

    .player-info h2 {
        font-size: 19px;
    }

    .player-info p {
        font-size: 13px;
        justify-content: center;
    }

    .player-info p strong {
        min-width: 50px;
    }

    #loading {
        font-size: 16px;
    }

    .error {
        font-size: 14px;
        padding: 14px 16px;
    }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e63e00;
}

/* ---------- SELECTION ---------- */
::selection {
    background: #ff6b35;
    color: #fff;
}
