body {
    background: #0a3d2c;
}

/*body {
    background: url('edge-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--bg); /* fallback *//*
    color: var(--text);
}*/

/* GLOBAL THEME */
:root {
    --green: #0a3d2c;
    --green-light: #124f3a;
    --white: #ffffff;
    --pink: #ff2dbf;
    --pink-glow: 0 0 12px #ff2dbf;
    --bg: var(--green);
    --text: var(--white);
}

/* DARK MODE TOGGLE */
body.dark {
    --bg: #050810;
    --green-light: #0b1f1a;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* HEADER + LOGO */
header {
    background: var(--green-light);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 5px solid var(--pink);
    box-shadow: var(--pink-glow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-mark {
    width: 50px;
    height: 50px;
    border: 3px solid var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-weight: 900;
    font-size: 1.4rem;
    text-shadow: var(--pink-glow);
    animation: pulse 1.6s infinite alternate;
}

@keyframes pulse {
    from { box-shadow: 0 0 6px #ff2dbf; }
    to { box-shadow: 0 0 18px #ff2dbf; }
}

header h1 {
    margin: 0;
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* DARK MODE BUTTON */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-btn {
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 20px;
    border: 2px solid var(--pink);
    background: transparent;
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* NAV */
nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
    background: #0f5132;
    border-bottom: 3px solid var(--pink);
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
}

nav a:hover {
    color: var(--pink);
    text-shadow: var(--pink-glow);
}

/* HOME LAYOUT */
.container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.left-panel {
    flex: 3;
}

.video-wrapper {
    background: black;
    border: 4px solid var(--pink);
	width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* or 4/3, whatever your video is */
    object-fit: cover;    /* or 'contain' depending on your preference */
    display: block;
	box-shadow: var(--pink-glow);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.scoreboard {
    margin-top: 15px;
    background: var(--green-light);
    padding: 20px;
    border-left: 5px solid var(--pink);
    box-shadow: var(--pink-glow);
}

.scoreboard h2 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #1b6b52;
}

.score-controls {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.score-controls button {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--pink);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 0.8rem;
}

/* added scorebug css */
.scorebug {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #0a3d2c;
    padding: 20px;
    border: 3px solid #ff2dbf;
    box-shadow: 0 0 20px #ff2dbf;
    border-radius: 10px;
    margin: 20px auto;
    width: fit-content;
}

.batter-info {
    margin-top: 5px;
    font-size: 1rem;
    color: #ff2dbf;
    font-weight: bold;
    display: flex;
    gap: 2.5px;
   
}

.team {
    display: flex;
    justify-content: space-between;
    width: 120px;
    font-size: 1.4rem;
}

.inning {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem; /* controls both arrow + inning number */
    color: #ff2dbf;
    font-weight: bold;
}

#inning-arrow {
    font-size: 2.4rem;   /* slightly larger than inning number */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


.counts span {
    margin-right: 10px;
    font-size: 1.2rem;
}
/*
.bases {
    display: grid;
    grid-template-columns: 25px 25px 25px;
    grid-template-rows: 25px 25px;
    gap: 5px;
}
*/
.bases {
    display: grid;
    grid-template-columns: 25px 25px 25px;
    grid-template-rows: 25px 25px;
    gap: 5px;
    justify-content: center;
}
/*
.bases button {
    width: 80px;
    height: 60px;
	gap: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    background: #0a3d2c;
    border: 3px solid #ff2dbf;
    color: white;
    border-radius: 10px;
    text-align: center;
    line-height: 30px; /* centers text vertically *
    padding: 0;
}
*/
.bases button.active {
    background: #ff2dbf;
    color: #0a3d2c;
}

.base {
    width: 25px;
    height: 25px;
    background: #0a3d2c;
    border: 2px solid #ff2dbf;
    transform: rotate(45deg);
    opacity: 0.3;
}

.nobase {
    width: 25px;
    height: 25px;
    background: #0a3d2c;
    border: 2px solid #ff2dbf;
    transform: rotate(45deg);
    opacity: 0;
}

.base.active {
    background: #ff2dbf;
    opacity: 1;
}

/* LINEUP */
.lineup {
    flex: 1;
    background: var(--green-light);
    padding: 20px;
    border-left: 5px solid var(--pink);
    box-shadow: var(--pink-glow);
}

.lineup h2 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lineup-wrapper {
    display: flex;
    gap: 40px;
}

.lineup {
    flex: 1;
}

.player {
    padding: 12px 0;
    border-bottom: 1px solid #1b6b52;
}

/* MLB STYLE PLAYER CARDS */
.mlb-card {
    width: 100%;
    max-width: 420px;
    background: #111;
    border: 2px solid #ff2dbf;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 15px #ff2dbf;
    font-family: 'Arial', sans-serif;
}

.mlb-card .card-header {
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: #ff2dbf;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.mlb-card .card-row {
    display: grid;
    grid-template-columns: 40px 1fr 60px 40px;
    padding: 6px 8px;
    border-bottom: 1px solid #333;
    color: white;
    font-size: 1.2rem;
}

.mlb-card .card-header-row {
    font-weight: bold;
    color: #ff2dbf;
    border-bottom: 2px solid #ff2dbf;
}

.mlb-card .card-row:last-child {
    border-bottom: none;
}

.mlb-card .col {
    display: flex;
    align-items: center;
}

.mlb-card .spot {
    justify-content: center;
}

.mlb-card .pos {
    justify-content: center;
}

.mlb-card .num {
    justify-content: center;
}

.mlb-card .current-batter {
    background: rgba(255, 45, 191, 0.25);
    border-left: 4px solid #ff2dbf;
    font-weight: bold;
}

/* PLAYER CARDS */
.player-card {
    background: var(--green-light);
    padding: 20px;
    margin: 20px;
    border-left: 5px solid var(--pink);
    box-shadow: var(--pink-glow);
}

.player-card h3 {
    margin: 0 0 5px;
    font-size: 1.5rem;
}

/* BENCH PLAYER CARDS */
.bench-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid #ff2dbf;
}

.bench-header {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff2dbf;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.bench-row {
    display: grid;
    grid-template-columns: 1fr 60px 40px;
    padding: 6px 8px;
    border-bottom: 1px solid #333;
    color: white;
    font-size: 1.1rem;
}

.bench-row:last-child {
    border-bottom: none;
}

.bench-row .col {
    display: flex;
    align-items: center;
}

.bench-row .pos,
.bench-row .num {
    justify-content: center;
}


/* PITCHER BOX */
.pitcher-box {
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #ff2dbf;
    border-radius: 8px;
    text-align: center;
    color: white;
    box-shadow: 0 0 10px #ff2dbf;
}
.pitcher-label {
    font-size: 1rem;
    color: #ff2dbf;
    letter-spacing: 1px;
}
.pitcher-name {
    font-size: 1.4rem;
    font-weight: bold;
}
.pitcher-number {
    font-size: 1.2rem;
}


/* TABLES (schedule + stats) */
.table {
    width: 90%;
    margin: 30px auto;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px;
    border-bottom: 1px solid #1b6b52;
}

.table th {
    background: var(--green-light);
    text-transform: uppercase;
}

/* MERCH GRID */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

.merch-item {
    background: var(--green-light);
    padding: 15px;
    border-left: 5px solid var(--pink);
    box-shadow: var(--pink-glow);
}

.merch-item h3 {
    margin-top: 0;
}

.merch-price {
    font-weight: bold;
    color: var(--pink);
}

/* MOBILE */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .container {
        flex-direction: column;
    }
}

/* PLAYER CARD WITH IMAGE */
.player-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--green-light);
    padding: 20px;
    margin: 20px;
    border-left: 5px solid var(--pink);
    box-shadow: var(--pink-glow);
}

/* Square player photo */
.player-photo {
    width: 140px;
    height: 140px;
    background: #0a3d2c;
    border: 3px solid var(--pink);
    box-shadow: var(--pink-glow);
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

/* Player info section */
.player-info h3 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.player-info p {
    margin: 4px 0;
}

/* ADMIN PANEL THEME */
.admin-header {
    background: #0a3d2c;
    padding: 20px;
    border-bottom: 4px solid #ff2dbf;
    box-shadow: 0 0 15px #ff2dbf88;
    margin-bottom: 20px;
}

.admin-header h1 {
    margin: 0;
    color: white;
    text-shadow: 0 0 10px #ff2dbf;
}

/*  -old admin nav css-
.admin-nav {
    margin-bottom: 20px;
}

.admin-nav a {
    margin-right: 20px;
    color: #ff2dbf;
    font-weight: bold;
    text-decoration: none;
}

.admin-nav a:hover {
    text-shadow: 0 0 10px #ff2dbf;
}
*/
.admin-nav {
    display: flex;
    justify-content: flex-start;
	padding-left: 20px;
    gap: 20px;                 		/* space between Dashboard + Logout */
    padding: 20px;             		/* space around the whole nav bar */
}

.admin-nav a {
    background: #ff2dbf;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 10px #ff2dbf;
}

.admin-nav a:hover {
    box-shadow: 0 0 16px #ff2dbf;
}

.team-switcher {
    margin-bottom: 20px;
}

.team-btn {
    padding: 10px 15px;
    background: #222;
    color: #ff2dbf;
    border: 1px solid #ff2dbf;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 10px;
}

.team-btn:hover {
    background: #ff2dbf;
    color: #000;
}


.table input,
.table textarea {
    width: 100%;
    background: #0a3d2c;
    color: white;
    border: 2px solid #ff2dbf;
    padding: 5px;
    border-radius: 4px;
}

button {
    background: #ff2dbf;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 10px #ff2dbf;
}

button:hover {
    box-shadow: 0 0 20px #ff2dbf;
}
