/* ============================================
   ratebros.com — Front-end Styles
   ============================================ */

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

/* General */
.rb-btn {
    display: inline-block;
    padding: 9px 18px;
    background: var(--rb-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    font-family: inherit;
}
.rb-btn:hover { background: var(--rb-blue2); color: #fff; text-decoration: none; }
.rb-btn-gold  { background: var(--rb-gold); color: #0a1520; }
.rb-btn-gold:hover { opacity: .88; background: var(--rb-gold); }
.rb-btn-full  { width: 100%; display: block; text-align: center; }

/* Top 10 Table */
.rb-top10 { margin: 20px 0; }
.rb-table { width: 100%; border-collapse: collapse; background: var(--rb-bg2); border-radius: var(--rb-radius); overflow: hidden; }
.rb-table th { background: var(--rb-blue); color: #fff; padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: left; }
.rb-table td { padding: 12px 14px; border-bottom: 1px solid #162d45; color: var(--rb-white); font-size: 14px; vertical-align: middle; }
.rb-table tr:last-child td { border-bottom: none; }
.rb-table tr:hover td { background: rgba(21,101,192,.08); }
.rb-rank { font-size: 1.1rem; font-weight: 900; color: var(--rb-muted); }
.rb-brosrate { font-weight: 900; color: var(--rb-gold); }

/* Position badges */
.rb-pos { 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: #f5c518; }

/* Player Profile */
.rb-player-profile { max-width: 1060px; margin: 0 auto; font-family: inherit; }
.rb-profile-header { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start; background: var(--rb-bg2); border: 1px solid #1e3a5a; border-radius: var(--rb-radius); padding: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 700px) { .rb-profile-header { grid-template-columns: 1fr; } }

.rb-profile-photo { display: flex; justify-content: center; }
.rb-photo-img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #2a476e; }
.rb-photo-initials { width: 110px; height: 110px; border-radius: 50%; background: var(--rb-bg3); border: 3px solid #2a476e; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; color: var(--rb-blue3); }

.rb-player-name { font-size: 1.8rem; font-weight: 900; color: var(--rb-white); margin-bottom: .4rem; }
.rb-profile-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .7rem; }
.rb-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; background: rgba(30,136,229,.12); color: var(--rb-blue3); border: 1px solid #2a476e; }
.rb-profile-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: 13px; color: var(--rb-muted); }
.rb-profile-meta strong { color: var(--rb-white); }

/* Bros Rate card */
.rb-brosrate-card { background: var(--rb-bg); border: 2px solid rgba(245,197,24,.22); border-radius: 12px; padding: 1.1rem 1.3rem; min-width: 200px; text-align: center; }
.rb-brosrate-lbl  { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--rb-gold); margin-bottom: .2rem; }
.rb-brosrate-site { font-size: 11px; color: var(--rb-muted); margin-bottom: .6rem; }
.rb-brosrate-val  { font-size: 2.2rem; font-weight: 900; color: var(--rb-gold); line-height: 1; margin-bottom: .15rem; }
.rb-brosrate-votes { font-size: 11px; color: var(--rb-muted); margin-bottom: .7rem; }
.rb-brosrate-market { font-size: 12px; color: var(--rb-muted); margin-bottom: .8rem; }
.rb-brosrate-market strong { color: var(--rb-white); }
.rb-rate-now-btn { width: 100%; padding: 9px; background: var(--rb-gold); border: none; border-radius: 6px; color: #0a1520; font-size: 13px; font-weight: 900; cursor: pointer; font-family: inherit; text-transform: uppercase; display: block; text-align: center; text-decoration: none; }
.rb-rate-now-btn:hover { opacity: .88; text-decoration: none; }

.rb-contract { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid #2a476e; }
.rb-contract-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--rb-muted); margin-bottom: .4rem; }
.rb-contract-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--rb-muted); margin-bottom: 2px; }
.rb-contract-row strong { color: var(--rb-white); }

.rb-my-rating-display { font-size: 12px; color: var(--rb-muted); margin-top: .5rem; }
.rb-my-rating-display strong { color: var(--rb-gold); }

/* Status badges */
.rb-status { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.rb-status-approved { background: rgba(67,160,71,.18); color: #a5d6a7; }
.rb-status-pending  { background: rgba(251,140,0,.18);  color: #ffcc80; }
.rb-status-adjusted { background: rgba(30,136,229,.18); color: #90caf9; }
.rb-status-rejected { background: rgba(229,57,53,.18);  color: #ef9a9a; }

/* Valuation entries */
.rb-valuations-section { background: var(--rb-bg2); border: 1px solid #1e3a5a; border-radius: var(--rb-radius); padding: 1.2rem; }
.rb-section-title { font-size: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: var(--rb-blue3); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid #1e3a5a; }
.rb-val-entry { background: var(--rb-bg); border: 1px solid #243d5e; border-radius: 8px; padding: .9rem; margin-bottom: .7rem; }
.rb-val-entry:last-child { margin-bottom: 0; }
.rb-val-top { display: flex; align-items: center; gap: 10px; margin-bottom: .6rem; }
.rb-val-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--rb-bg3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--rb-blue3); flex-shrink: 0; }
.rb-val-name   { font-size: 13px; font-weight: 700; color: var(--rb-white); }
.rb-val-time   { font-size: 11px; color: var(--rb-muted); }
.rb-val-amount { font-size: 1.1rem; font-weight: 900; color: var(--rb-gold); margin-left: auto; }
.rb-val-comment { font-size: 13px; color: #a8d4f5; border-left: 2px solid #2a476e; padding: .4rem .7rem; margin-bottom: .6rem; border-radius: 0 4px 4px 0; }
.rb-val-actions { display: flex; align-items: center; gap: 10px; }
.rb-like-btn, .rb-dislike-btn { font-size: 12px; font-weight: 600; padding: 4px 10px; border: 1px solid #2a476e; border-radius: 4px; background: transparent; color: var(--rb-muted); cursor: pointer; font-family: inherit; transition: all .15s; }
.rb-like-btn:hover,    .rb-like-btn.active    { background: rgba(67,160,71,.15);  border-color: var(--rb-green); color: #a5d6a7; }
.rb-dislike-btn:hover, .rb-dislike-btn.active { background: rgba(229,57,53,.15); border-color: var(--rb-red);   color: #ef9a9a; }
.rb-val-likes, .rb-val-dislikes { font-size: 12px; color: var(--rb-muted); }
.rb-empty { color: var(--rb-muted); font-size: 14px; text-align: center; padding: 1.5rem; }

/* Modal */
.rb-modal-backdrop { position: fixed; inset: 0; background: rgba(5,14,26,.88); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.rb-modal { background: #1d3350; border: 1px solid #2a476e; border-radius: 14px; padding: 1.8rem; max-width: 420px; width: 92%; position: relative; }
.rb-modal-close { position: absolute; top: 13px; right: 15px; background: transparent; border: none; color: var(--rb-muted); font-size: 22px; cursor: pointer; line-height: 1; }
.rb-modal h2 { font-size: 1.1rem; font-weight: 900; color: var(--rb-white); margin-bottom: .4rem; }
.rb-modal-context { font-size: 12px; color: var(--rb-muted); background: var(--rb-bg); border: 1px solid #2a476e; border-radius: 6px; padding: .6rem .9rem; margin-bottom: 1rem; }
.rb-modal-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rb-blue3); display: block; margin-bottom: .4rem; }
.rb-input-eur-wrap { display: flex; align-items: center; background: var(--rb-bg); border: 1.5px solid #2a476e; border-radius: 6px; overflow: hidden; margin-bottom: .3rem; }
.rb-eur-sym { padding: 9px 11px; font-size: 1rem; font-weight: 800; color: var(--rb-gold); background: #101e2e; border-right: 1px solid #2a476e; }
.rb-input { flex: 1; background: transparent; border: none; outline: none; padding: 9px 13px; font-size: 1rem; font-weight: 700; color: var(--rb-white); font-family: inherit; width: 100%; }
.rb-hint { font-size: 11px; color: var(--rb-muted); margin-bottom: .9rem; }
.rb-quick-picks { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1rem; }
.rb-quick-picks button { font-size: 11px; font-weight: 700; padding: 4px 9px; border: 1px solid #2a476e; border-radius: 4px; color: var(--rb-blue3); cursor: pointer; background: transparent; font-family: inherit; transition: all .15s; }
.rb-quick-picks button:hover { background: var(--rb-blue); border-color: var(--rb-blue); color: #fff; }
.rb-textarea { width: 100%; background: var(--rb-bg); border: 1.5px solid #2a476e; border-radius: 6px; padding: 9px 12px; color: var(--rb-white); font-family: inherit; font-size: 13px; resize: none; outline: none; }
.rb-textarea:focus { border-color: var(--rb-blue2); }
.rb-char-counter { text-align: right; font-size: 11px; color: var(--rb-muted); margin-bottom: .3rem; }
.rb-modal-note { font-size: 11px; color: var(--rb-muted); text-align: center; margin-top: .6rem; }

/* Registration form */
.rb-register-form { max-width: 460px; margin: 0 auto; background: var(--rb-bg2); border: 1px solid #1e3a5a; border-radius: var(--rb-radius); padding: 2rem; }
.rb-register-form h3 { font-size: 1.2rem; font-weight: 900; color: var(--rb-white); margin-bottom: 1rem; }
.rb-input { display: block; width: 100%; padding: 10px 14px; background: var(--rb-bg); border: 1.5px solid #2a476e; border-radius: 6px; color: var(--rb-white); font-family: inherit; font-size: 14px; outline: none; margin-bottom: .7rem; }
.rb-input:focus { border-color: var(--rb-blue2); }
.rb-input::placeholder { color: var(--rb-muted); }
.rb-code-wrap { display: flex; gap: 8px; justify-content: center; margin-bottom: 1rem; }
.rb-code-digit { width: 44px; height: 48px; text-align: center; background: var(--rb-bg); border: 1.5px solid #2a476e; border-radius: 6px; color: var(--rb-white); font-size: 1.2rem; font-weight: 700; font-family: inherit; outline: none; }
.rb-code-digit:focus { border-color: var(--rb-blue2); }
.rb-form-note { font-size: 12px; color: var(--rb-muted); text-align: center; margin-top: .8rem; }
.rb-form-note a { color: var(--rb-blue3); }
.rb-message { padding: .8rem 1rem; border-radius: 6px; font-size: 13px; margin-top: .8rem; }
.rb-message.success { background: rgba(67,160,71,.15); border: 1px solid rgba(67,160,71,.3); color: #a5d6a7; }
.rb-message.error   { background: rgba(229,57,53,.15); border: 1px solid rgba(229,57,53,.3); color: #ef9a9a; }
.rb-already-member  { font-size: 14px; color: var(--rb-muted); }

/* Search */
.rb-search-wrap { margin: 20px 0; }
.rb-search-input { display: block; width: 100%; padding: 13px 18px; background: var(--rb-bg2); border: 1.5px solid #2a476e; border-radius: var(--rb-radius); color: var(--rb-white); font-family: inherit; font-size: 15px; outline: none; margin-bottom: .8rem; }
.rb-search-input:focus { border-color: var(--rb-blue2); }
#rb-search-results { margin-top: .8rem; }
