/* Ranking — dramatic full-bleed presentation */

.ranking-page {
    background: #121212;
    color: #fff;
    overflow-x: hidden;
}

/* ============================================================
   HERO — matches homepage stripe/panel/glow language
   ============================================================ */
.rank-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        repeating-linear-gradient(133deg, #181818 0px, #181818 28px, #151515 28px, #151515 56px);
}

.rank-hero::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 550px;
    background: var(--ufs-accent);
    top: -100px;
    right: 200px;
    transform: rotate(-55deg);
    box-shadow: 0 0 50px rgba(255,114,0,0.3);
    z-index: 1;
}

.rank-hero::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 500px;
    background: #1a1a1a;
    bottom: -120px;
    left: 60px;
    transform: rotate(40deg);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
    z-index: 1;
}

.rank-hero-glow {
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,114,0,0.09) 0%, transparent 65%);
    top: 50%; left: 55%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.rank-hero-line {
    position: absolute;
    z-index: 1;
}

.rank-hero-line.l1 {
    width: 300px; height: 3px;
    top: 20%; right: 10%;
    transform: rotate(-45deg);
    background: var(--ufs-accent);
    box-shadow: 0 0 14px rgba(255,114,0,0.5);
    opacity: 0.7;
}

.rank-hero-line.l2 {
    width: 220px; height: 3px;
    bottom: 25%; left: 8%;
    transform: rotate(30deg);
    background: rgba(255,255,255,0.1);
}

.rank-hero-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(transparent, #121212);
    z-index: 2;
}

.rank-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.rank-hero-particle {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--ufs-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,114,0,0.4);
    animation: particleDrift linear infinite;
    opacity: 0;
}

@keyframes particleDrift {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.rank-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.rank-hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--ufs-accent);
    text-transform: uppercase;
    border: 1px solid rgba(255,114,0,0.25);
    padding: 0.4rem 1.2rem;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}

.rank-hero-content h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    letter-spacing: -1px;
}

.rank-hero-content h1 em {
    font-style: normal;
    color: var(--ufs-accent);
    position: relative;
}

.rank-hero-content h1 em::after {
    content: "";
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 4px;
    background: var(--ufs-accent);
    opacity: 0.3;
    border-radius: 2px;
}

.rank-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 3rem;
}

/* Hero stat ring */
.rank-hero-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 2.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 60px;
    display: inline-flex;
}

.rank-hero-stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ufs-accent);
    line-height: 1;
}

.rank-hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-align: left;
    line-height: 1.3;
}

.rank-hero-stat-label strong {
    display: block;
    color: #fff;
    font-size: 0.85rem;
}

/* ============================================================
   SECTION — full bleed alternating
   ============================================================ */
.rank-section {
    position: relative;
    padding: 6rem 2rem;
}

.rank-section.dark {
    background: #0d0d0d;
}

.rank-section.mid {
    background: #141414;
}

.rank-section.glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(255,114,0,0.06) 0%, #0d0d0d 60%);
}

.rank-section.accent {
    background: linear-gradient(180deg, rgba(255,114,0,0.06) 0%, #0d0d0d 100%);
}

.rank-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.rank-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--ufs-accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.rank-heading {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.rank-heading span {
    color: var(--ufs-accent);
}

.rank-lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 0 2rem;
}

/* ============================================================
   SPLIT-SCREEN VS
   ============================================================ */
.rank-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.rank-split-side {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-split-side.wrong {
    background: linear-gradient(135deg, rgba(220,53,69,0.08), rgba(220,53,69,0.02));
    border-right: 1px solid rgba(220,53,69,0.1);
}

.rank-split-side.right {
    background: linear-gradient(135deg, rgba(255,114,0,0.08), rgba(255,114,0,0.02));
}

.rank-split-side h3 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rank-split-side.wrong h3 { color: #dc3545; }
.rank-split-side.right h3 { color: var(--ufs-accent); }

.rank-split-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rank-split-side li {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}

.rank-split-side.wrong li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: 700;
    font-size: 0.8rem;
}

.rank-split-side.right li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--ufs-accent);
    font-weight: 700;
    font-size: 0.8rem;
}

/* ============================================================
   FACTOR CARDS — large, icon-forward
   ============================================================ */
.rank-factors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.rank-factor-large {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.rank-factor-large::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ufs-accent), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.rank-factor-large:hover {
    transform: translateY(-4px);
    border-color: rgba(255,114,0,0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.rank-factor-large:hover::before {
    opacity: 1;
}

.rank-factor-large .factor-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,114,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--ufs-accent);
    margin-bottom: 1rem;
}

.rank-factor-large h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.rank-factor-large p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.rank-factor-large .factor-why {
    font-size: 0.72rem;
    color: var(--ufs-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ============================================================
   STATS COUNTER STRIP
   ============================================================ */
.rank-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.rank-stat-block {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255,255,255,0.015);
    border-right: 1px solid rgba(255,255,255,0.04);
}

.rank-stat-block:last-child {
    border-right: none;
}

.rank-stat-block .stat-big {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ufs-accent);
    line-height: 1;
}

.rank-stat-block .stat-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   MANIPULATION SECTION — warnings
   ============================================================ */
.rank-warnings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rank-warning {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.rank-warning:hover {
    border-color: rgba(220,53,69,0.3);
}

.rank-warning .warn-icon {
    font-size: 1.3rem;
    color: #dc3545;
    margin-bottom: 0.75rem;
    display: block;
}

.rank-warning h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.rank-warning p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   ADVANTAGE BANNER
   ============================================================ */
.rank-advantage-banner {
    background: linear-gradient(135deg, rgba(255,114,0,0.06), rgba(255,114,0,0.01));
    border: 1px solid rgba(255,114,0,0.12);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rank-advantage-banner::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,114,0,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.rank-advantage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    position: relative;
}

.rank-adv-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}

.rank-adv-item i {
    color: var(--ufs-accent);
    font-size: 0.7rem;
}

/* ============================================================
   CLOSING QUOTE
   ============================================================ */
.rank-closing {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.rank-closing .closing-words {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    font-style: italic;
}

.rank-closing .closing-words strong {
    font-weight: 700;
    color: var(--ufs-accent);
    font-style: normal;
}

.rank-closing .closing-bar {
    width: 60px;
    height: 3px;
    background: var(--ufs-accent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .rank-factors-grid { grid-template-columns: 1fr 1fr; }
    .rank-stats-strip { grid-template-columns: 1fr 1fr; }
    .rank-warnings { grid-template-columns: 1fr; }
    .rank-split { grid-template-columns: 1fr; }
    .rank-split-side.wrong { border-right: none; border-bottom: 1px solid rgba(220,53,69,0.1); }
    .rank-advantage-grid { grid-template-columns: 1fr; }
    .rank-section { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
    .rank-hero-content h1 { font-size: 2.2rem; }
    .rank-heading { font-size: 1.7rem; }
    .rank-factors-grid { grid-template-columns: 1fr; }
    .rank-stats-strip { grid-template-columns: 1fr 1fr; }
    .rank-stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.04); }    .rank-split-side { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .rank-hero-content h1 { font-size: 1.7rem; }
    .rank-stats-strip { grid-template-columns: 1fr; }
    .rank-section { padding: 3rem 1rem; }
    .rank-advantage-banner { padding: 2rem 1.25rem; }
}
