/* f3-rankings.css */

/* Container & Grid */
.f3-rankings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.f3-rankings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .f3-rankings-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Card Styles */
.f3-ranking-card {
    position: relative;
    background-color: rgba(173, 19, 40, 0.1); /* bg-[#ad1328]/10 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(235, 235, 235, 0.1);
    border-radius: 1rem; /* rounded-2xl */
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.f3-ranking-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

/* Title Styles */
.f3-ranking-title {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: #EBEBEB;
    font-size: 1.25rem; /* text-xl */
    font-weight: 500;
    letter-spacing: 0.05em; /* tracking-wider */
    text-transform: uppercase;
}

.f3-title-text {
    position: relative;
    z-index: 10;
}

.f3-title-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #ad1328, transparent);
}

/* List & Athlete Items */
.f3-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.f3-athlete-item {
    position: relative;
    background-color: #EBEBEB;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.05);
}

.f3-athlete-item:hover {
    background-color: rgba(235, 235, 235, 0.9);
    transform: translateY(-2px);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.1);
}

/* Athlete Content Layout */
.f3-athlete-content {
    position: relative;
    display: flex;
    align-items: center;
    height: 4rem; /* h-16 */
    z-index: 5;
}

/* Rank Number */
.f3-athlete-rank {
    width: 3.5rem; /* w-14 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ad1328;
}

.f3-athlete-rank span {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    color: #EBEBEB;
}

/* Athlete Info (Name & Box) */
.f3-athlete-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 1rem;
    overflow: hidden;
}

.f3-athlete-name {
    margin: 0;
    font-weight: 700;
    font-size: 1.125rem; /* text-lg */
    letter-spacing: 0.05em;
    color: #ad1328;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f3-athlete-box {
    margin: 0;
    font-size: 0.875rem; /* text-sm */
    color: rgba(173, 19, 40, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Points Badge */
.f3-athlete-points {
    display: flex;
    align-items: center;
    padding-right: 0.75rem;
}

.f3-athlete-points span {
    background-color: #ad1328;
    color: #EBEBEB;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Background Logo */
.f3-athlete-bg-logo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

/* Corners Decoration */
.f3-corner {
    position: absolute;
    width: 0.75rem; /* w-3 */
    height: 0.75rem; /* h-3 */
    border-color: #ad1328;
    border-style: solid;
    z-index: 10;
}

.f3-top-left {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px; /* border-t-2 border-l-2 */
}

.f3-top-right {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0; /* border-t-2 border-r-2 */
}

.f3-bottom-left {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px; /* border-b-2 border-l-2 */
}

.f3-bottom-right {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0; /* border-b-2 border-r-2 */
}

/* Separator Line */
.f3-athlete-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(173, 19, 40, 0.1);
}

/* Footer Button */
.f3-ranking-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.f3-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid #EBEBEB;
    border-radius: 0.5rem;
    color: #EBEBEB;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.f3-btn:hover {
    background-color: rgba(235, 235, 235, 0.1);
    color: #EBEBEB;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .f3-ranking-card {
        padding: 1rem;
    }
    
    .f3-athlete-content {
        height: 3rem; /* h-12 */
    }
    
    .f3-athlete-rank {
        width: 2.5rem; /* w-10 */
    }
    
    .f3-athlete-rank span {
        font-size: 1.25rem; /* text-xl */
    }
    
    .f3-athlete-name {
        font-size: 0.875rem; /* text-sm */
    }
    
    .f3-athlete-box {
        font-size: 0.75rem; /* text-xs */
    }
    
    .f3-athlete-points span {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem; /* text-sm */
    }
}
