﻿:root {
  --brand-bg: #0b1633;
  --brand-card: #132347;
  --brand-card-soft: rgba(19, 35, 71, 0.72);
  --brand-border: rgba(255, 255, 255, 0.12);
  --brand-accent: #f59e0b;
  --brand-muted: rgba(226, 236, 255, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(24, 39, 78, 0.65), transparent 55%), var(--brand-bg);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}

main.container {
  width: min(1200px, calc(100% - 32px));
  margin: 90px auto 60px;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 30, 64, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.01em;
}

.page-header p {
  margin: 0;
  color: var(--brand-muted);
}

.brand-spotlight {
  position: relative;
  margin-top: 18px;
  min-height: 300px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(17, 34, 70, 0.96), rgba(9, 19, 41, 0.92));
  box-shadow: 0 24px 44px rgba(0,0,0,0.28);
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.brand-spotlight-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 14, 31, 0.72), rgba(11, 23, 49, 0.4));
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
}

.brand-spotlight-copy,
.brand-spotlight-logo {
  position: relative;
  z-index: 1;
}

.brand-spotlight-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.brand-spotlight-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(19,35,71,0.48);
  color: #dbe7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-spotlight h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.98;
}

.brand-spotlight-meta,
.brand-spotlight-summary {
  margin: 0;
  color: rgba(233, 241, 255, 0.82);
  line-height: 1.5;
}

.brand-spotlight-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.brand-spotlight-logo img {
  width: min(100%, 200px);
  max-height: 150px;
  object-fit: contain;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245,247,252,0.98), rgba(226,232,244,0.96));
  box-shadow: 0 18px 30px rgba(2, 8, 22, 0.24);
}

.brand-spotlight-actions {
  margin-top: 6px;
}

.brand-spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.72);
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
  text-decoration: none;
  font-weight: 700;
}

.controls {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 12px;
}

.control-field {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-field input,
.control-field select {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.control-field i {
  color: var(--brand-muted);
}

.brand-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.brand-card {
  position: relative;
  background: var(--brand-card-soft);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 14px 14px 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.brand-card-logo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 247, 252, 0.98), rgba(226, 232, 244, 0.96));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--brand-border);
}

.brand-card-logo.is-loading {
  position: relative;
  overflow: hidden;
}

.brand-card-logo.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.12) 48%, rgba(255,255,255,0.02) 100%),
    linear-gradient(180deg, rgba(245, 247, 252, 0.98), rgba(226, 232, 244, 0.96));
  background-size: 220px 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: brandImageShimmer 1.15s linear infinite;
}

.brand-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  opacity: 0;
  filter: blur(10px) drop-shadow(0 8px 18px rgba(15, 23, 42, 0.08));
  transition: opacity 220ms ease, filter 220ms ease;
}

.brand-card-logo img[data-ready="1"] {
  opacity: 1;
  filter: blur(0) drop-shadow(0 8px 18px rgba(15, 23, 42, 0.08));
}

@keyframes brandImageShimmer {
  from {
    background-position: -220px 0, 0 0;
  }
  to {
    background-position: calc(100% + 220px) 0, 0 0;
  }
}

.brand-card-name {
  font-weight: 700;
  font-size: 16px;
}

.brand-card-meta {
  color: var(--brand-muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brand-card-desc {
  font-size: 12px;
  color: rgba(226, 236, 255, 0.8);
  line-height: 1.4;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.18);
  color: #ffe0a3;
}

.card-menu-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 17, 40, 0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-menu-btn:hover {
  border-color: rgba(245, 158, 11, 0.7);
  color: var(--brand-accent);
}

.empty-state {
  margin-top: 40px;
  text-align: center;
  color: var(--brand-muted);
}

@media (max-width: 900px) {
  .controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .brand-spotlight {
    grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.62fr);
    min-height: 190px;
    gap: 10px;
  }

  .brand-spotlight-copy {
    padding: 18px;
    gap: 8px;
  }

  .brand-spotlight-logo {
    padding: 12px 14px 12px 4px;
  }

  .brand-spotlight h2 {
    font-size: clamp(22px, 5vw, 30px);
  }

  .brand-spotlight-logo img {
    width: min(100%, 132px);
    max-height: 104px;
    padding: 10px;
  }
}

@media (max-width: 760px) {
  main.container {
    margin: 80px auto 50px;
  }

  .page-header {
    padding: 16px;
  }

  .brand-card-logo,
  .brand-card-logo img {
    background: linear-gradient(180deg, rgba(245, 247, 252, 0.98), rgba(226, 232, 244, 0.96)) !important;
  }

  .brand-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .brand-spotlight {
    min-height: 170px;
    border-radius: 18px;
    grid-template-columns: minmax(0, 1.15fr) minmax(96px, 0.55fr);
  }

  .brand-spotlight-copy {
    padding: 16px;
  }

  .brand-spotlight-kicker {
    padding: 5px 8px;
    font-size: 11px;
  }

  .brand-spotlight-meta,
  .brand-spotlight-summary {
    font-size: 13px;
    line-height: 1.4;
  }

  .brand-spotlight-logo img {
    width: min(100%, 112px);
    max-height: 88px;
    padding: 8px;
    border-radius: 14px;
  }
}

