/* --- VARIABLES --- */
:root {
    --bg-dark: #1e1e1e;
    --text-white: #fff;
    --accent-orange: #ff6b35;
    /* Growth/Action Orange */
    --gold-accent: #C5A059;
    --font-tech: "Garamond", serif;
    --font-sans: "Garamond", serif;
}

body.pixi-rank-body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    margin: 0;
    overflow-x: hidden;
}



.text-gold {
    color: var(--gold-accent);
}

/* --- HERO --- */
.rank-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    background: radial-gradient(circle at top, #2a2a2a, #1e1e1e);
}

.hero-center {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.rank-hero h1 {
    font-family: var(--font-tech);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight-search {
    color: var(--accent-orange);
}

.rank-hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 50px;
}

/* SEARCH UI */
.search-engine-ui {
    background: #fff;
    color: #000;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.search-bar {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    color: #555;
    font-family: sans-serif;
}

.search-bar i {
    color: #999;
}

.search-results {
    position: relative;
    min-height: 200px;
}

.result-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    opacity: 0;
    /* JS reveal */
}

.top-rank {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-orange);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.r-url {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-icon {
    color: var(--accent-orange);
}

.r-title {
    color: #1a0dab;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-decoration: underline;
}

.r-desc {
    color: #545454;
    font-size: 0.9rem;
}

.blur {
    opacity: 0.5;
    filter: blur(2px);
}


/* --- SYSTEM (LADDER) --- */
.rank-system {
    padding: 100px 5%;
    background: #222;
}

.section-title {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
}

.ladder-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ladder-step {
    background: #333;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    border-left: 5px solid var(--accent-orange);
    transition: 0.3s;
}

.ladder-step:hover {
    transform: translateX(10px);
    background: #3a3a3a;
}

.step-num {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 5px;
    color: #fff;
}

.step-content p {
    color: #aaa;
    margin: 0;
}

.ladder-connector {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- LOCAL SEO --- */
.rank-local {
    padding: 100px 5%;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

@media(max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .local-text {
        order: 2;
    }

    .local-visual {
        order: 1;
        margin-bottom: 30px;
    }
}

.local-text h2 {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.local-stats {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat i {
    color: var(--accent-orange);
}

.local-visual {
    height: 400px;
    background: #333;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.map-ui {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-bg {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(#3a3a3a 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, #3a3a3a 0 1px, transparent 1px 100%);
    background-size: 50px 50px;
    opacity: 0.3;
}

.pin {
    position: absolute;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-main {
    top: 50%;
    left: 50%;
    background: var(--accent-orange);
    color: #fff;
    z-index: 10;
    font-weight: 700;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.pin-main::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.pin-other {
    width: 20px;
    height: 20px;
    background: #666;
}

.p1 {
    top: 30%;
    left: 30%;
}

.p2 {
    top: 70%;
    left: 60%;
}

.p3 {
    top: 40%;
    left: 80%;
}

.radius-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0px;
    height: 0px;
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
    opacity: 0.5;
}

/* --- CTA --- */
.rank-cta {
    padding: 100px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-cta h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-family: var(--font-tech);
}

.rank-btn {
    background: var(--accent-orange);
    color: #fff;
    padding: 15px 50px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: 0.3s;
    text-transform: uppercase;
}

.rank-btn:hover {
    background: #fff;
    color: #000;
}