/* ===================================================================
   CUỘC THI TRỰC TUYẾN - UBMTTQVN TP ĐÀ NẴNG
   Phong cách: 3D không gian · Trống đồng phát quang xoay đa chiều
   =================================================================== */
:root {
  --primary: #1976D2;
  --primary-2: #0D47A1;
  --primary-3: #42A5F5;
  --navy: #062252;
  --cyan: #00BCD4;
  --gold: #FFC107;
  --gold-2: #ffd54f;
  --red: #d32f2f;
  --surface: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --border: #f1cf88;
  --shadow-3d: 0 25px 60px -15px rgba(3, 25, 70, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6);
  --radius: 28px;
  --font: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --font-title: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 30px 16px 50px;
  background-color: var(--primary-2);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(66, 165, 245, 0.4), transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(0, 188, 212, 0.25), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(25, 118, 210, 0.45), transparent 45%),
    linear-gradient(160deg, #0a3c8c 0%, #0D47A1 45%, #051b42 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

/* Lưới kỹ thuật số khoa học chìm */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}

/* ================= TRỐNG ĐỒNG 3D XOAY PHÁT QUANG ================= */
.trong-dong-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(1000px, 140vmax);
  aspect-ratio: 1 / 1;
  z-index: -2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  perspective: 1400px;
  transform-style: preserve-3d;
}

/* Mặt trống đồng xoay nghiêng 3D */
.trong-dong-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./trong-dong.svg") center / contain no-repeat;
  /* Chuyển vector thành màu vàng đồng hoàng gia và phát sáng */
  filter: invert(82%) sepia(50%) saturate(1200%) hue-rotate(355deg) brightness(105%) drop-shadow(0 0 30px rgba(255, 193, 7, 0.65));
  opacity: 0.35;
  animation: drumSpin3D 140s linear infinite;
  will-change: transform;
}

/* Tâm hào quang phát sáng đập nhẹ */
.trong-dong-bg::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.35) 0%, rgba(66, 165, 245, 0.2) 40%, transparent 70%);
  animation: drumPulseGlow 6s ease-in-out infinite;
}

@keyframes drumSpin3D {
  0% {
    transform: rotateX(24deg) rotateY(4deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(24deg) rotateY(4deg) rotateZ(360deg);
  }
}

@keyframes drumPulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 0.95; transform: scale(1.1); filter: drop-shadow(0 0 45px rgba(255, 193, 7, 0.7)); }
}

/* ================= KHUNG CHỨA (CONTAINER) ================= */
.container {
  width: min(980px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-3d), 0 0 0 8px rgba(255, 255, 255, 0.08);
  animation: containerRise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ================= HEADER ================= */
.header {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 38px 26px 30px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 50%),
    linear-gradient(135deg, #1E88E5 0%, #1565C0 50%, #0D47A1 100%);
}

.header::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 50%;
  margin: -260px 0 0 -260px;
  background: url("./trong-dong.svg") center / contain no-repeat;
  opacity: 0.12;
  filter: invert(100%);
  animation: spinHeader 120s linear infinite reverse;
}

.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold) 25%, var(--gold-2) 50%, var(--gold) 75%, var(--red));
  box-shadow: 0 -2px 10px rgba(255, 193, 7, 0.5);
}

.header img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 6px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e3f0ff 75%);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.3),
    0 14px 25px -6px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 213, 79, 0.35);
}

.header p {
  font-size: clamp(0.72rem, 2.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: var(--font-title);
  margin-bottom: 12px;
  color: var(--gold-2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.header h1 {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  line-height: 1.48;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ================= NỘI DUNG THÔNG BÁO ================= */
.content {
  padding: 38px clamp(16px, 4vw, 44px) 46px;
}

.notice-card {
  background: #fffdf5;
  border: 1.5px solid #f6d896;
  border-radius: 24px;
  box-shadow: 0 16px 40px -10px rgba(13, 71, 161, 0.12), 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: clamp(22px, 4vw, 40px) clamp(16px, 4vw, 36px);
  margin: 0 auto;
  max-width: 820px;
}

.notice-card-title {
  color: #a31d1d;
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 4.2vw, 1.95rem);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.notice-divider {
  height: 1px;
  border-top: 1.5px dashed #f1cf88;
  margin: 0 auto 16px;
  max-width: 94%;
}

.notice-desc {
  text-align: center;
  color: #1e3a8a;
  font-style: italic;
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 26px;
  padding: 0 8px;
}

.phase-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
}

.phase-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #f4e3c3;
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.phase-item:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.09);
}

.phase-icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.phase-name {
  flex: 0 0 auto;
  font-weight: 800;
  color: #1e3a8a;
  font-size: clamp(1.05rem, 3.3vw, 1.25rem);
  min-width: 82px;
}

.phase-time {
  flex: 1 1 auto;
  font-size: clamp(0.95rem, 3.1vw, 1.15rem);
  color: #334155;
  line-height: 1.5;
}

.phase-time strong {
  color: #0f172a;
  font-weight: 800;
}

/* ================= ANIMATION & RESPONSIVE ================= */
@keyframes spinHeader { to { transform: rotate(360deg); } }
@keyframes containerRise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  body { padding: 12px 8px 30px; }
  .container { border-radius: 20px; }
  .header { padding: 24px 14px 20px; }
  .header img { width: 76px; height: 76px; margin-bottom: 10px; }
  .header h1 { font-size: 0.95rem; line-height: 1.45; }
  .content { padding: 22px 12px 30px; }
  
  .notice-card { padding: 18px 12px; border-radius: 18px; }
  .phase-item {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 12px 14px;
  }
  .phase-name { min-width: auto; }
  .phase-time { width: 100%; padding-left: 2px; }
}