/* Minha Carreira Brasil - Main Styles */
:root {
    --bg-dark: #06111f;
    --bg-darker: #07121f;
    --card-bg: rgba(8, 20, 34, 0.88);
    --neon-green: #55ff3d;
    --yellow: #f5c542;
    --red: #ff4d4d;
    --text-primary: #e8f0fe;
    --text-muted: #8ba3bf;
    --border-color: rgba(85, 255, 61, 0.15);
    --sidebar-width: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.game-body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 50%, #0a1a2e 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
}

body.game-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(85, 255, 61, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.game-wrapper, .admin-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav { padding: 1rem 0; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--neon-green);
    background: rgba(85, 255, 61, 0.08);
    border-left: 3px solid var(--neon-green);
}

.sidebar-nav hr {
    border-color: var(--border-color);
    margin: 0.5rem 1rem;
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar h1 {
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.topbar-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.game-date-badge {
    color: var(--neon-green);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(85, 255, 61, 0.08);
    border: 1px solid rgba(85, 255, 61, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.user-badge {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sidebar-nav a.sidebar-admin-link {
    color: var(--neon-green);
    border-left: 3px solid transparent;
}

.sidebar-nav a.sidebar-admin-link:hover {
    color: #fff;
    background: rgba(85, 255, 61, 0.15);
    border-left-color: var(--neon-green);
    box-shadow: inset 0 0 12px rgba(85, 255, 61, 0.12);
}

.admin-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-green);
    text-decoration: none;
    background: rgba(85, 255, 61, 0.08);
    border: 1px solid rgba(85, 255, 61, 0.35);
    border-radius: 999px;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-topbar-btn:hover {
    color: #0a0a0a;
    background: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 14px rgba(85, 255, 61, 0.45);
}

.btn-menu {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--neon-green);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

.mobile-nav-toggle { display: none; }

.nav-overlay {
    display: none;
    pointer-events: none;
}

.attr-bars-mobile { display: none; }

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-content { padding: 1.5rem; flex: 1; }

/* Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.glass-card h2, .glass-card h3 {
    color: var(--neon-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: rgba(85, 255, 61, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.stat-box .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neon-green);
}

.stat-box .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Player card */
.player-hero {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.player-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--neon-green);
    object-fit: cover;
    background: var(--bg-darker);
}

.player-info h2 { font-size: 1.5rem; color: #fff; margin-bottom: 0.25rem; }

.player-nickname { color: var(--yellow); font-style: italic; }

.player-meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

.overall-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-green), #3dcc2a);
    color: #000;
    font-weight: 800;
    font-size: 2rem;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 12px;
}

/* Attributes */
.attr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.attr-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attr-name { width: 100px; font-size: 0.85rem; color: var(--text-muted); }

.attr-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.attr-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--yellow));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.attr-value { width: 30px; text-align: right; font-weight: 600; font-size: 0.85rem; }

/* Buttons */
.btn-neon {
    background: linear-gradient(135deg, var(--neon-green), #3dcc2a);
    color: #000;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(85, 255, 61, 0.3);
    color: #000;
}

.btn-outline-neon {
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-neon:hover {
    background: rgba(85, 255, 61, 0.1);
    color: var(--neon-green);
}

.btn-danger-neon {
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Training cards */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.training-card {
    background: rgba(85, 255, 61, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.training-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.training-card i { font-size: 2rem; color: var(--neon-green); margin-bottom: 0.5rem; }

.training-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }

.training-card p { font-size: 0.75rem; color: var(--text-muted); }

/* Match simulation */
.match-arena {
    background: linear-gradient(180deg, rgba(6,17,31,0.95) 0%, rgba(10,30,20,0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.match-arena::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(85,255,61,0.03) 49px, rgba(85,255,61,0.03) 50px);
    pointer-events: none;
}

.match-scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.match-team { text-align: center; flex: 1; max-width: 200px; }

.match-team img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 0.5rem; }

.match-team h3 { font-size: 0.95rem; }

.match-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--neon-green);
}

.match-timeline,
.match-narrative {
    max-height: 320px;
    overflow-y: auto;
    text-align: left;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 3px solid var(--neon-green);
}

.timeline-item,
.narrative-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    line-height: 1.4;
}

.timeline-item.goal,
.narrative-item.goal { color: var(--yellow); font-weight: 600; }

.timeline-item.decision { color: #f5c542; font-style: italic; }

.decision-panel {
    background: rgba(245, 197, 66, 0.1);
    border: 1px solid var(--yellow);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.decision-panel h4 { color: var(--yellow); margin-bottom: 1rem; }

.decision-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* Tables */
.table-dark-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-dark-custom th {
    background: rgba(85, 255, 61, 0.1);
    color: var(--neon-green);
    padding: 0.75rem;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-dark-custom td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.table-dark-custom tr:hover td { background: rgba(85, 255, 61, 0.03); }

.table-dark-custom .pos-highlight { background: rgba(85, 255, 61, 0.08); }
.table-dark-custom .calendar-next { box-shadow: inset 3px 0 0 var(--neon-green); }

/* Forms */
.form-dark {
    max-width: 500px;
}

.form-dark label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-dark input, .form-dark select, .form-dark textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.form-dark input:focus, .form-dark select:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 2px rgba(85, 255, 61, 0.15);
}

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    padding: 2rem;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    text-align: center;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.auth-links a { color: var(--neon-green); }

.alert-error {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid var(--red);
    color: var(--red);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(85, 255, 61, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* News feed */
.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.news-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }

.news-item p { color: var(--text-muted); font-size: 0.85rem; }

.news-item .news-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.news-category {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    background: rgba(85, 255, 61, 0.15);
    color: var(--neon-green);
}

/* Progress bars */
.progress-bar-custom {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar-custom .fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s;
}

.fill-green { background: var(--neon-green); }
.fill-yellow { background: var(--yellow); }
.fill-red { background: var(--red); }

/* Transfer cards */
.transfer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.transfer-info h4 { color: var(--neon-green); }

/* Landing */
.landing-hero {
    text-align: center;
    padding: 4rem 2rem;
}

.landing-hero h1 {
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.landing-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.feature-card i { font-size: 2rem; color: var(--neon-green); margin-bottom: 0.75rem; }

.chart-container { position: relative; height: 250px; margin: 1rem 0; }

.badge-pos {
    background: rgba(85, 255, 61, 0.2);
    color: var(--neon-green);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.club-logo-sm { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; margin-right: 0.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Season summary */
.season-summary-hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, rgba(85, 255, 61, 0.08) 0%, transparent 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.season-trophy { font-size: 4rem; color: var(--yellow); margin-bottom: 0.5rem; }
.season-subtitle { color: var(--text-muted); margin-top: 0.5rem; }
.season-champion-card { border-color: rgba(245, 197, 66, 0.35); }
.champion-display { display: flex; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.champion-logo { width: 72px; height: 72px; object-fit: contain; }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.award-card {
    background: rgba(85, 255, 61, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}
.award-card i { font-size: 1.75rem; color: var(--yellow); margin-bottom: 0.5rem; }
.award-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--neon-green); }
.award-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.award-collective { background: rgba(245, 197, 66, 0.06); }
.season-advance-wrap { text-align: center; margin: 2rem 0; }
.btn-advance-season { font-size: 1.15rem; padding: 1rem 2.5rem; }
.season-end-banner { border-color: rgba(245, 197, 66, 0.4); margin-bottom: 1.5rem; }
.season-player-stats { grid-template-columns: repeat(4, 1fr); }
