/* =========================================================
   SHOUT! — Front-End Base Styles
   Bold red/black, clean cards, responsive grid
   ========================================================= */

:root{
  --bg: #0b0b0d;
  --panel: #121217;
  --panel2: #171720;
  --text: #f3f3f5;
  --muted: #b7b7c2;
  --border: rgba(255,255,255,0.10);

  --red: #e10b1c;
  --red2: #ff2436;
  --black: #000000;

  --shadow: 0 10px 30px rgba(0,0,0,0.45);
  --radius: 14px;

  --max: 1120px;
  --pad: 18px;
  --pad2: 26px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 20% -20%, rgba(225,11,28,0.20), rgba(0,0,0,0) 55%),
              radial-gradient(900px 500px at 90% 0%, rgba(225,11,28,0.14), rgba(0,0,0,0) 60%),
              linear-gradient(180deg, #09090c 0%, #070709 100%);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

img{ max-width: 100%; height: auto; display: block; }

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo{
  height: 100px;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.6));
}

.nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.hero{
  padding: 26px 0 10px 0;
}

h1,h2,h3{
  margin: 0 0 10px 0;
  line-height: 1.15;
}

h1{ font-size: 34px; letter-spacing: -0.02em; }
h2{ font-size: 22px; margin-top: 26px; }
h3{ font-size: 18px; }

p{
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.6;
}

hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo{ height: 46px; }
}
@media (max-width: 460px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 13px 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .14s ease, border-color .14s ease;
}

.card::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(500px 160px at 20% 0%, rgba(225,11,28,0.20), rgba(0,0,0,0) 62%);
  opacity: 0.75;
  pointer-events:none;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(225,11,28,0.35);
}

.card-title{
  position: relative;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}

.card-sub{
  position: relative;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(225,11,28,0.35);
  background: rgba(225,11,28,0.10);
  color: var(--text);
}

.badge .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(225,11,28,0.18);
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.button:hover{
  transform: translateY(-1px);
  border-color: rgba(225,11,28,0.35);
  background: rgba(225,11,28,0.10);
}

.button.primary{
  border-color: rgba(225,11,28,0.55);
  background: linear-gradient(180deg, rgba(225,11,28,0.95), rgba(225,11,28,0.70));
}

.button.primary:hover{
  background: linear-gradient(180deg, rgba(255,36,54,0.98), rgba(225,11,28,0.78));
}

.panel{
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad2);
  box-shadow: var(--shadow);
}

.form-row{ margin-bottom: 14px; }

label{
  display:block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
textarea,
select{
  width: 100%;
  max-width: 720px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  outline: none;
}

textarea{ max-width: 920px; }

input:focus, textarea:focus, select:focus{
  border-color: rgba(225,11,28,0.50);
  box-shadow: 0 0 0 4px rgba(225,11,28,0.16);
}

small{ color: var(--muted); }

.table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table th, .table td{
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}

.table th{
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(255,255,255,0.03);
}

.table tr:hover td{
  background: rgba(255,255,255,0.03);
}

.media{
  margin-top: 16px;
}

video, audio{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  box-shadow: var(--shadow);
}

.footer{
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;

}

.notice{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.notice.ok{
  border-color: rgba(0, 200, 110, 0.35);
  background: rgba(0, 200, 110, 0.08);
}

.notice.err{
  border-color: rgba(225,11,28,0.45);
  background: rgba(225,11,28,0.10);
}