/* Posh Trophy Case Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.posh-trophy-case {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.trophy-case-header {
    text-align: center;
    margin-bottom: 30px;
}

.trophy-case-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 2.2em;
}

.trophy-case-header h2 i {
    color: #f39c12;
    margin-right: 10px;
}

.trophy-case-subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
    font-weight: 400;
}


.trophy-case-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-weight: 400;
}

.trophy-case-empty i {
    font-size: 4em;
    margin-bottom: 20px;
    color: #ecf0f1;
}

/* Rank Advancement Section */
.rank-advancement-section {
    margin-bottom: 40px;
}

.rank-advancement-header {
    text-align: center;
    margin-bottom: 25px;
}

.rank-advancement-header h3 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.rank-advancement-header h3 i {
    color: #f39c12;
    margin-right: 10px;
}

.rank-advancement-header p {
    color: #7f8c8d;
    font-weight: 400;
    font-size: 1em;
}

.rank-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.rank-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
}

.rank-timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.rank-timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #000;
    z-index: 2;
}

/* Rank-specific circle colors */
.rank-timeline-item:has(.rank-1)::before,
.rank-timeline-item:has(.rank-2)::before,
.rank-timeline-item:has(.rank-3)::before,
.rank-timeline-item:has(.rank-4)::before {
    background: #000 !important;
    box-shadow: 0 0 0 3px #000 !important;
}

.rank-timeline-item:has(.rank-5)::before {
    background: #E0457B !important;
    box-shadow: 0 0 0 3px #E0457B !important;
}

.rank-timeline-item:has(.rank-6)::before,
.rank-timeline-item:has(.rank-7)::before,
.rank-timeline-item:has(.rank-8)::before {
    background: #EAA26D !important;
    box-shadow: 0 0 0 3px #EAA26D !important;
}

.rank-timeline-item:has(.rank-9)::before {
    background: #0ABAB5 !important;
    box-shadow: 0 0 0 3px #0ABAB5 !important;
}

.rank-timeline-item:has(.rank-10)::before,
.rank-timeline-item:has(.rank-11)::before,
.rank-timeline-item:has(.rank-12)::before,
.rank-timeline-item:has(.rank-13)::before,
.rank-timeline-item:has(.rank-14)::before,
.rank-timeline-item:has(.rank-15)::before,
.rank-timeline-item:has(.rank-16)::before,
.rank-timeline-item:has(.rank-17)::before,
.rank-timeline-item:has(.rank-18)::before,
.rank-timeline-item:has(.rank-19)::before,
.rank-timeline-item:has(.rank-20)::before,
.rank-timeline-item:has(.rank-21)::before,
.rank-timeline-item:has(.rank-22)::before,
.rank-timeline-item:has(.rank-23)::before {
    background: #375275 !important;
    box-shadow: 0 0 0 3px #375275 !important;
}

/* Stop the timeline line at the last item (Rank 1) */
.rank-timeline-item.last-item::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(0%);
    width: 2px;
    height: 50%;
    background: white;
    z-index: 1;
}

.rank-timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #f39c12;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.rank-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.rank-timeline-content h4 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3em;
    margin: 0;
    flex: 1;
}

.rank-timeline-date {
    color: #bdc3c7;
    font-weight: 500;
    font-size: 0.9em;
    text-align: right;
}

/* Rank Color Coding based on Advocate Dashboard section-rank.php */
.rank-timeline-content.rank-1,
.rank-timeline-content.rank-2,
.rank-timeline-content.rank-3,
.rank-timeline-content.rank-4 {
    border-left-color: #000 !important; /* Black border for ranks 1-4 */
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.rank-timeline-content.rank-1 h4,
.rank-timeline-content.rank-2 h4,
.rank-timeline-content.rank-3 h4,
.rank-timeline-content.rank-4 h4 {
    color: #000 !important;
}

.rank-timeline-content.rank-1 .rank-timeline-date,
.rank-timeline-content.rank-2 .rank-timeline-date,
.rank-timeline-content.rank-3 .rank-timeline-date,
.rank-timeline-content.rank-4 .rank-timeline-date {
    color: #000 !important;
}

.rank-timeline-content.rank-5 {
    border-left-color: #E0457B; /* Pink for rank 5 */
    background: #E0457B;
    color: #fff;
}

.rank-timeline-content.rank-5 h4 {
    color: #fff;
}

.rank-timeline-content.rank-5 .rank-timeline-date {
    color: #fff;
}

.rank-timeline-content.rank-6,
.rank-timeline-content.rank-7,
.rank-timeline-content.rank-8 {
    border-left-color: #000; /* Black border for ranks 6-8 */
    background: #EAA26D; /* Orange background */
    color: #000;
}

.rank-timeline-content.rank-6 h4,
.rank-timeline-content.rank-7 h4,
.rank-timeline-content.rank-8 h4 {
    color: #000;
}

.rank-timeline-content.rank-6 .rank-timeline-date,
.rank-timeline-content.rank-7 .rank-timeline-date,
.rank-timeline-content.rank-8 .rank-timeline-date {
    color: #000;
}

.rank-timeline-content.rank-9 {
    border-left-color: #0ABAB5; /* Teal for rank 9 */
    background: #0ABAB5;
    color: #fff;
}

.rank-timeline-content.rank-9 h4 {
    color: #fff;
}

.rank-timeline-content.rank-9 .rank-timeline-date {
    color: #fff;
}

.rank-timeline-content.rank-10,
.rank-timeline-content.rank-11,
.rank-timeline-content.rank-12,
.rank-timeline-content.rank-13,
.rank-timeline-content.rank-14,
.rank-timeline-content.rank-15,
.rank-timeline-content.rank-16,
.rank-timeline-content.rank-17,
.rank-timeline-content.rank-18,
.rank-timeline-content.rank-19,
.rank-timeline-content.rank-20,
.rank-timeline-content.rank-21,
.rank-timeline-content.rank-22,
.rank-timeline-content.rank-23 {
    border-left-color: #375275; /* Dark blue for ranks 10+ */
    background: #375275;
    color: #fff;
}

.rank-timeline-content.rank-10 h4,
.rank-timeline-content.rank-11 h4,
.rank-timeline-content.rank-12 h4,
.rank-timeline-content.rank-13 h4,
.rank-timeline-content.rank-14 h4,
.rank-timeline-content.rank-15 h4,
.rank-timeline-content.rank-16 h4,
.rank-timeline-content.rank-17 h4,
.rank-timeline-content.rank-18 h4,
.rank-timeline-content.rank-19 h4,
.rank-timeline-content.rank-20 h4,
.rank-timeline-content.rank-21 h4,
.rank-timeline-content.rank-22 h4,
.rank-timeline-content.rank-23 h4 {
    color: #fff;
}

.rank-timeline-content.rank-10 .rank-timeline-date,
.rank-timeline-content.rank-11 .rank-timeline-date,
.rank-timeline-content.rank-12 .rank-timeline-date,
.rank-timeline-content.rank-13 .rank-timeline-date,
.rank-timeline-content.rank-14 .rank-timeline-date,
.rank-timeline-content.rank-15 .rank-timeline-date,
.rank-timeline-content.rank-16 .rank-timeline-date,
.rank-timeline-content.rank-17 .rank-timeline-date,
.rank-timeline-content.rank-18 .rank-timeline-date,
.rank-timeline-content.rank-19 .rank-timeline-date,
.rank-timeline-content.rank-20 .rank-timeline-date,
.rank-timeline-content.rank-21 .rank-timeline-date,
.rank-timeline-content.rank-22 .rank-timeline-date,
.rank-timeline-content.rank-23 .rank-timeline-date {
    color: #fff;
}

.trophy-case-error {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

@media (max-width: 768px) {
    .trophy-grid {
        grid-template-columns: 1fr;
    }
    
    .trophy-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trophy-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
