/* ===== Social Media — Welcome Page ===== */

.sm-welcome-section {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 149, 255, 0.04) 50%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.sm-welcome-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 200, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sm-welcome-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.sm-welcome-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 149, 255, 0.1);
  border: 1px solid rgba(0, 149, 255, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4fc3f7;
  margin-bottom: 16px;
}

.sm-welcome-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.sm-welcome-sub {
  font-size: 16px;
  color: var(--text-secondary, #94a3b8);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.sm-icons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.sm-icon-link {
  --sm-color: #0095ff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  opacity: 0;
  animation: smIconIn 0.5s ease forwards;
}

.sm-icon-link:nth-child(1) { animation-delay: 0.05s; }
.sm-icon-link:nth-child(2) { animation-delay: 0.1s; }
.sm-icon-link:nth-child(3) { animation-delay: 0.15s; }
.sm-icon-link:nth-child(4) { animation-delay: 0.2s; }
.sm-icon-link:nth-child(5) { animation-delay: 0.25s; }
.sm-icon-link:nth-child(6) { animation-delay: 0.3s; }
.sm-icon-link:nth-child(7) { animation-delay: 0.35s; }
.sm-icon-link:nth-child(8) { animation-delay: 0.4s; }

@keyframes smIconIn {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sm-icon-link svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 0.35s ease;
}

.sm-icon-link .sm-other-emoji {
  font-size: 26px;
  line-height: 1;
}

.sm-icon-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: rgba(15, 20, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.sm-icon-link:hover {
  transform: translateY(-6px) scale(1.08);
  border-color: var(--sm-color);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px color-mix(in srgb, var(--sm-color) 35%, transparent);
  background: color-mix(in srgb, var(--sm-color) 12%, transparent);
}

.sm-icon-link:hover svg { transform: scale(1.1); }
.sm-icon-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sm-icon-link.facebook { --sm-color: #1877f2; }
.sm-icon-link.telegram { --sm-color: #26a5e4; }
.sm-icon-link.instagram { --sm-color: #e4405f; }
.sm-icon-link.youtube { --sm-color: #ff0000; }
.sm-icon-link.other { --sm-color: #9c27b0; }

.sm-hero-social {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-hero-social-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.sm-hero-social .sm-icons-row {
  justify-content: flex-start;
  gap: 12px;
}

.sm-hero-social .sm-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.sm-hero-social .sm-icon-link svg {
  width: 22px;
  height: 22px;
}

.sm-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sm-footer-social .sm-icon-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.sm-footer-social .sm-icon-link svg {
  width: 18px;
  height: 18px;
}

.sm-footer-social .sm-icon-link::after { display: none; }

/* ===== Admin Panel ===== */

.sm-admin-wrap { max-width: 920px; }

.sm-admin-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.sm-admin-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.sm-admin-card {
  background: var(--bg-card, #151c2c);
  border: 1px solid var(--border-color, #1e293b);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}

.sm-admin-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sm-platform-row {
  display: grid;
  grid-template-columns: 48px 120px 1fr 72px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color, #1e293b);
}

.sm-platform-row:last-child { border-bottom: none; }

.sm-platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-platform-icon.facebook { background: rgba(24, 119, 242, 0.15); color: #1877f2; }
.sm-platform-icon.telegram { background: rgba(38, 165, 228, 0.15); color: #26a5e4; }
.sm-platform-icon.instagram { background: rgba(228, 64, 95, 0.15); color: #e4405f; }
.sm-platform-icon.youtube { background: rgba(255, 0, 0, 0.12); color: #ff4444; }

.sm-platform-icon svg { width: 22px; height: 22px; fill: currentColor; }

.sm-platform-row label.name { font-weight: 600; font-size: 14px; }

.sm-platform-row input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input, #111827);
  border: 1px solid var(--border-input, #2a3546);
  color: var(--text-primary, #fff);
  border-radius: 8px;
  font-size: 13px;
}

.sm-platform-row input:focus {
  outline: none;
  border-color: var(--accent-blue, #0095ff);
}

.sm-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
}

.sm-toggle input { accent-color: #00c853; }

.sm-others-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.sm-other-row {
  display: grid;
  grid-template-columns: 1fr 1fr 72px auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.sm-other-row input {
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 13px;
}

.sm-btn-remove {
  padding: 8px 12px;
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: #ff5252;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sm-btn-add-other {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 149, 255, 0.1);
  border: 1px dashed rgba(0, 149, 255, 0.4);
  color: #4fc3f7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sm-admin-actions { margin-top: 8px; }

.sm-preview-box {
  margin-top: 24px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.sm-preview-box h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sm-empty-hint {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .sm-platform-row {
    grid-template-columns: 44px 1fr;
  }
  .sm-platform-row label.name { grid-column: 2; }
  .sm-platform-row input { grid-column: 2; }
  .sm-platform-row .sm-toggle { grid-column: 2; }
  .sm-other-row { grid-template-columns: 1fr; }
  .sm-welcome-title { font-size: 22px; }
  .sm-hero-social .sm-icons-row,
  .hero-content .sm-hero-social .sm-icons-row { justify-content: center; }
  .hero-content .sm-hero-social { text-align: center; }
}
