/* /css/components/sonar.css */
.sn-bg-radar {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vmax;
  height: 150vmax;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 10px,
    rgba(201, 168, 76, 0.03) 10px,
    rgba(201, 168, 76, 0.03) 11px
  );
}

.sn-bg-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(201, 168, 76, 0.08) 10deg,
    transparent 20deg,
    transparent 360deg
  );
  animation: sn-radarSpin 10s linear infinite;
}

@keyframes sn-radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Grid */
.sn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-height: 650px;
}

/* Panel */
.sn-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--brd);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}

.sn-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.92;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.sn-panel:hover::before,
.sn-panel.active::before {
  opacity: 0.35;
}

/* Scanner Line */
.sn-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.sn-panel.active .sn-scanner {
  opacity: 1;
  animation: sn-scannerMove 2.5s ease-in-out infinite;
}

@keyframes sn-scannerMove {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 2px); }
}

/* Panel Content */
.sn-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.5s ease;
}

.sn-header {
  margin-bottom: 20px;
  min-height: 193px;
}

.sn-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--brd);
  transition: all 0.5s ease;
  line-height: 1;
}

.sn-panel:hover .sn-number,
.sn-panel.active .sn-number {
  opacity: 0.8;
}

.sn-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-d);
  border-radius: 50%;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.sn-panel:hover .sn-icon,
.sn-panel.active .sn-icon {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.5);
}

.sn-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold-d);
  transition: all 0.5s ease;
}

.sn-panel:hover .sn-icon svg,
.sn-panel.active .sn-icon svg {
  stroke: var(--bg);
}

.sn-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.sn-desc {
  color: var(--txt2);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Video Preview */
.sn-video-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.1s;
  background: var(--bg4);
}

.sn-panel:hover .sn-video-preview,
.sn-panel.active .sn-video-preview {
  opacity: 1;
  transform: translateY(0);
}

.sn-video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sn-panel:hover .sn-video-preview img {
  transform: scale(1.08);
}

.sn-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(201, 168, 76, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sn-panel:hover .sn-video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold-l);
}

.sn-video-play-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--bg);
  margin-left: 3px;
}

.sn-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--txt);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.sn-video-title-preview {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  font-size: 0.8rem;
  color: var(--txt);
  font-weight: 500;
  text-align: left;
}

/* Articles */
.sn-articles-section {
  flex: 1;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.15s;
  text-align: left;
}

.sn-panel:hover .sn-articles-section,
.sn-panel.active .sn-articles-section {
  opacity: 1;
  transform: translateY(0);
}

.sn-articles-title {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sn-articles-title::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.sn-article-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42, 52, 68, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sn-article-item:last-child {
  border-bottom: none;
}

.sn-article-item:hover {
  padding-left: 5px;
}

.sn-article-item:hover .sn-article-link {
  color: var(--gold);
}

.sn-article-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--bg4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.sn-article-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--txt3);
}

.sn-article-content {
  flex: 1;
}

.sn-article-link {
  color: var(--txt);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  margin-bottom: 3px;
  transition: color 0.3s ease;
}

.sn-article-meta {
  color: var(--txt3);
  font-size: 0.7rem;
  display: flex;
  gap: 10px;
}

/* Panel Actions */
.sn-actions {
  margin-top: auto;
  padding-top: 16px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sn-panel:hover .sn-actions,
.sn-panel.active .sn-actions {
  opacity: 1;
  transform: translateY(0);
}

.sn-btn {
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sn-btn-primary {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: var(--bg);
  border: none;
}

.sn-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
}

.sn-btn-secondary {
  background: transparent;
  color: var(--txt2);
  border: 1px solid var(--brd);
  font-size: 0.8rem;
  padding: 10px 16px;
}

.sn-btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
}

/* Ripple effect */
.sn-ripple {
  position: absolute;
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.sn-panel:hover .sn-ripple {
  animation: sn-rippleExpand 1s ease-out forwards;
}

@keyframes sn-rippleExpand {
  0% { width: 0; height: 0; opacity: 0.6; top: 50%; left: 50%; transform: translate(-50%, -50%); }
  100% { width: 400px; height: 400px; opacity: 0; top: 50%; left: 50%; transform: translate(-50%, -50%); }
}

/* Stats */
.sn-panel-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(42, 52, 68, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease 0.25s;
}

.sn-panel:hover .sn-panel-stats,
.sn-panel.active .sn-panel-stats {
  opacity: 1;
  transform: translateY(0);
}

.sn-stat-item {
  text-align: center;
}

.sn-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.sn-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--txt3);
}