/* ─────────────────────────────────────────────────────────────
   style.css  —  SFCA Submission Fighter Canada
───────────────────────────────────────────────────────────── */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  background: #c8d8e8;
}

/* ── SPLASH ── */
#splash {
  position: fixed; inset: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .6s;
}
#splash.hidden { opacity: 0; pointer-events: none; }
#splash img { max-width: 90%; max-height: 90vh; object-fit: contain; }

/* ── OUTER WRAP ── */
#outer-wrap {
  max-width: 1020px; margin: 0 auto; background: #c8d8e8;
  min-height: 100vh;
  border-left: 3px solid #1a3a5c; border-right: 3px solid #1a3a5c;
}

/* ── HEADER ── */
#header { display: block; line-height: 0; }
#header img { width: 100%; display: block; }

/* ── NAV ── */
#navbar {
  background: #cc0000; display: flex; flex-wrap: wrap;
  border-top: 2px solid #990000; border-bottom: 2px solid #990000;
}
#navbar a {
  flex: 1; min-width: 80px; display: block; text-align: center;
  padding: 9px 4px; color: #fff; text-decoration: none;
  font-size: 14px; font-weight: bold; letter-spacing: 1px;
  border-right: 1px solid #bb0000; cursor: pointer;
}
#navbar a:last-child { border-right: none; }
#navbar a:hover, #navbar a.active { background: #990000; }

/* ── LAYOUT ── */
#content-wrap { display: flex; align-items: flex-start; padding: 8px 6px; flex-wrap: wrap; }
#left-col  { width: 185px; flex-shrink: 0; margin-right: 6px; }
#main-col  { flex: 1; min-width: 200px; background: #fff; border: 1px solid #aabbcc; min-height: 500px; }
#right-col { width: 185px; flex-shrink: 0; margin-left: 6px; }

/* ── MODULE BOXES ── */
.module-box { background: #fff; border: 1px solid #aabbcc; margin-bottom: 8px; }
.module-title {
  background: #cc0000; color: #fff; font-weight: bold; font-size: 13px;
  padding: 5px 10px; border-radius: 12px 12px 0 0; text-align: center;
}
.module-body { padding: 6px 10px; line-height: 2; font-size: 12px; }
.module-body a { color: #000066; text-decoration: none; display: block; cursor: pointer; }
.module-body a::before { content: "· "; color: #555; }
.module-body a:hover { color: #cc0000; text-decoration: underline; }
.whois-body { padding: 8px 10px; font-size: 12px; line-height: 1.65; color: #222; text-align: center; }
.whois-body a { color: #000099; }

/* ── MAIN CONTENT ── */
.main-inner { padding: 14px 20px; }
.page-title { font-size: 18px; font-weight: bold; color: #000; text-align: center; margin-bottom: 10px; }
.welcome-text { font-size: 13px; color: #222; line-height: 1.75; margin-bottom: 12px; }

/* ── AD BANNER ── */
.ad-banner {
  border: 2px solid #cc9900; width: 90%; max-width: 600px;
  display: block; overflow: hidden; margin: 20px auto; text-align: center;
}
.ad-banner img { width: 100%; display: block; }

/* ── ARTICLES ── */
.article-card { border-bottom: 2px solid #cc0000; padding: 14px 0; margin-bottom: 14px; }
.article-card:last-child { border-bottom: none; }
.article-meta { font-size: 10px; color: #cc0000; letter-spacing: 1px; margin-bottom: 4px; text-transform: uppercase; }
.article-title {
  font-size: 16px; font-weight: bold; color: #000080; margin-bottom: 8px;
  cursor: pointer; line-height: 1.3;
}
.article-title:hover { color: #cc0000; text-decoration: underline; }
.article-full-title { font-size: 20px; font-weight: bold; color: #000; margin-bottom: 6px; }
.article-full-meta  { font-size: 11px; color: #cc0000; margin-bottom: 14px; letter-spacing: 1px; }
.article-full-body  { font-size: 13px; color: #222; line-height: 1.85; }
.article-full-body p { margin-bottom: 10px; }
.back-btn {
  display: inline-block; margin-bottom: 14px; padding: 5px 14px;
  background: #cc0000; color: #fff; font-size: 11px; cursor: pointer;
  border: none; font-family: Arial, sans-serif;
}
.back-btn:hover { background: #aa0000; }

/* ── SEARCH / ARCHIVE ── */
.search-bar { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 120px; padding: 5px 8px; border: 1px solid #aaa; font-size: 12px; }
.search-bar button { padding: 5px 12px; background: #cc0000; color: #fff; border: none; font-size: 12px; cursor: pointer; }
.search-bar button:hover { background: #aa0000; }
.archive-item { padding: 8px 0; border-bottom: 1px solid #e0e0e0; cursor: pointer; }
.archive-item:hover .arc-title { color: #cc0000; text-decoration: underline; }
.arc-title { font-size: 13px; font-weight: bold; color: #000; }
.arc-meta  { font-size: 10px; color: #888; }

/* ── GALLERY ── */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.album-card { background: #f5f5f5; border: 1px solid #ddd; cursor: pointer; text-align: center; padding: 8px; }
.album-card:hover { border-color: #cc0000; }
.album-thumb { width: 100%; height: 90px; object-fit: cover; display: block; background: #ddd; }
.album-thumb-placeholder {
  width: 100%; height: 90px; background: linear-gradient(135deg, #cc0000, #880000);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px;
}
.album-name  { font-size: 11px; font-weight: bold; margin-top: 4px; color: #333; }
.album-count { font-size: 10px; color: #888; }
.album-desc  { font-size: 12px; color: #666; margin-bottom: 10px; }
.photo-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.photo-thumb { width: 100%; height: 100px; object-fit: cover; border: 2px solid #ddd; cursor: pointer; display: block; }
.photo-thumb:hover { border-color: #cc0000; }

/* ── SIDEBAR ── */
.survey-body  { padding: 8px 10px; font-size: 12px; color: #111; }
.survey-q     { font-weight: bold; font-size: 13px; margin-bottom: 8px; line-height: 1.4; }
.survey-body label { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; cursor: pointer; }
.vote-btn     { display: block; margin: 8px auto 5px; padding: 3px 16px; background: #e0e0e0; border: 2px outset #bbb; cursor: pointer; font-size: 12px; }
.vote-btn:active { border-style: inset; }
.survey-links { text-align: center; font-size: 12px; margin-top: 4px; }
.survey-links a { color: #000099; font-weight: bold; }
.survey-meta  { font-size: 11px; color: #444; margin-top: 4px; }
.old-articles-body { padding: 8px 10px; }
.art-date  { font-weight: bold; font-size: 12px; color: #333; border-bottom: 1px solid #ddd; padding-bottom: 2px; margin-bottom: 4px; }
.art-link  { display: block; font-size: 12px; color: #000099; text-decoration: none; line-height: 1.6; cursor: pointer; }
.art-link:hover { text-decoration: underline; color: #cc0000; }
.art-group { margin-bottom: 8px; }

/* ── FOOTER ── */
#footer { background: #cc0000; color: #fff; text-align: center; padding: 8px; font-size: 11px; }
#footer a { color: #ffcccc; text-decoration: none; cursor: pointer; }

/* ── LIGHTBOX ── */
#lightbox {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9);
  z-index: 9000; align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img  { max-width: 90vw; max-height: 90vh; object-fit: contain; }
#lightbox-close {
  position: absolute; top: 20px; right: 30px; color: #fff; font-size: 36px;
  cursor: pointer; background: none; border: none; line-height: 1;
}

/* ── UTILITIES ── */
.loading    { color: #888; font-style: italic; font-size: 12px; padding: 10px 0; }
.no-results { color: #888; font-style: italic; font-size: 12px; padding: 10px 0; }
.error-msg  { color: #cc0000; font-size: 12px; padding: 6px 0; }





/* ── NEWS FEED ── */
#newsfeed-filters select { font-family:Arial,sans-serif; }
.newsfeed-card         { border-bottom:1px solid #e8e8e8; padding:14px 0; }
.newsfeed-card:last-child { border-bottom:none; }
.newsfeed-cat          { display:inline-block; color:#fff; font-size:9px; font-weight:bold;
                          text-transform:uppercase; letter-spacing:1px; padding:2px 8px;
                          border-radius:10px; margin-bottom:6px; }
.newsfeed-title        { font-size:15px; font-weight:bold; margin-bottom:5px; line-height:1.3; }
.newsfeed-title a      { color:#000080; text-decoration:none; }
.newsfeed-title a:hover{ text-decoration:underline; }
.newsfeed-meta         { font-size:11px; color:#888; margin-bottom:7px; }
.newsfeed-source       { color:#cc0000; font-weight:bold; }
.newsfeed-summary      { font-size:12px; color:#333; line-height:1.7; margin-bottom:8px; }
.newsfeed-footer       { }
.newsfeed-readmore     { font-size:11px; font-weight:bold; color:#cc0000; text-decoration:none;
                          border:1px solid #cc0000; padding:3px 10px; }
.newsfeed-readmore:hover{ background:#cc0000; color:#fff; }

/* ── THROWBACK THURSDAY ── */
.throwback-post { border-bottom: 2px solid #cc0000; padding: 16px 0; margin-bottom: 16px; }
.throwback-post:last-child { border-bottom: none; }
.throwback-meta  { font-size: 10px; color: #cc0000; letter-spacing: 1px; margin-bottom: 6px; text-transform: uppercase; }
.throwback-title { font-size: 17px; font-weight: bold; color: #000080; margin-bottom: 10px; }
.throwback-img   { width: 100%; max-height: 350px; object-fit: cover; display: block; margin-bottom: 12px; border: 1px solid #ddd; }
.throwback-body  { font-size: 13px; color: #222; line-height: 1.85; }
.throwback-body p { margin-bottom: 10px; }

/* ── SURVEY (dynamic) ── */
.survey-body     { padding: 8px 10px; font-size: 12px; color: #111; }
.survey-q        { font-weight: bold; font-size: 13px; margin-bottom: 8px; line-height: 1.4; }
.survey-body label { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; cursor: pointer; }
.vote-btn        { display: block; margin: 8px auto 5px; padding: 3px 16px; background: #e0e0e0; border: 2px outset #bbb; cursor: pointer; font-size: 12px; font-family: Arial, sans-serif; }
.vote-btn:active { border-style: inset; }
.survey-voted    { font-size: 11px; color: #444; font-style: italic; margin: 6px 0; }
.survey-bar-wrap { margin: 3px 0 6px; }
.survey-bar-label { font-size: 11px; color: #333; margin-bottom: 2px; }
.survey-bar-bg   { background: #e0e0e0; height: 12px; border-radius: 6px; overflow: hidden; }
.survey-bar-fill { background: #cc0000; height: 12px; border-radius: 6px; transition: width .4s; }
.survey-bar-pct  { font-size: 10px; color: #666; margin-left: 4px; }
.survey-meta     { font-size: 11px; color: #444; margin-top: 6px; }

/* ════════════════════════════════════════════
   ADMIN PORTAL
════════════════════════════════════════════ */
#admin-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 8000; overflow-y: auto;
}
#admin-overlay.open { display: block; }
#admin-panel {
  background: #fff; max-width: 900px; margin: 30px auto;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.admin-header {
  background: #cc0000; color: #fff; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-header h2 { font-size: 16px; letter-spacing: 1px; }
.admin-close { background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.admin-body  { padding: 20px; }

/* Login */
.login-form { max-width: 320px; margin: 0 auto; padding: 20px 0; }
.login-form h3 { text-align: center; margin-bottom: 20px; color: #333; font-size: 18px; }
.login-error { color: #cc0000; font-size: 12px; text-align: center; margin-top: 8px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: bold; color: #555; margin-bottom: 4px; }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 7px 10px; border: 1px solid #ccc; font-size: 13px; font-family: Arial, sans-serif; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* Buttons */
.btn-red   { background: #cc0000; color: #fff; border: none; padding: 8px 20px; cursor: pointer; font-size: 13px; font-family: Arial, sans-serif; }
.btn-red:hover   { background: #aa0000; }
.btn-gray  { background: #888;    color: #fff; border: none; padding: 8px 16px; cursor: pointer; font-size: 12px; font-family: Arial, sans-serif; margin-right: 6px; }
.btn-gray:hover  { background: #666; }
.btn-green { background: #228822; color: #fff; border: none; padding: 8px 16px; cursor: pointer; font-size: 12px; font-family: Arial, sans-serif; margin-right: 6px; }
.btn-green:hover { background: #116611; }
.btn-full  { width: 100%; }
.btn-red:disabled { background: #aaa; cursor: not-allowed; }

/* Dashboard */
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.dash-welcome { font-size: 14px; font-weight: bold; color: #228822; }

/* Tabs */
.admin-tabs { display: flex; border-bottom: 2px solid #cc0000; margin-bottom: 16px; flex-wrap: wrap; }
.admin-tab {
  padding: 8px 16px; cursor: pointer; font-size: 12px; font-weight: bold;
  color: #666; background: #f5f5f5; border: 1px solid #ddd; border-bottom: none; margin-right: 4px;
}
.admin-tab.active { background: #cc0000; color: #fff; border-color: #cc0000; }
.admin-tab:hover:not(.active) { background: #eee; }

/* Article / Album list */
.tab-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.ali-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 6px;
}
.ali-row:hover { background: #fafafa; }
.ali-title { font-weight: bold; font-size: 13px; flex: 1; min-width: 150px; }
.ali-meta  { font-size: 11px; }
.ali-date  { color: #888; margin-right: 8px; }
.ali-status { font-size: 10px; padding: 2px 6px; border-radius: 10px; background: #228822; color: #fff; }
.ali-status.draft { background: #888; }
.ali-actions button { margin-left: 4px; padding: 3px 8px; font-size: 11px; cursor: pointer; border: 1px solid #ccc; background: #f0f0f0; }
.ali-actions button:hover { background: #e0e0e0; }
.ali-actions .del-btn { color: #cc0000; border-color: #cc0000; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 9500; overflow-y: auto;
}
.modal-panel { background: #fff; max-width: 700px; margin: 30px auto; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.modal-body    { padding: 20px; }
.modal-actions { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.save-msg { font-size: 12px; color: green; }

/* Photo upload */
.upload-area {
  border: 2px dashed #ccc; padding: 20px; text-align: center;
  cursor: pointer; margin-top: 8px; transition: border-color .2s;
}
.upload-area:hover { border-color: #cc0000; }
.upload-icon { font-size: 32px; color: #bbb; }
.upload-hint { font-size: 12px; color: #888; margin-top: 6px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-prev-img { width: 80px; height: 60px; object-fit: cover; border: 1px solid #ddd; }

.existing-label { font-size: 12px; font-weight: bold; margin: 10px 0 6px; }
.existing-grid  { display: flex; flex-wrap: wrap; gap: 8px; }
.exist-thumb-wrap { position: relative; }
.exist-thumb { width: 70px; height: 55px; object-fit: cover; border: 1px solid #ddd; }
.del-photo-btn {
  position: absolute; top: 0; right: 0;
  background: #cc0000; color: #fff; border: none; font-size: 10px; cursor: pointer; padding: 1px 4px;
}

/* Site update */
.update-section h3   { margin-bottom: 10px; color: #333; }
.update-section p    { font-size: 13px; color: #555; margin-bottom: 12px; line-height: 1.6; }
.update-info { background: #f8f8f8; border: 1px solid #ddd; padding: 12px 16px; margin-bottom: 16px; font-size: 12px; line-height: 1.8; }
.update-info strong  { display: block; margin-bottom: 4px; color: #333; }
.update-info ul      { margin-left: 18px; }
.update-info li      { margin-bottom: 2px; }
.update-info code    { background: #eee; padding: 1px 4px; font-size: 11px; }

/* Settings */
.settings-section h3 { margin-bottom: 14px; color: #333; }
.settings-section    { max-width: 360px; }

/* ════════════
   RESPONSIVE
════════════ */
@media (max-width: 760px) {
  #content-wrap { flex-direction: column; }
  #main-col  { width: 100%; order: 1; }
  #right-col { width: 100%; margin: 0 0 8px 0; order: 2; }
  #left-col  { width: 100%; margin: 0 0 8px 0; order: 3; }
  #navbar a { font-size: 12px; padding: 8px 2px; }
  #admin-panel, .modal-panel { margin: 10px; }
}
@media (max-width: 480px) {
  #navbar { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  #navbar a { border-right: 1px solid #bb0000; border-bottom: 1px solid #bb0000; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ── STATS DASHBOARD ── */
#tab-stats .sd-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:8px;}
        #tab-stats .sd-active{background:#e8f5e9;color:#1b5e20;border:1px solid #a5d6a7;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:bold;}
        #tab-stats .sd-active span{display:inline-block;width:8px;height:8px;background:#34a853;border-radius:50%;margin-right:6px;animation:blink 1.5s infinite;}
        @keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}
        #tab-stats .sd-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-bottom:16px;}
        #tab-stats .sd-card{background:#fff;border:1px solid #e0e0e0;border-top:3px solid #cc0000;border-radius:2px;padding:10px 12px;}
        #tab-stats .sd-card.blue{border-top-color:#1a73e8;} #tab-stats .sd-card.green{border-top-color:#34a853;}
        #tab-stats .sd-card.orange{border-top-color:#fa7b17;} #tab-stats .sd-card.purple{border-top-color:#9c27b0;}
        #tab-stats .sd-num{font-size:22px;font-weight:bold;color:#333;line-height:1;}
        #tab-stats .sd-lbl{font-size:10px;font-weight:bold;color:#666;text-transform:uppercase;letter-spacing:.5px;margin-top:4px;}
        #tab-stats .sd-sub{font-size:10px;color:#aaa;margin-top:2px;}
        #tab-stats .sd-row{display:grid;gap:12px;margin-bottom:16px;}
        #tab-stats .sd-row-2{grid-template-columns:1fr 1fr;}
        #tab-stats .sd-row-3{grid-template-columns:1fr 1fr 1fr;}
        #tab-stats .sd-panel{background:#fff;border:1px solid #e8e8e8;border-radius:2px;padding:14px;}
        #tab-stats .sd-panel-title{font-size:12px;font-weight:bold;color:#333;text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #f0f0f0;}
        #tab-stats .sd-chart-wrap{position:relative;height:220px;}
        #tab-stats .sd-chart-tall{height:300px;}
        #tab-stats .sd-table{width:100%;border-collapse:collapse;font-size:11px;}
        #tab-stats .sd-table th{background:#f8f8f8;padding:5px 6px;text-align:left;color:#666;font-size:10px;border-bottom:1px solid #eee;white-space:nowrap;}
        #tab-stats .sd-table td{padding:5px 6px;border-bottom:1px solid #f5f5f5;vertical-align:middle;}
        #tab-stats .sd-table tr:hover td{background:#fafafa;}
        #tab-stats .sd-bar-wrap{display:flex;align-items:center;gap:6px;}
        #tab-stats .sd-bar-bg{flex:1;background:#f0f0f0;height:6px;border-radius:3px;overflow:hidden;min-width:30px;}
        #tab-stats .sd-bar{height:6px;border-radius:3px;background:#cc0000;}
        #tab-stats .sd-bar.blue{background:#1a73e8;} #tab-stats .sd-bar.green{background:#34a853;}
        #tab-stats .flag{font-size:13px;}
        #tab-stats .ip-cell{font-family:monospace;font-size:10px;color:#555;}
        #tab-stats .src-badge{font-size:9px;padding:1px 5px;border-radius:8px;font-weight:bold;white-space:nowrap;}
        #tab-stats .src-direct{background:#e8f5e9;color:#1b5e20;}
        #tab-stats .src-search{background:#e3f2fd;color:#0d47a1;}
        #tab-stats .src-social{background:#fce4ec;color:#880e4f;}
        #tab-stats .src-referral{background:#fff3e0;color:#bf360c;}
        #tab-stats .sd-visitor-log{max-height:320px;overflow-y:auto;}
        #tab-stats .sd-purge{background:#f8f8f8;border:1px solid #e0e0e0;padding:10px 14px;margin-top:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;}
        @media(max-width:600px){#tab-stats .sd-row-2,#tab-stats .sd-row-3{grid-template-columns:1fr;}#tab-stats .sd-cards{grid-template-columns:repeat(2,1fr);}}
/* ============================================================
   SFCA — Fighter Profiles & Events Calendar Styles
   Append to /var/www/sfca/public/css/style.css
   ============================================================ */

/* ── SHARED PAGE LAYOUT ──────────────────────────────────────── */
.page-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #cc0000;
  margin: 0 0 0.3rem;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* ── FILTERS ROW ────────────────────────────────────────────── */
.fighters-filters,
.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-input {
  padding: 0.45rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  flex: 1 1 200px;
  min-width: 140px;
  background: #fff;
  color: #333;
}

.filter-select {
  padding: 0.45rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  background: #fff;
  color: #333;
  cursor: pointer;
}

/* ── FIGHTER CARDS GRID ─────────────────────────────────────── */
.fighters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.fighter-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fighter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border-color: #cc0000;
}

.fighter-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #f0f0f0;
  position: relative;
}

.fighter-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fighter-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: #cc0000;
}

.fighter-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.15rem;
}

.fighter-card-nickname {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.fighter-card-meta {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.fighter-meta-sep { color: #ccc; }

.fighter-card-record {
  font-size: 1rem;
  font-weight: 700;
  color: #cc0000;
  margin-bottom: 0.4rem;
}

.fighter-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  align-items: center;
  width: 100%;
}

.fighter-gym {
  font-size: 0.75rem;
  color: #999;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── STATUS BADGES ───────────────────────────────────────────── */
.fighter-status-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-active    { background: #e6f4ea; color: #1a7031; }
.status-inactive  { background: #f5f5f5; color: #666; }
.status-retired   { background: #fff3cd; color: #856404; }
.status-prospect  { background: #e8f0fe; color: #1a4dcc; }

/* ── SINGLE FIGHTER PROFILE ─────────────────────────────────── */
.btn-back {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #555;
  margin-bottom: 1.5rem;
  transition: background 0.15s;
}

.btn-back:hover { background: #f5f5f5; }

.fighter-profile-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.fighter-profile-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}

.fighter-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fighter-profile-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  background: #cc0000;
}

.fighter-profile-name {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 0.2rem;
}

.fighter-profile-nickname {
  font-size: 1.1rem;
  color: #888;
  font-style: italic;
  margin: 0 0 0.6rem;
}

.fighter-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.tag {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.tag-weight { background: #f3f4f6; color: #374151; }
.tag-promo  { background: #fef3c7; color: #92400e; }
.tag-disc   { background: #dbeafe; color: #1e40af; }

.fighter-profile-record-big {
  font-size: 2rem;
  font-weight: 800;
  color: #cc0000;
  letter-spacing: -1px;
  margin-bottom: 0.3rem;
}

.method-breakdown {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.method-pill {
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.method-ko  { background: #fde8e8; color: #c0392b; }
.method-sub { background: #e8f4fd; color: #1a6898; }
.method-dec { background: #e8f5e9; color: #1a7031; }

.fighter-profile-details {
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

.fighter-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-val {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

.fighter-bio {
  margin-bottom: 1.5rem;
}

.fighter-bio h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #cc0000;
  margin-bottom: 0.4rem;
}

.fighter-bio p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

/* ── FIGHT HISTORY TABLE ────────────────────────────────────── */
.fight-history { margin-bottom: 1.5rem; }

.fight-history h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #cc0000;
  margin-bottom: 0.5rem;
}

.fight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fight-table th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  background: #f5f5f5;
  color: #666;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fight-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

.fight-row-win  td:first-child { border-left: 3px solid #27ae60; }
.fight-row-loss td:first-child { border-left: 3px solid #e74c3c; }
.fight-row-draw td:first-child { border-left: 3px solid #f39c12; }

.result-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.result-win  { background: #e6f4ea; color: #1a7031; }
.result-loss { background: #fde8e8; color: #c0392b; }
.result-draw { background: #fff3cd; color: #856404; }
.result-nc   { background: #f5f5f5; color: #666; }

.fighter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.ext-link {
  font-size: 0.88rem;
  color: #cc0000;
  text-decoration: none;
  border: 1px solid #cc0000;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}

.ext-link:hover { background: #cc0000; color: #fff; }

/* ── EVENTS CALENDAR ─────────────────────────────────────────── */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-month-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: #cc0000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0 0.3rem;
  border-bottom: 2px solid #cc0000;
  margin-top: 0.5rem;
}

.event-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.event-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.09); border-color: #cc0000; }
.event-cancelled  { opacity: 0.6; }

.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 0.4rem 0.6rem;
  background: #cc0000;
  border-radius: 8px;
  color: #fff;
  flex-shrink: 0;
}

.event-day-name  { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; opacity: 0.85; }
.event-day-num   { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-month     { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; opacity: 0.85; }

.event-card-body { flex: 1; min-width: 0; }

.event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.event-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0;
  flex: 1;
}

.event-type-badge {
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.type-mma        { background: #fde8e8; color: #c0392b; }
.type-bjj        { background: #e8f0fe; color: #1a4dcc; }
.type-grappling  { background: #e8f5e9; color: #1a7031; }
.type-boxing     { background: #fff3cd; color: #856404; }
.type-kickboxing { background: #f3e8ff; color: #6b21a8; }

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.3rem;
  align-items: center;
}

.event-org      { font-weight: 600; color: #444; }
.event-location { color: #666; }
.event-venue    { color: #888; font-style: italic; }

.event-main-event {
  font-size: 0.88rem;
  color: #555;
  margin: 0.2rem 0 0;
  font-style: italic;
}

.event-stream {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #1a1a2e;
  color: #fff;
  margin-top: 0.3rem;
}

.event-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-tickets {
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-tickets:hover { background: #a80000; }

.badge-cancelled  { font-size: 0.72rem; background: #fde8e8; color: #c0392b; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.badge-postponed  { font-size: 0.72rem; background: #fff3cd; color: #856404; padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* ── PAGINATION ──────────────────────────────────────────────── */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-pagination {
  padding: 0.4rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.15s;
}

.btn-pagination:hover { background: #f0f0f0; }

.pagination-info {
  font-size: 0.85rem;
  color: #666;
}

/* ── ADMIN TABLE & MODALS ────────────────────────────────────── */
.admin-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-tab-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-filters-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #666;
}

.admin-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.admin-table tr:hover td { background: #fafafa; }

.admin-actions { white-space: nowrap; }

.btn-edit, .btn-delete {
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  border: none;
  margin-right: 4px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.btn-edit   { background: #2563eb; color: #fff; }
.btn-delete { background: #dc2626; color: #fff; }
.btn-edit:hover, .btn-delete:hover { opacity: 0.85; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1rem;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-lg { max-width: 780px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.modal-header h3 { margin: 0; font-size: 1.1rem; }

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.modal-close:hover { background: #f0f0f0; }

.modal-body { padding: 1.25rem; }

/* ── FORM ELEMENTS ───────────────────────────────────────────── */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.form-span-2 { grid-column: span 2; }
.form-group  { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: #555; }
.form-section-label { font-size: 0.8rem; font-weight: 700; color: #cc0000; text-transform: uppercase; letter-spacing: 0.05em; margin: 1rem 0 0.4rem; }
.form-input, .form-select, .form-textarea {
  padding: 0.45rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  background: #fff;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #cc0000;
}
.form-textarea { resize: vertical; min-height: 70px; }
.form-checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: #444; cursor: pointer; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #eee; }

/* ── MISC ────────────────────────────────────────────────────── */
.loading-spinner { text-align: center; padding: 2rem; color: #888; font-size: 0.95rem; }
.empty-msg       { text-align: center; padding: 2rem; color: #999; font-style: italic; }
.error-msg       { text-align: center; padding: 2rem; color: #c0392b; }
.type-badge      { font-size: 0.75rem; padding: 2px 8px; background: #f0f0f0; border-radius: 10px; color: #555; font-weight: 600; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .fighters-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .fighter-profile-header { flex-direction: column; align-items: center; text-align: center; }
  .fighter-profile-tags { justify-content: center; }
  .event-card { flex-direction: column; }
  .event-card-actions { flex-direction: row; align-self: flex-start; }
  .form-grid-2, .form-grid-4 { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: span 1; }
  .modal-box { max-width: 100%; }
  .admin-table { font-size: 0.8rem; }
  .fight-table th:nth-child(5),
  .fight-table td:nth-child(5) { display: none; }
}
