/**
 * Ranking Page Style
 * Sử dụng common.css cho các style chung (fonts, breadcrumb, layout)
 */

/* Modern 2D Style - Ranking Page */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 0 20px;
    background: transparent;
    min-height: calc(100vh - 200px);
    padding-bottom: 0;
}

.container {
    max-width: 100%;
}

/* Override all headings to remove old comic style */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

/* Rankings Container */
.rankings-container {
    width: 100%;
    margin: 20px 0;
    padding: 0;
}

@media only screen and (min-width: 768px) {
    .rankings-container {
        margin: 30px 0;
    }
}

/* Breadcrumb - Match rongthansieucap.vn style */
.breadcrumb {
    padding-left: 0 !important;
    font-size: 15px;
    font-family: 'VJAMAI', sans-serif;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
}

@media only screen and (min-width: 768px) {
    .breadcrumb {
        font-size: 18px;
        padding-left: 0 !important;
    }
}

.breadcrumb:before {
    display: none !important;
    content: none !important;
}

.breadcrumb a,
.breadcrumb li {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb li:not(.current) {
    display: none;
}

.breadcrumb li + li:before {
    color: #ffffff;
    content: "/ ";
}

.breadcrumb li:last-child span {
    font-family: 'VJAMAI', sans-serif;
}

.main-title {
    font-family: 'VJAMAI', sans-serif !important;
    font-size: 24px !important;
    font-weight: normal !important;
    color: #ffffff !important;
    text-align: left !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
}

@media only screen and (min-width: 768px) {
    .main-title {
        font-size: 28px !important;
    }
}

/* Tabs Container */
.tabs-container {
    background: #ffffff;
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    padding: 6px;
}

@media only screen and (min-width: 1024px) {
    .tabs-container {
        padding: 15px 35px;
        border-width: 6px;
    }
}

.tab-navigation {
    display: flex;
    flex-direction: row;
    gap: 6px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.tab-btn {
    padding: 12px 24px;
    font-family: 'VJAMAI', sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: #ffffff;
    background: #d3d3d3;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%);
    flex: 0 0 auto;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    margin: 0 2px;
}

@media only screen and (min-width: 768px) {
    .tab-btn {
        font-size: 18px;
        padding: 14px 32px;
        min-width: 140px;
    }
}

.tab-btn:hover {
    background: #b0b0b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
    background: #000000;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.tab-btn.active:hover {
    background: #1a1a1a;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 15px 0;
}

@media only screen and (min-width: 768px) {
    .tab-content {
        padding: 20px 0;
    }
}

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

/* Ranking Table */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'VJAMAI', sans-serif;
}

.ranking-table thead {
    background: #efecde;
}

.ranking-table th {
    padding: 12px 8px;
    text-align: left;
    font-size: 14px;
    font-weight: normal;
    color: #291107;
    border-bottom: 2px solid #12181f;
}

@media only screen and (min-width: 768px) {
    .ranking-table th {
        padding: 16px;
        font-size: 16px;
    }
}

.ranking-table th:first-child {
    text-align: center;
    width: 80px;
}

.ranking-table th:last-child {
    text-align: right;
}

.ranking-table tbody tr {
    border-bottom: 1px solid #dfdfdf;
    transition: all 0.3s ease;
    background: #fff;
}

.ranking-table tbody tr:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.ranking-table td {
    padding: 12px 8px;
    font-size: 14px;
    color: #291107;
}

@media only screen and (min-width: 768px) {
    .ranking-table td {
        padding: 16px;
        font-size: 16px;
    }
}

.ranking-table td:first-child {
    text-align: center;
    font-weight: 600;
}

.ranking-table td:last-child {
    text-align: right;
}

.rank-number {
    font-weight: normal;
    color: #291107;
    font-size: 15px;
    font-family: 'VJAMAI', sans-serif;
}

.player-name {
    font-weight: normal;
    color: #291107;
    font-family: 'VJAMAI', sans-serif;
}

.power-value {
    color: #f64149;
    font-weight: normal;
    font-family: 'VJAMAI', sans-serif;
}

.money-value {
    color: #16a34a;
    font-weight: normal;
    font-family: 'VJAMAI', sans-serif;
}

.task-value {
    color: #2563eb;
    font-weight: normal;
    font-family: 'VJAMAI', sans-serif;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .rankings-container {
        padding: 0;
    }
    
    .tabs-container {
        padding: 6px;
        border-width: 4px;
    }
    
    .tab-navigation {
        flex-direction: row;
        gap: 3px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 90px;
        flex-shrink: 0;
    }
    
    .tab-content {
        padding: 15px 0;
    }
    
    .ranking-table {
        font-size: 13px;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 10px 6px;
    }
    
    .ranking-table th:first-child,
    .ranking-table td:first-child {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .tabs-container {
        padding: 5px;
    }
    
    .tab-navigation {
        gap: 2px;
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 8px 12px;
        min-width: 80px;
    }
    
    .ranking-table {
        font-size: 12px;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 8px 4px;
    }
    
    .rank-number {
        font-size: 12px;
    }
}
