/* ===== RESET & BASE ===== */
:root {
  --primary-green: #1a4d2e;
  --accent-gold: #fbbf24;
  --text-light: #ffffff;
  --bg-dark: #0f2818;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(
    135deg,
    #0a1f14 0%,
    #1a4d2e 25%,
    #0f3820 50%,
    #1a4d2e 75%,
    #0a1f14 100%
  );
  background-size: 400% 400%;
  animation: auroraFlow 20s ease-in-out infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

@keyframes auroraFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Subtle background overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(46, 204, 113, 0.15),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(52, 152, 219, 0.12),
      transparent 65%
    ),
    radial-gradient(circle at 50% 50%, rgba(39, 174, 96, 0.1), transparent 70%);
  animation: auroraGlow 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes auroraGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1.05);
  }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 680px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, #1a4d2e 0%, #27ae60 100%);
  padding: 190px 30px 50px;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

/* ===== LOGO ===== */
.logo-container {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 6s ease-in-out infinite;
  z-index: 10;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

.logo-bg {
  width: 100%;
  height: 100%;
  background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj8qXm8v3_rOwnyTcql93qv1ev1EJb1iVQCcy52Uu0Lc10I2B0C_TOaNEZa-hDKM67PlsDnz7mx1IgoO8Ij4IIgIKeiSbZjT2PPsxwQpWTBq5D6bE8NCPdiR7xHAnSFes_g-M6uHC8xHIFObNylq168wOQSC4Yp084Avu7qI8jXypWkFGL69rMZK-ny4w/s1648/logo%20porsadin%20br.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 8px 20px rgba(255, 215, 0, 0.4));
  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    filter: drop-shadow(0 8px 20px rgba(255, 215, 0, 0.4));
  }
  50% {
    filter: drop-shadow(0 12px 30px rgba(255, 215, 0, 0.7));
  }
}

/* ===== SHARE BUTTON ===== */
.share {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.share:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ===== TYPOGRAPHY ===== */
.header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent-gold);
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ===== EVENT INFO ===== */
.event-info {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.event-info > div {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
}

.event-info i {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

#hijri {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  white-space: nowrap;
  display: inline-block;
  animation: scrollTextFade 15s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes scrollTextFade {
  0% {
    transform: translateX(60%);
    opacity: 0;
    filter: blur(5px);
  }
  5% {
    opacity: 1;
    filter: blur(0px);
  }
  85% {
    opacity: 1;
    filter: blur(0px);
  }
  90% {
    transform: translateX(-60%);
    opacity: 0;
    filter: blur(5px);
  }
  100% {
    transform: translateX(-60%);
    opacity: 0;
    filter: blur(5px);
  }
}

/* ===== CONTENT AREA ===== */
.content {
  padding: 40px 30px;
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.cd-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.cd-box:hover {
  transform: translateY(-4px);
}

.cd-box span {
  display: block;
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.cd-box br + text {
  font-size: 0.85rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Status styles for live/ended event */
.status {
  padding: 20px;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: white;
}

.status.live {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  animation: pulse 2s ease-in-out infinite;
}

.status.end {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-bottom: 14px;
  transition: all 0.3s ease;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.3),
    inset 0 -4px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #27ae60 0%, #16a085 50%, #0e6f56 100%);
  border: 3px solid #fbbf24;
}

/* Glossy effect */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 50px 50px 0 0;
  pointer-events: none;
}

/* Matrix light effect */
.btn::before {
  content: "";
  position: absolute;
  top: -50%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 150, 0) 0%,
    rgba(0, 255, 150, 0.8) 30%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(0, 255, 150, 0.8) 70%,
    rgba(0, 255, 150, 0) 100%
  );
  transform: skewX(-25deg);
  filter: blur(2px);
}

@keyframes shineLeft {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 150%;
  }
}

@keyframes shineRight {
  0% {
    left: 150%;
  }
  50%,
  100% {
    left: -100%;
  }
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 150, 0.3),
    inset 0 -4px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.btn i {
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* Button animations */
.btn-profile::before {
  animation: shineLeft 2.5s ease-in-out infinite;
  animation-delay: 0s;
}

.btn-primary::before {
  animation: shineRight 2.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.btn-secondary::before {
  animation: shineLeft 2.5s ease-in-out infinite;
  animation-delay: 1s;
}

.btn-success::before {
  animation: shineRight 2.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

.btn-info::before {
  animation: shineLeft 2.5s ease-in-out infinite;
  animation-delay: 2s;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 30px 20px;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer strong {
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .event-info {
    flex-direction: column;
    gap: 16px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cd-box {
    padding: 20px 12px;
  }

  .cd-box span {
    font-size: 1.75rem;
  }

  .content {
    padding: 30px 20px;
  }

  .btn {
    font-size: 0.95rem;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 160px 20px 40px;
  }

  .logo-container {
    width: 100px;
    height: 120px;
  }

  .header h1 {
    font-size: 1.75rem;
    letter-spacing: 2px;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .countdown {
    gap: 10px;
  }

  .cd-box {
    padding: 16px 8px;
  }

  .cd-box span {
    font-size: 1.5rem;
  }
}

/* Disable text selection */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}