/*
  Nexora Social - Brand Guidelines & Identity Styles
  "Connect Beyond Limits"
*/

/* Brand Guidelines Tab Layout */
.brand-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.brand-section-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
}

.brand-section-header h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-section-header h2 svg {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

/* Logo Showcase Grid */
.logo-showcase-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .logo-showcase-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.logo-display-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.logo-display-card.light-bg {
  background-color: #FFFFFF;
}

.logo-display-card.dark-bg {
  background-color: #0F172A;
}

.logo-display-card.accent-bg {
  background: var(--gradient-primary);
}

.logo-display-card svg, .logo-display-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
}

.logo-card-label {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.light-bg .logo-card-label { color: #64748B; }
.dark-bg .logo-card-label { color: #94A3B8; }
.accent-bg .logo-card-label { color: #FFFFFF; opacity: 0.8; }

/* Color Swatches Grid */
.color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .color-swatches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .color-swatches-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.swatch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.swatch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.swatch-color-bar {
  height: 100px;
  width: 100%;
}

.swatch-info {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.swatch-name {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--text-primary);
}

.swatch-hex {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-secondary);
}

.swatch-copied-popup {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: var(--text-xs);
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.swatch-card.copied .swatch-copied-popup {
  opacity: 1;
}

/* Typography Specimens Showcase */
.typography-specimen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .typography-specimen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.specimen-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.specimen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.specimen-font-name {
  font-weight: 900;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.specimen-font-lang {
  font-size: 10px;
  background: var(--bg-active);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 700;
}

.specimen-weights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.specimen-weight-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.weight-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.weight-preview {
  font-size: var(--text-lg);
  color: var(--text-primary);
}

/* Brand Guidelines Rules Table */
.brand-rules-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
}

.brand-rules-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
  font-size: var(--text-sm);
}

.brand-rules-table tr:last-child td {
  border-bottom: none;
}

.brand-rules-table td:first-child {
  font-weight: 700;
  color: var(--text-primary);
  width: 180px;
}

.brand-rules-table td:last-child {
  color: var(--text-secondary);
}
