﻿/* Section: The Grid (Social / CB)
   Apply by setting menu Page Class to: section-grid
   Goal: Futuristic UI and ID-card styled profiles (via CSS only).
*/

/* Global look */
body.section-grid {
  --grid-bg: #0a0203;
  --grid-surface: #190506;
  --grid-accent: #ef4444;
  --grid-accent-2: #f97316;
  --grid-highlight: #facc15;
  --grid-text: #fbeaea;
  /* Prefer template-provided background image if available */
  background: var(--eotg-feed-bg, radial-gradient(1200px 800px at 20% -10%, #2a0406 0%, #130202 55%, #050000 100%)) fixed;
  background-size: var(--eotg-feed-bgsize, cover);
  background-repeat: var(--eotg-feed-bgrepeat, no-repeat);
  color: var(--grid-text);
}

.section-grid .navbar,
.section-grid .footer {
  background: #060202 !important;
  border-bottom: 1px solid rgba(239, 68, 68, 0.35);
}

/* Utility accents */
.section-grid a { color: var(--grid-accent); }
.section-grid a:hover { color: var(--grid-accent-2); }
.section-grid .btn,
.section-grid .btn-primary {
  background: linear-gradient(135deg, var(--grid-accent), var(--grid-accent-2));
  border: 0;
  color: #1a0505;
}

/* Panel surface */
.section-grid .siteBody .container,
.section-grid .card,
.section-grid .cbTemplate,
.section-grid .cbUserProfile,
.section-grid .well {
  background: linear-gradient(180deg, rgba(58,10,10,0.78), rgba(18,3,3,0.9));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
}

/* Optional "Government ID" profile look via CB field classes
   In Community Builder, add CSS classes to fields/rows like:
   - id-photo -> for the avatar field
   - id-name  -> for the character display name
   - id-meta  -> for small print rows (DOB, faction, role)
   - id-badges -> AUP badges block
*/
.section-grid .cbUserProfile { padding: 24px; }
.section-grid .cbUserProfile .id-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px 24px;
  align-items: start;
  background: linear-gradient(180deg, rgba(46,10,10,0.82), rgba(22,4,4,0.92));
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(120, 7, 7, 0.45);
  padding: 18px;
}
.section-grid .cbUserProfile .id-card .id-photo img {
  width: 100%; height: auto; border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.55);
}
.section-grid .cbUserProfile .id-card .id-name {
  font-family: "Bruno Ace SC", system-ui, sans-serif;
  font-size: 1.6rem; letter-spacing: 0.02em;
  color: var(--grid-accent);
}
.section-grid .cbUserProfile .id-card .id-meta {
  font-size: 0.92rem; opacity: 0.85;
}
.section-grid .cbUserProfile .id-card .id-badges img { height: 28px; margin: 6px; }

/* Tables and forms tidy */
.section-grid table, .section-grid .table { color: var(--grid-text); }
.section-grid input, .section-grid select, .section-grid textarea {
  background: #1a0909; color: var(--grid-text); border-color: rgba(239,68,68,0.35);
}

/* Trophy glow styles */
.section-grid .trophy-glow { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.section-grid .trophy-glow::before {
  content: ""; position: absolute; inset: -4px; border-radius: 10px; filter: blur(8px); opacity: .65; z-index: 0;
}
.section-grid .trophy-glow > img, .section-grid .trophy-glow > i { position: relative; z-index: 1; }
.section-grid .glow-red::before { background: radial-gradient(closest-side, rgba(255,80,80,.9), rgba(255,80,80,.0)); }
.section-grid .glow-lightblue::before { background: radial-gradient(closest-side, rgba(56,189,248,.9), rgba(56,189,248,.0)); }
.section-grid .glow-green::before { background: radial-gradient(closest-side, rgba(52,211,153,.9), rgba(52,211,153,.0)); }
.section-grid .glow-purple::before { background: radial-gradient(closest-side, rgba(167,139,250,.9), rgba(167,139,250,.0)); }
.section-grid .glow-pink::before { background: radial-gradient(closest-side, rgba(244,114,182,.9), rgba(244,114,182,.0)); }
.section-grid .glow-yellow::before { background: radial-gradient(closest-side, rgba(250,204,21,.9), rgba(250,204,21,.0)); }

/* Joomla Login/Logout – Futuristic font + Splash-style buttons */
.section-grid .mod-login,
.section-grid .mod-logout {
  font-family: "Quantico", system-ui, ui-sans-serif, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  color: var(--grid-text);
}
.section-grid .mod-login h1,
.section-grid .mod-login h2,
.section-grid .mod-login .title,
.section-grid .mod-logout h1,
.section-grid .mod-logout h2 {
  font-family: "Bruno Ace SC", system-ui, sans-serif;
  letter-spacing: .04em;
  font-weight: 700;
  color: var(--grid-accent);
}
/* Inputs */
.section-grid .mod-login input[type="text"],
.section-grid .mod-login input[type="email"],
.section-grid .mod-login input[type="password"],
.section-grid .mod-login input[type="search"],
.section-grid .mod-login select,
.section-grid .mod-login textarea {
  background: #1a0909;
  color: var(--grid-text);
  border: 1px solid rgba(239,68,68,.4);
  border-radius: 10px;
}
/* Buttons styled like splash */
.section-grid .mod-login .btn,
.section-grid .mod-login button,
.section-grid .mod-login input[type="submit"],
.section-grid .mod-logout .btn,
.section-grid .mod-logout button,
.section-grid .mod-logout input[type="submit"] {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: .06em;
  border: 0;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--grid-accent), var(--grid-accent-2));
  box-shadow: 0 4px 16px rgba(127,29,29,0.3);
}
.section-grid .mod-login .btn:hover,
.section-grid .mod-login button:hover,
.section-grid .mod-login input[type="submit"]:hover,
.section-grid .mod-logout .btn:hover,
.section-grid .mod-logout button:hover,
.section-grid .mod-logout input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--grid-accent-2) 0%, var(--grid-accent) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(127,29,29,0.35);
}
/* Greeting "Hi USER" */
.section-grid .mod-login__greeting,
.section-grid .mod-logout .greeting,
.section-grid .mod-login .greeting {
  font-family: "Bruno Ace SC", system-ui, sans-serif;
  letter-spacing: .03em;
  color: var(--grid-accent);
  margin-bottom: .5rem;
}/* common CB module wrapper */
.section-grid .cbLoginForm, /* CB component form (class on form) */
.section-grid .cbLoginModule, /* alt module wrapper */
.section-grid form[action*="com_comprofiler"][method="post"] { /* fallback */
  font-family: "Quantico", system-ui, ui-sans-serif, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  color: var(--grid-text);
}
.section-grid .cbLogin h1,
.section-grid .cbLogin h2,
.section-grid .cbLogin .title,
.section-grid .cbLoginForm legend {
  font-family: "Bruno Ace SC", system-ui, sans-serif;
  letter-spacing: .04em;
  font-weight: 700;
  color: var(--grid-accent);
}
.section-grid .cbLogin input[type="text"],
.section-grid .cbLogin input[type="email"],
.section-grid .cbLogin input[type="password"],
.section-grid .cbLoginForm input[type="text"],
.section-grid .cbLoginForm input[type="email"],
.section-grid .cbLoginForm input[type="password"] {
  background: #1a0909;
  color: var(--grid-text);
  border: 1px solid rgba(239,68,68,.4);
  border-radius: 10px;
}
.section-grid .cbLogin .btn,
.section-grid .cbLogin button,
.section-grid .cbLogin input[type="submit"],
.section-grid .cbLoginForm .btn,
.section-grid .cbLoginForm button[type="submit"],
.section-grid .cbLoginForm input[type="submit"] {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: .06em;
  border: 0;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--grid-accent), var(--grid-accent-2));
  box-shadow: 0 4px 16px rgba(127,29,29,0.3);
}
.section-grid .cbLogin .btn:hover,
.section-grid .cbLogin button:hover,
.section-grid .cbLogin input[type="submit"]:hover,
.section-grid .cbLoginForm .btn:hover,
.section-grid .cbLoginForm button[type="submit"]:hover,
.section-grid .cbLoginForm input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--grid-accent-2) 0%, var(--grid-accent) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(127,29,29,0.35);
}

