/* =====================================================
   NGP Teams & Game Results – Frontend Styles
   Black (#111) + Gold (#C9A227) branding
   ===================================================== */

:root {
    --ngp-black:   #111111;
    --ngp-gold:    #C9A227;
    --ngp-gold-lt: #f0d060;
    --ngp-white:   #ffffff;
    --ngp-gray:    #f5f5f5;
    --ngp-gray-md: #cccccc;
    --ngp-radius:  8px;
    --ngp-shadow:  0 2px 12px rgba(0,0,0,.12);
    --ngp-font:    inherit;
}

/* ---------- TEAMS GRID ---------- */
.ngp-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.ngp-team-card {
    background: var(--ngp-white);
    border: 1px solid var(--ngp-gray-md);
    border-radius: var(--ngp-radius);
    box-shadow: var(--ngp-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.ngp-team-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }

.ngp-team-img { width: 100%; height: 180px; object-fit: cover; display: block; }

.ngp-team-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.ngp-team-name {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ngp-white);
	margin: 0 0 4px;
	border-left: 4px solid var(--ngp-gold);
	text-align: center;
	background: var(--ngp-gold);
	padding: 10px;
	border-radius: 5px;
	text-shadow: 1px 1px #555;
}

.ngp-meta { font-size: .85rem; color: #555; margin: 0; }
.ngp-meta span { font-weight: 600; color: var(--ngp-black); }

.ngp-record { font-size: .9rem; color: var(--ngp-black); margin: 6px 0 0; }

.ngp-team-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.ngp-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .2s, color .2s;
}
.ngp-btn-gold    { background: var(--ngp-gold); color: var(--ngp-black); }
.ngp-btn-gold:hover { background: var(--ngp-gold-lt); }
.ngp-btn-outline { background: transparent; border: 2px solid var(--ngp-black); color: var(--ngp-black); }
.ngp-btn-outline:hover { background: var(--ngp-black); color: var(--ngp-white); }
.ngp-btn-sm { padding: 5px 10px; font-size: .78rem; }

/* ---------- ROSTER GRID ---------- */
.ngp-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 16px 0;
}

.ngp-player-card {
    background: var(--ngp-white);
    border: 1px solid var(--ngp-gray-md);
    border-radius: var(--ngp-radius);
    overflow: hidden;
    box-shadow: var(--ngp-shadow);
    text-align: center;
}

.ngp-player-photo-wrap { position: relative; background: var(--ngp-black); }
.ngp-player-photo      { width: 100%; height: 160px; object-fit: cover; display: block; }
.ngp-player-photo-placeholder {
    height: 120px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: var(--ngp-gold);
    background: var(--ngp-black);
}
.ngp-jersey {
    position: absolute; bottom: 6px; right: 8px;
    background: var(--ngp-gold); color: var(--ngp-black);
    border-radius: 4px; padding: 2px 6px; font-weight: 700; font-size: .8rem;
}

.ngp-player-info { padding: 12px; }
.ngp-player-info h4 { margin: 0 0 4px; font-size: .95rem; font-weight: 700; color: var(--ngp-black); }
.ngp-player-info p  { margin: 0 0 6px; font-size: .85rem; color: var(--ngp-gold); font-weight: 600; }
.ngp-player-info ul { list-style: none; padding: 0; margin: 0 0 8px; font-size: .78rem; color: #555; }
.ngp-player-info li { padding: 2px 0; }

/* ---------- BADGES ---------- */
.ngp-badge {
    display: inline-block; padding: 3px 8px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    margin-bottom: 6px;
}
.ngp-badge-committed  { background: #1a7a1a; color: #fff; }
.ngp-badge-interested { background: #c97a00; color: #fff; }
.ngp-badge-signed     { background: #0a4a8c; color: #fff; }
.ngp-badge-uncommitted{ background: #777; color: #fff; }

/* ---------- TABLES ---------- */
.ngp-table-wrap { overflow-x: auto; margin: 16px 0; }
.ngp-table {
    width: 100%; border-collapse: collapse;
    font-size: .9rem; background: var(--ngp-white);
    border-radius: var(--ngp-radius); overflow: hidden;
    box-shadow: var(--ngp-shadow);
}
.ngp-table thead tr { background: var(--ngp-gold); text-align: left; color: var(--ngp-black); }
.ngp-table thead th { padding: 12px 14px; font-weight: 700; white-space: nowrap; }
.ngp-table tbody tr:nth-child(even) { background: var(--ngp-gray); }
.ngp-table tbody td { padding: 10px 14px; border-bottom: 1px solid #eee; vertical-align: middle; }
.ngp-score { font-weight: 700; font-size: 1rem; }

/* ---------- STATUS / RESULT PILLS ---------- */
.ngp-status, .ngp-result {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
}
.ngp-status-upcoming   { background: #e8f4fd; color: #0a4a8c; }
.ngp-status-postponed  { background: #fff3cd; color: #856404; }
.ngp-status-canceled   { background: #f8d7da; color: #842029; }
.ngp-status-completed  { background: #d1e7dd; color: #0f5132; }
.ngp-result-win        { background: #d1e7dd; color: #0f5132; }
.ngp-result-loss       { background: #f8d7da; color: #842029; }
.ngp-result-tie        { background: #fff3cd; color: #856404; }
.ngp-result-forfeit    { background: #e2e3e5; color: #41464b; }

/* ---------- FILTER BAR ---------- */
.ngp-filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    margin: 20px 0; padding: 16px;
    background: var(--ngp-gray); border-radius: var(--ngp-radius);
}
.ngp-input, .ngp-select {
    padding: 8px 12px; border: 1px solid var(--ngp-gray-md);
    border-radius: 4px; font-size: .9rem; flex: 1; min-width: 150px;
}
.ngp-input:focus, .ngp-select:focus { outline: 2px solid var(--ngp-gold); border-color: transparent; }

/* ---------- TEAM PAGE ---------- */
.ngp-team-header {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--ngp-black); color: var(--ngp-white);
    padding: 24px; border-radius: var(--ngp-radius); margin-bottom: 28px;
}
.ngp-team-header-logo { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; border: 3px solid var(--ngp-gold); flex-shrink: 0; }
.ngp-team-header-info h2 { color: var(--ngp-gold); margin: 0 0 6px; font-size: 1.5rem; }
.ngp-team-header-info p  { margin: 2px 0; font-size: .9rem; color: #ccc; }
.ngp-record-bar { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.ngp-record-stat { text-align: center; }
.ngp-record-stat span  { display: block; font-size: .72rem; color: var(--ngp-gray-md); text-transform: uppercase; }
.ngp-record-stat strong{ font-size: 1.3rem; color: var(--ngp-gold); }

.ngp-section-title {
    font-size: 1.15rem; font-weight: 700;
    color: var(--ngp-white);
    border-bottom: 3px solid var(--ngp-gold);
    padding-bottom: 6px; margin: 28px 0 12px;
}

/* ---------- GAME DETAIL ---------- */
.ngp-game-header {
    background: var(--ngp-black); color: var(--ngp-white);
    border-radius: var(--ngp-radius); padding: 24px; margin-bottom: 24px; text-align: center;
}
.ngp-score-block { display: flex; align-items: center; justify-content: center; gap: 20px; }
.ngp-score-team  { font-size: 1rem; font-weight: 600; color: #ccc; }
.ngp-score-num   { font-size: 2.5rem; font-weight: 900; color: var(--ngp-gold); }
.ngp-result-badge{
    display: inline-block; padding: 6px 18px; border-radius: 20px;
    font-size: .9rem; font-weight: 700; text-transform: uppercase; margin: 12px auto 16px;
}
.ngp-game-meta-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: .88rem; color: #ccc; }
.ngp-section { margin-bottom: 28px; color: #999; }
.ngp-section h3 { font-size: 1.05rem; font-weight: 700; border-left: 4px solid var(--ngp-gold); padding-left: 10px; margin-bottom: 12px; color: #fff; }
.ngp-table tbody tr td { color: #555; }
/* Video responsive */
.ngp-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--ngp-radius); }
.ngp-video-wrap iframe,
.ngp-video-wrap object,
.ngp-video-wrap embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Photo grid */
.ngp-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ngp-gallery-item img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; display: block; }

/* ---------- EMPTY / MISC ---------- */
.ngp-empty { color: #888; font-style: italic; padding: 12px 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
    .ngp-teams-grid        { grid-template-columns: 1fr; }
    .ngp-roster-grid       { grid-template-columns: repeat(2, 1fr); }
    .ngp-team-header       { flex-direction: column; }
    .ngp-score-num         { font-size: 1.8rem; }
    .ngp-filter-bar        { flex-direction: column; }
    .ngp-input, .ngp-select{ width: 100%; }
}
@media (max-width: 400px) {
    .ngp-roster-grid { grid-template-columns: 1fr; }
}
/* =======================
   NGP Homepage Widget 
   ======================= */

.ngp-home-widget {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.ngp-home-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.ngp-home-widget-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ngp-white, #fff);
    margin: 0;
}

/* If widget sits on dark background */
.ngp-home-widget-title {
	color: var(--e-global-color-accent);
	font-family: "Cinzel", Sans-serif;
	font-size: 40px;
	font-weight: 600;
}

/* ---------- Game Cards ---------- */
.ngp-home-games-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ngp-home-game-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
    border-left: 5px solid #C9A227;
    transition: transform .15s;
}
.ngp-home-game-card:hover { transform: translateX(4px); }
.ngp-game-completed { border-left-color: #444; }

/* Date block */
.ngp-home-game-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    background: #111;
    color: #C9A227;
    border-radius: 8px;
    padding: 8px 10px;
    line-height: 1;
}
.ngp-home-month { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.ngp-home-day   { font-size: 1.6rem; font-weight: 900; }

/* Info */
.ngp-home-game-info { flex: 1; }
.ngp-home-team-name { font-size: .78rem; color: #888; margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.ngp-home-vs        { font-size: 1rem; color: #111; margin: 2px 0; }
.ngp-home-loc,
.ngp-home-time      { font-size: .8rem; color: #666; margin: 2px 0; }

/* Right side */
.ngp-home-game-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 80px;
}
.ngp-home-score {
    font-size: 1.4rem;
    font-weight: 900;
    color: #111;
}

/* ---------- Quick Links ---------- */
.ngp-home-quicklinks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.ngp-ql-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #C9A227;
    border-radius: 10px;
    padding: 16px 10px;
    text-decoration: none;
    gap: 8px;
    transition: background .2s, transform .15s;
    border: 2px solid transparent;
}
.ngp-ql-card:hover {
    background: #C9A227;
    color: #fff;
    transform: translateY(-3px);
}
.ngp-ql-icon  { font-size: 1.6rem; }
.ngp-ql-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .ngp-home-quicklinks { grid-template-columns: repeat(2, 1fr); }
    .ngp-home-game-card  { flex-wrap: wrap; }
    .ngp-home-game-right { min-width: unset; flex-direction: row; align-items: center; }
}