/*
Theme Name:  RateBros
Theme URI:   https://ratebros.com
Author:      RateBros
Description: Official theme for ratebros.com — dark blue community football valuator
Version:     1.0.0
License:     GPL-2.0-or-later
Text Domain: ratebros
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:     #16283d;
    --bg2:    #1d3350;
    --bg3:    #243d5e;
    --bg4:    #2a476e;
    --blue:   #1565c0;
    --blue2:  #1e88e5;
    --blue3:  #5aabf0;
    --blue4:  #a8d4f5;
    --gold:   #f5c518;
    --white:  #e2eeff;
    --muted:  #6d9bbf;
    --green:  #43a047;
    --red:    #e53935;
    --radius: 10px;
    --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--white);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--blue3); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 900;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }

/* =============================================
   TOPBAR — language switcher
   ============================================= */
.rb-topbar {
    background: #0d1f35;
    border-bottom: 1px solid #1e3a5a;
    padding: 5px 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}
.rb-topbar strong { color: var(--blue3); }
.rb-lang-wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rb-lang-btn {
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid #243d5e;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.rb-lang-btn:hover,
.rb-lang-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* =============================================
   NAVIGATION
   ============================================= */
.rb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: var(--bg);
    border-bottom: 1px solid #1e3a5a;
    position: sticky;
    top: 0;
    z-index: 200;
}
.rb-logo-outer { flex-shrink: 0; }
.rb-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}
.rb-logo em { color: var(--gold); font-style: normal; }
.rb-logo-tld { font-size: .65rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 8px; text-transform: lowercase; }
.rb-nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}
.rb-nav-menu a {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    transition: color .15s;
}
.rb-nav-menu a:hover,
.rb-nav-menu .current-menu-item a { color: var(--white); }
.rb-nav-right { display: flex; gap: 8px; align-items: center; }

/* Member chip (shown when logged in) */
.rb-member-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg2);
    border: 1px solid var(--bg4);
    border-radius: 20px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    transition: border-color .15s;
    text-decoration: none;
}
.rb-member-chip:hover { border-color: var(--blue2); }
.rb-member-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff;
}
.rb-member-chip span { font-size: 13px; font-weight: 600; color: var(--white); }

/* =============================================
   BUTTONS
   ============================================= */
.rb-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all .15s;
    text-decoration: none;
    line-height: 1;
}
.rb-btn-blue  { background: var(--blue); color: #fff; }
.rb-btn-blue:hover { background: var(--blue2); color: #fff; }
.rb-btn-outline { background: transparent; border: 1.5px solid var(--blue2); color: var(--blue3); }
.rb-btn-outline:hover { background: var(--blue2); color: #fff; }
.rb-btn-gold  { background: var(--gold); color: #0a1520; }
.rb-btn-gold:hover { opacity: .88; color: #0a1520; }

/* =============================================
   LAYOUT WRAPPERS
   ============================================= */
.rb-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.rb-section   { padding: 2.5rem 0; }

/* =============================================
   HERO — homepage
   ============================================= */
.rb-hero {
    text-align: center;
    padding: 4rem 1.5rem 2.5rem;
}
.rb-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: var(--blue3);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}
.rb-hero-title {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
    margin-bottom: .4rem;
}
.rb-hero-title em { color: var(--gold); font-style: normal; }
.rb-hero-sub  { font-size: 1rem; color: var(--muted); margin-bottom: .2rem; }
.rb-hero-sub strong { color: var(--blue3); }
.rb-hero-tagline { font-size: .9rem; color: #3d6b90; margin-bottom: 2rem; font-style: italic; }

/* SEARCH BAR */
.rb-search-wrap {
    display: flex;
    max-width: 580px;
    margin: 0 auto 1.5rem;
    background: var(--bg2);
    border: 1.5px solid #2a476e;
    border-radius: var(--radius);
    overflow: hidden;
}
.rb-search-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 13px 18px;
    font-size: 15px;
    color: var(--white);
    font-family: inherit;
}
.rb-search-wrap input::placeholder { color: var(--muted); }
.rb-search-wrap button {
    padding: 13px 22px;
    background: var(--blue);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: background .15s;
    white-space: nowrap;
}
.rb-search-wrap button:hover { background: var(--blue2); }

/* HERO STATS */
.rb-hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.rb-hstat .num { font-size: 1.4rem; font-weight: 900; color: var(--gold); }
.rb-hstat .lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* =============================================
   DIVIDER
   ============================================= */
.rb-divider { height: 1px; background: #1e3a5a; margin: 0; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.rb-sec-label {
    font-size: 10px; font-weight: 700; letter-spacing: 3px;
    color: var(--blue3); text-transform: uppercase; margin-bottom: .4rem;
}
.rb-sec-title {
    font-size: 1.4rem; font-weight: 900; letter-spacing: .5px;
    text-transform: uppercase; margin-bottom: 1.2rem;
}

/* =============================================
   VIDEO GRID
   ============================================= */
.rb-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 12px;
}
.rb-vcard {
    background: var(--bg2);
    border: 1px solid #1e3a5a;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, border-color .2s;
}
.rb-vcard:hover { transform: translateY(-4px); border-color: #2a5080; }
.rb-vthumb {
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg3);
}
.rb-play {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
}
.rb-play::after {
    content: '';
    width: 0; height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 13px solid #fff;
    margin-left: 3px;
}
.rb-plat {
    font-size: 9px; font-weight: 700;
    padding: 2px 7px; border-radius: 3px; letter-spacing: .5px;
}
.rb-plat-yt { background: var(--red); color: #fff; }
.rb-plat-tt { background: #111; border: 1px solid #444; color: #fff; }
.rb-vinfo { padding: 9px 11px; }
.rb-vinfo p { font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 4px; }
.rb-vinfo span { font-size: 11px; color: var(--blue3); font-weight: 600; }

/* =============================================
   TOP 10 TABLE
   ============================================= */
.rb-top10-wrap {
    background: var(--bg2);
    border: 1px solid #1e3a5a;
    border-radius: var(--radius);
    overflow: hidden;
}
.rb-top10-hdr {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 80px 115px 90px 80px;
    padding: 10px 18px;
    font-size: 10px; font-weight: 700;
    color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.5px;
    border-bottom: 1px solid #1e3a5a;
}
.rb-top10-row {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 80px 115px 90px 80px;
    padding: 12px 18px;
    align-items: center;
    border-bottom: 1px solid #11243a;
    transition: background .15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.rb-top10-row:last-child { border-bottom: none; }
.rb-top10-row:hover { background: rgba(21,101,192,.1); }
.rb-rank { font-size: 1.15rem; font-weight: 900; color: var(--muted); }
.rb-rank.r1 { color: var(--gold); }
.rb-rank.r2 { color: #b0c8d8; }
.rb-rank.r3 { color: #a07060; }
.rb-pinfo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rb-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg3);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: var(--blue3);
    flex-shrink: 0; border: 1px solid #2a476e;
}
.rb-pname { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-pclub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-pos-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 3px; letter-spacing: .5px;
}
.rb-pos-FWD { background: rgba(229,57,53,.18); color: #ef9a9a; }
.rb-pos-MID { background: rgba(67,160,71,.18);  color: #a5d6a7; }
.rb-pos-DEF { background: rgba(30,136,229,.18); color: #90caf9; }
.rb-pos-GK  { background: rgba(245,197,24,.18); color: var(--gold); }
.rb-bval    { font-size: 1rem; font-weight: 900; color: var(--gold); }
.rb-mval    { font-size: 11px; color: var(--muted); }

/* =============================================
   JOIN / REGISTER SECTION
   ============================================= */
.rb-join-box {
    background: var(--bg2);
    border: 1px solid #2a476e;
    border-radius: 14px;
    padding: 3rem 2rem;
    text-align: center;
}
.rb-join-box h2 { font-size: 1.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .5rem; }
.rb-join-box p  { color: var(--muted); margin-bottom: 2rem; font-size: 14px; max-width: 480px; margin-left: auto; margin-right: auto; }
.rb-join-form   { display: flex; gap: 10px; max-width: 540px; margin: 0 auto 1.5rem; flex-wrap: wrap; justify-content: center; }
.rb-join-form input {
    flex: 1; min-width: 140px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1.5px solid #2a476e;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: inherit; font-size: 13px; outline: none;
}
.rb-join-form input:focus { border-color: var(--blue2); }
.rb-join-form input::placeholder { color: var(--muted); }
.rb-perks { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
.rb-perk  { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.rb-perk-check {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--blue); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.rb-perk-check::after {
    content: '';
    width: 5px; height: 3px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translate(1px,-1px);
}

/* Verify code inputs */
.rb-code-wrap { display: flex; gap: 8px; justify-content: center; margin-bottom: .75rem; }
.rb-code-digit {
    width: 44px; height: 48px; text-align: center;
    background: var(--bg2); border: 1.5px solid #2a476e;
    border-radius: var(--radius-sm); color: var(--white);
    font-size: 1.2rem; font-weight: 700; font-family: inherit; outline: none;
}
.rb-code-digit:focus { border-color: var(--blue2); }

/* =============================================
   FOOTER
   ============================================= */
.rb-footer {
    text-align: center;
    padding: 2rem;
    color: #2a4f70;
    font-size: 11px;
    border-top: 1px solid #1e3a5a;
    margin-top: 3rem;
}
.rb-footer strong { color: var(--blue2); }
.rb-footer a { color: var(--blue3); }

/* =============================================
   CONTENT AREA (for shortcode pages)
   ============================================= */
.rb-page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.entry-content { background: transparent; color: var(--white); }
.entry-title   { color: var(--white); }

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.rb-toast {
    position: fixed; bottom: 22px; right: 22px;
    background: var(--green); color: #fff;
    padding: 11px 18px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 700;
    z-index: 9999; opacity: 0;
    transform: translateY(12px);
    transition: all .3s; pointer-events: none;
}
.rb-toast.show { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 700px) {
    .rb-nav-menu { display: none; }
    .rb-top10-hdr, .rb-top10-row {
        grid-template-columns: 36px minmax(0,1fr) 70px 100px;
    }
    .rb-top10-hdr .col-mv,  .rb-top10-row .col-mv,
    .rb-top10-hdr .col-act, .rb-top10-row .col-act { display: none; }
    .rb-video-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}