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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2d3436 0%, #4a5759 100%);
    color: #fff;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.profile-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 40px;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    border: 4px solid #fff;
}

.username {
    font-size: 42px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.location {
    text-align: center;
    color: #bbb;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    font-size: 20px;
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.content-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.section-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.gear-grid, .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gear-item, .spec-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s;
}

.gear-item:hover, .spec-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.gear-image, .spec-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
}

/* Font Awesome icon styling for specs */
i.spec-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.6);
}

.gear-category, .spec-category {
    color: #ffd700;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.gear-name, .spec-name {
    font-size: 16px;
    font-weight: bold;
}

.ranks-section {
    margin-bottom: 40px;
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.rank-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 18px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-card:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.rank-game {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.rank-image {
    width: 80px;
    height: 80px;
    margin: 10px auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transition: all 0.3s;
}

.rank-card:hover .rank-image {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.rank-value {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    line-height: 1.1;
}

.rank-label {
    color: #bbb;
    font-size: 13px;
    margin-bottom: 18px;
    opacity: 0.8;
}

.rank-peak {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
}

.cs2-stats {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cs2-stat-row {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.cs2-stat-item {
    font-size: 11px;
    color: #ccc;
    background: rgba(255, 255, 255, 0.04);
    padding: 7px 12px;
    border-radius: 8px;
    flex: 1;
    min-width: fit-content;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.cs2-stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.2);
}

.cs2-stat-item strong {
    color: #ffd700;
    display: block;
    font-size: 9px;
    margin-bottom: 3px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs2-stat-divider {
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 8px 0 4px 0;
    padding-top: 0;
    border-top: none;
    font-weight: 600;
    text-align: center;
    opacity: 0.6;
}

.games-section {
    margin-top: 40px;
}

.game-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-tab {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.game-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.game-tab.active {
    background: #ffd700;
    color: #000;
}

.game-settings {
    display: none;
}

.game-settings.active {
    display: block;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.setting-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.setting-label {
    color: #bbb;
    font-size: 14px;
    flex-shrink: 0;
}

.setting-value {
    font-weight: bold;
    color: #ffd700;
    word-break: break-all;
    text-align: right;
    overflow-wrap: break-word;
}

.setting-divider {
    grid-column: 1 / -1;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0 5px 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}
