/* Reset all margins and paddings */
body.u-body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Player Profile Container */
.u-section-player-profile {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
}

.player-profile-container {
    max-width: 768px;
    width: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    position: relative;
    box-sizing: border-box;
}

.player-profile-container * {
    box-sizing: border-box;
}

/* Back Button */
.player-back-btn {
    position: absolute;
    top: 10px;
    left: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s;
}

.player-back-btn:hover {
    opacity: 0.7;
}

.player-back-btn svg {
    display: block;
}

/* Profile Section */
.player-profile-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 20px 0px 20px !important;
    gap: 15px;
    min-height: 250px;
}

.player-info {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.player-avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 0 20px 0 !important;
    background: #1a1a1a;
    flex-shrink: 0;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-text-info {
    display: flex;
    flex-direction: column;
}

.player-username {
    font-size: 36px;
    font-weight: 400;
    margin: 0 !important;
    margin-bottom: 8px !important;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    line-height: 1;
}

.player-location {
    font-size: 17px;
    color: #888;
    margin: 0 !important;
    line-height: 1.2;
}

.player-equipment-box {
    flex: 1;
    max-width: 380px;
    min-width: 280px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
}

.player-equipment-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ribbons Table */
.ribbons-table {
    position: absolute;
    top: 20%;
    left: 62%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* gap: 1px; */
    z-index: 10;
}

.ribbon-cell {
    width: 15px;
    height: 6px;
    background: #555;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ribbon-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stats Section */
.player-stats {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #222;
    padding: 0 20px 15px 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 400;
    color: rgb(238, 138, 4);
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-size: 14px;
    color: #fff;
	font-display: bold;
}

/* Action Buttons */
.player-actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 20px 20px;
}

.btn-edit-profile,
.btn-create-team {
    flex: 1;
    padding: 6px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    transition: opacity 0.3s;
}

.btn-edit-profile {
    background: transparent;
    color: #fff;
    border: 2px solid #444;
    order: 1;
}

.btn-edit-profile:hover {
    opacity: 0.8;
    border-color: #666;
}

.btn-create-team {
    background: #404040;
    color: #fff;
    order: 2;
}

.btn-create-team:hover {
    opacity: 0.9;
}

/* Tabs */
.player-tabs {
    display: flex;
    gap: 40px;
    padding: 0 20px;
    border-bottom: 1px solid #222;
    justify-content: center;
}

.tab-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    font-weight: 400;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    font-family: 'Oswald', sans-serif;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #aaa;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

.tab-soon-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: rgb(238, 138, 4);
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px 20px;
}

.tab-content.active {
    display: block;
}

/* Progress Content */
.progress-content {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 15px;
    width: auto;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
    margin: 10px 0;
    position: relative;
}

.progress-soon-badge {
    position: absolute !important;
    top: -8px !important;
    right: 10px !important;
    left: auto !important;
    transform: none !important;
    background: rgb(238, 138, 4);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Rank Section */
.rank-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.rank-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.rank-name {
    color: #ffffff99;
    font-size: 10px;
    margin: 0;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.rank-level {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

/* Experience Section */
.experience-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.experience-label {
    color: #ffffff99;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.2;
}

.experience-points {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #0a0a0a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #666666;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-percentage {
    color: #ffffff99;
    font-size: 11px;
    margin: 0;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    line-height: 1.2;
}

/* Player Data Section */
.player-data-section {
    margin-top: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 20px 0;
    color: #fff;
    font-family: 'Oswald', sans-serif;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.data-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border-radius: 8px;
}

.data-content {
    flex: 1;
}

.data-label {
    font-size: 14px;
    color: #888;
    margin: 0 0 5px 0;
}

.data-value {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

/* Equipment Tab */
.equipment-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.equipment-empty p {
    font-size: 16px;
    margin: 0;
}

/* Ribbons Modal */
.ribbons-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.ribbons-modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.ribbons-modal-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    position: relative;
}

.ribbons-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    transition: opacity 0.3s;
}

.ribbons-modal-close:hover {
    opacity: 0.7;
}

.ribbons-modal h2 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 10px 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
}

.ribbons-modal-description {
    color: #888;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.ribbons-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.ribbons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ribbon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ribbon-large {
    width: 100%;
    height: 40px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

.ribbon-name {
    color: #fff;
    font-size: 11px;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .player-profile-section {
        gap: 10px;
        min-height: 250px;
    }

    .player-equipment-box {
        max-width: 350px;
        min-width: 250px;
        height: 250px;
    }

    .ribbons-table {
        /* gap: 1px; */
        grid-template-columns: repeat(4, 1fr);
    }

    .ribbon-cell {
        width: 14px;
        height: 5px;
    }

    .ribbons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .player-profile-section {
        padding: 50px 20px 15px 20px;
        gap: 15px;
        align-items: center;
        min-height: 300px;
    }

    .player-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }

    .player-avatar {
        width: 60px;
        height: 60px;
        margin: 0 0 10px 0 !important;
        flex-shrink: 0;
    }

    .player-text-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .player-username {
        font-size: 1.5rem !important;
        margin: 0 0 4px 0 !important;
    }

    .player-location {
        font-size: 14px;
        margin: 0 !important;
    }

    .player-equipment-box {
        min-width: 140px;
        max-width: 250px;
        height: 300px;
        padding: 5px;
    }

    .ribbons-table {
        top: 20%;
        /* gap: 0.5px; */
        grid-template-columns: repeat(4, 1fr);
    }

    .ribbon-cell {
        width: 12px;
        height: 5px;
    }

    .player-stats {
        padding: 0 20px 15px 20px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }

    .player-actions {
        flex-direction: row;
        padding: 15px 20px;
        gap: 10px;
    }

    .btn-edit-profile,
    .btn-create-team {
        flex: 1;
        padding: 8px 15px;
        font-size: 14px;
    }

    .player-tabs {
        padding: 0 20px;
        gap: 30px;
    }

    .tab-btn {
        font-size: 16px;
        padding: 12px 0;
    }

    .tab-soon-badge {
        font-size: 7px;
        padding: 1px 5px;
        top: -3px;
        right: -8px;
    }

    .tab-content {
        padding: 20px;
    }

    .ribbons-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .ribbons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .ribbon-large {
        height: 35px;
    }

    .ribbon-name {
        font-size: 10px;
    }
}
