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

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    padding: 20px;
}

/* Centralized Search Box */
.search-box {
    max-width: 500px;
    margin: 40px auto;
    position: relative;
    padding: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #333;
    border-radius: 30px;
    font-size: 16px;
    background-color: #333;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

input[type="text"]:hover,
input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.4);
    outline: none;
    background-color: #222;
}

/* Suggestions Styling */
.suggestions {
    display: none; /* Hide by default */
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 8px;
}

.suggestion-item:hover {
    background-color: #333;
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    vertical-align: middle;
}

/* Player Details Section */
.player-details {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background-color: #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.player-details h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #007bff;
}

.player-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.player-info {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Badge Container */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 10px;
    justify-content: center;
}

.badge-item {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Tab Container */
.tab-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.tabs {
    display: flex;
    background-color: #1f1f1f;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    background-color: #007bff;
    color: #ffffff;
    border-bottom: 2px solid #007bff;
}

.tab-btn:hover {
    background-color: #333;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: #222;
    color: #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.tab-content.active {
    display: block;
}

/* Inventory Grid */
.item-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.inventory-item {
    width: 120px;
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #e0e0e0;
}

.inventory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.inventory-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.inventory-item p {
    font-size: 14px;
    color: #bbb;
}

/* Section Headers */
h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: center;
    color: #007bff;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 10px;
        font-size: 14px;
    }

    .search-box {
        width: 90%;
        margin: 20px auto;
    }
}