/* ===================================
   inting.lol — League of Legends Theme
   =================================== */

:root {
    --gold-1:    #C89B3C;
    --gold-2:    #F0E6D3;
    --gold-3:    #A07830;
    --blue-1:    #0BC4E3;
    --blue-2:    #1E3A5F;
    --blue-dark: #091428;
    --bg:        #0A0E1A;
    --bg-card:   #0F1626;
    --bg-input:  #060D1A;
    --border:    #1E2B3C;
    --border-gold: rgba(200, 155, 60, 0.3);
    --text:      #D8C8A8;
    --text-muted:#7A8BA0;
    --text-bright:#F0E6D3;
    --red:       #E84057;
    --green:     #00C851;
    --rank-iron:     #6B6B6B;
    --rank-bronze:   #8C5123;
    --rank-silver:   #8F9EA6;
    --rank-gold:     #C89B3C;
    --rank-platinum: #0C9496;
    --rank-emerald:  #1BA15A;
    --rank-diamond:  #576BCE;
    --rank-master:   #9D48E0;
    --rank-grandmaster: #D0393B;
    --rank-challenger: #F4C96D;
    --radius: 6px;
    --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

a { color: var(--gold-1); text-decoration: none; }
a:hover { color: var(--gold-2); }

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-3); }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(6, 10, 20, 0.95);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-1);
    letter-spacing: 0.05em;
    text-transform: lowercase;
    flex-shrink: 0;
}
.navbar-logo span { color: var(--text-bright); }

.navbar-search {
    flex: 1;
    max-width: 480px;
}

.navbar-search form {
    display: flex;
    gap: 0;
}

.navbar-search input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-right: none;
    color: var(--text-bright);
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    transition: border-color 0.2s;
}
.navbar-search input:focus { border-color: var(--gold-3); }
.navbar-search input::placeholder { color: var(--text-muted); }

.navbar-search select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-right: none;
    color: var(--text-muted);
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.navbar-search button {
    background: var(--gold-1);
    border: none;
    color: var(--bg);
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: background 0.2s;
}
.navbar-search button:hover { background: var(--gold-2); }

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    list-style: none;
    flex-shrink: 0;
}

.navbar-nav a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.navbar-nav a:hover { color: var(--gold-1); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-gold {
    background: var(--gold-1);
    color: var(--bg);
}
.btn-gold:hover { background: var(--gold-2); color: var(--bg); }

.btn-outline {
    background: transparent;
    color: var(--gold-1);
    border: 1px solid var(--gold-3);
}
.btn-outline:hover { background: rgba(200,155,60,0.1); color: var(--gold-2); }

.btn-danger {
    background: var(--red);
    color: #fff;
}
.btn-danger:hover { background: #c02040; }

.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
    background:
        linear-gradient(180deg, rgba(10,14,26,0) 0%, var(--bg) 100%),
        linear-gradient(135deg, #060D1A 0%, #0F1B2D 50%, #060D1A 100%);
    border-bottom: 1px solid var(--border-gold);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200,155,60,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 20% 100%, rgba(11,196,227,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
}

.hero-title .accent { color: var(--gold-1); }

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search form {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 0 40px rgba(200,155,60,0.08);
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-bright);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    outline: none;
}
.hero-search input::placeholder { color: var(--text-muted); }

.hero-search select {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
}

.hero-search button {
    background: var(--gold-1);
    border: none;
    color: var(--bg);
    padding: 0 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.03em;
}
.hero-search button:hover { background: var(--gold-2); }

.hero-hints {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.hero-hints span { color: var(--text); }

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container-sm {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.card-gold {
    border-color: var(--border-gold);
    box-shadow: 0 0 20px rgba(200,155,60,0.05);
}

.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-1);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===== PROFILE HEADER ===== */
.profile-header {
    background:
        linear-gradient(180deg, var(--blue-2) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 0% 50%, rgba(11,196,227,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.profile-header-inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
}

.profile-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--gold-1);
    background: var(--bg);
}

.profile-level-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--gold-3);
    color: var(--gold-1);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.profile-info { flex: 1; min-width: 0; }

.profile-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.2;
}
.profile-name .tag { color: var(--text-muted); font-weight: 400; font-size: 1.1rem; }

.profile-region-badge {
    display: inline-block;
    background: rgba(11,196,227,0.1);
    border: 1px solid rgba(11,196,227,0.3);
    color: var(--blue-1);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
}

.profile-rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.stars {
    display: flex;
    gap: 2px;
}
.star { color: #3A3A3A; font-size: 1rem; }
.star.filled { color: var(--gold-1); }
.star.half { color: var(--gold-3); }

.rating-count { color: var(--text-muted); font-size: 0.85rem; }

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ===== RANK CARDS ===== */
.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-emblem {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    border: 2px solid currentColor;
}

.rank-info { flex: 1; min-width: 0; }
.rank-queue { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.rank-tier { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.rank-lp { font-size: 0.8rem; color: var(--text-muted); }
.rank-wl { font-size: 0.75rem; margin-top: 0.25rem; }
.rank-wl .wins { color: var(--green); }
.rank-wl .losses { color: var(--red); }
.rank-wr { font-size: 0.75rem; color: var(--text-muted); }

/* Rank colors */
.rank-IRON        { color: var(--rank-iron); }
.rank-BRONZE      { color: var(--rank-bronze); }
.rank-SILVER      { color: var(--rank-silver); }
.rank-GOLD        { color: var(--rank-gold); }
.rank-PLATINUM    { color: var(--rank-platinum); }
.rank-EMERALD     { color: var(--rank-emerald); }
.rank-DIAMOND     { color: var(--rank-diamond); }
.rank-MASTER      { color: var(--rank-master); }
.rank-GRANDMASTER { color: var(--rank-grandmaster); }
.rank-CHALLENGER  { color: var(--rank-challenger); }
.rank-UNRANKED    { color: var(--text-muted); }

/* ===== CHAMPION MASTERY ===== */
.mastery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.mastery-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
    cursor: default;
}
.mastery-card:hover {
    border-color: var(--gold-3);
    transform: translateY(-2px);
}

.mastery-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.4rem;
    border-radius: 4px;
    background: var(--bg-card);
}

.mastery-name {
    font-size: 0.68rem;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mastery-pts {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.mastery-level-badge {
    display: inline-block;
    background: var(--gold-3);
    color: var(--bg);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-top: 2px;
}

/* ===== MATCH HISTORY ===== */
.match-list { display: flex; flex-direction: column; gap: 0.5rem; }

.match-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s;
}
.match-item:hover { border-color: var(--border-gold); }
.match-item.win  { border-left-color: var(--green); }
.match-item.loss { border-left-color: var(--red); }

.match-result {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    min-width: 34px;
}
.match-result.win  { color: var(--green); }
.match-result.loss { color: var(--red); }

.match-champ {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

.match-info { flex: 1; min-width: 0; }
.match-queue { font-size: 0.7rem; color: var(--text-muted); }
.match-champ-name { font-size: 0.85rem; font-weight: 600; color: var(--text-bright); }

.match-kda { font-size: 0.85rem; font-weight: 600; }
.match-kda .deaths { color: var(--red); }
.match-kda-ratio { font-size: 0.7rem; color: var(--text-muted); }

.match-damage { font-size: 0.75rem; color: var(--text-muted); text-align: right; }
.match-duration { font-size: 0.7rem; color: var(--text-muted); }

/* ===== LIVE GAME ===== */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(232,64,87,0.15);
    border: 1px solid rgba(232,64,87,0.4);
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.live-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.live-team-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.team-blue .live-team-title { color: #5B9BD5; }
.team-red  .live-team-title { color: var(--red); }

.live-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}
.live-player:last-child { border-bottom: none; }
.live-player img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
}
.live-player-name { color: var(--text-bright); font-weight: 500; }
.live-player-name.current { color: var(--gold-1); font-weight: 700; }
.live-player-rank { color: var(--text-muted); font-size: 0.7rem; margin-left: auto; }

/* ===== REVIEWS ===== */
.review-avg-big {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.review-avg-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold-1);
    line-height: 1;
}
.review-avg-detail { flex: 1; }
.review-avg-stars { margin-bottom: 0.25rem; }
.review-avg-count { font-size: 0.85rem; color: var(--text-muted); }

.review-bars { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.5rem; }
.review-bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.review-bar-track {
    flex: 1;
    height: 5px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
}
.review-bar-fill {
    height: 100%;
    background: var(--gold-1);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
    cursor: default;
}
.tag-positive { background: rgba(0,200,81,0.1);  border-color: rgba(0,200,81,0.3);  color: #00C851; }
.tag-negative { background: rgba(232,64,87,0.1); border-color: rgba(232,64,87,0.3); color: var(--red); }
.tag-neutral  { background: rgba(200,155,60,0.1);border-color: rgba(200,155,60,0.3);color: var(--gold-1); }
.tag-count    { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 0 5px; font-size: 0.65rem; }

.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}
.review-author { font-weight: 600; color: var(--text-bright); font-size: 0.9rem; }
.review-date { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.review-body { font-size: 0.875rem; color: var(--text); line-height: 1.6; margin-top: 0.5rem; }
.review-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }

/* ===== REVIEW FORM ===== */
.star-picker {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}
.star-picker input[type="radio"] { display: none; }
.star-picker label {
    font-size: 1.75rem;
    color: var(--border);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}
.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label { color: var(--border); }
.star-picker label:hover,
.star-picker input:checked + label,
.star-picker label.active { color: var(--gold-1); }

/* Reverse order trick for CSS-only star rating */
.star-picker { flex-direction: row-reverse; justify-content: flex-end; }
.star-picker label:hover,
.star-picker label:hover ~ label { color: var(--gold-1); }

.tags-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tags-picker input[type="checkbox"] { display: none; }
.tags-picker label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.tags-picker label:hover { border-color: var(--gold-3); color: var(--gold-1); }
.tags-picker input:checked + label {
    border-color: var(--gold-1);
    color: var(--gold-1);
    background: rgba(200,155,60,0.1);
}
.tags-picker label.positive-label:hover,
.tags-picker input:checked + label.positive-label { border-color: #00C851; color: #00C851; background: rgba(0,200,81,0.1); }
.tags-picker label.negative-label:hover,
.tags-picker input:checked + label.negative-label { border-color: var(--red); color: var(--red); background: rgba(232,64,87,0.1); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}
.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-bright);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}
.form-input:focus { border-color: var(--gold-1); }
.form-input::placeholder { color: var(--text-muted); }

.form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-bright);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}
.form-select:focus { border-color: var(--gold-1); }

textarea.form-input { resize: vertical; min-height: 90px; font-family: inherit; }

.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.alert-error   { background: rgba(232,64,87,0.1);  border: 1px solid rgba(232,64,87,0.3);  color: #FF6080; }
.alert-success { background: rgba(0,200,81,0.1);   border: 1px solid rgba(0,200,81,0.3);   color: #00C851; }
.alert-info    { background: rgba(11,196,227,0.1); border: 1px solid rgba(11,196,227,0.3); color: var(--blue-1); }

/* ===== AUTH PAGE ===== */
.auth-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 40px rgba(200,155,60,0.06);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 0.35rem;
}
.auth-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.auth-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

/* ===== SEARCH RESULTS ===== */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.player-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    color: inherit;
}
.player-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
}
.player-card-name {
    font-weight: 700;
    color: var(--text-bright);
    font-size: 0.95rem;
}
.player-card-tag { color: var(--text-muted); font-size: 0.8rem; }
.player-card-rank { font-size: 0.78rem; margin-top: 0.2rem; }
.player-card-stars { display: flex; gap: 2px; margin-top: 0.3rem; }

/* ===== GRID LAYOUT ===== */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .profile-grid {
        grid-template-columns: 340px 1fr;
    }
}

.profile-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-main    { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

/* ===== DIVIDER ===== */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: auto;
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--gold-1); }

/* ===== STATS ROW ===== */
.stat-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--text-bright); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== MODAL ===== */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop.open { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--text-bright); }

/* ===== SPINNER ===== */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--gold-1);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--border) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-search { display: none; }
    .profile-header-inner { flex-direction: column; }
    .profile-actions { flex-direction: row; }
    .live-teams { grid-template-columns: 1fr; }
    .rank-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 1rem 2.5rem; }
    .match-damage { display: none; }
}

@media (max-width: 480px) {
    .auth-card { padding: 1.5rem; }
    .profile-header { padding: 1.25rem; }
}
