/* ========================================================
   AZARIN.ME - UNDER CONSTRUCTION DESIGN SYSTEM
   Modern Tech Minimalist with Glassmorphism & Fluid Animations
   ======================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-primary: #0a0c10;
  --bg-secondary: #12161f;
  --bg-card: rgba(22, 27, 38, 0.65);
  --bg-card-hover: rgba(30, 38, 54, 0.85);
  --bg-glass: rgba(18, 22, 31, 0.7);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(56, 189, 248, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;

  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --badge-bg: rgba(245, 158, 11, 0.12);
  --badge-border: rgba(245, 158, 11, 0.3);
  --badge-text: #fbbf24;
  --badge-pulse: #f59e0b;

  --glow-primary: rgba(56, 189, 248, 0.15);
  --glow-secondary: rgba(99, 102, 241, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px -10px rgba(56, 189, 248, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.75);

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.14);
  --border-accent: rgba(2, 132, 199, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  --badge-bg: rgba(245, 158, 11, 0.1);
  --badge-border: rgba(217, 119, 6, 0.35);
  --badge-text: #b45309;
  --badge-pulse: #d97706;

  --glow-primary: rgba(2, 132, 199, 0.1);
  --glow-secondary: rgba(99, 102, 241, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 35px -5px rgba(2, 132, 199, 0.2);
}

/* ========================================================
   Base & Reset
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Lights & Grid */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.blob-1 {
  top: -15%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(56, 189, 248, 0) 70%);
}

.blob-2 {
  top: 30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-indigo) 0%, rgba(99, 102, 241, 0) 70%);
  opacity: 0.45;
}

.blob-3 {
  bottom: -20%;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-amber) 0%, rgba(245, 158, 11, 0) 70%);
  opacity: 0.25;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}

/* Container */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* ========================================================
   Header / Navigation Bar
   ======================================================== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-btn, .admin-link-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-btn:hover, .admin-link-nav:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.theme-btn svg, .admin-link-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* ========================================================
   Hero Section
   ======================================================== */
.hero-section {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 20px -5px rgba(245, 158, 11, 0.25);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--badge-pulse);
  position: relative;
}

.status-indicator::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--badge-pulse);
  opacity: 0.5;
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hero Typography */
.hero-title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  white-space: pre-line;
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  white-space: pre-line;
}

.tag-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.tag-pill {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ========================================================
   Progress Bar Box
   ======================================================== */
.progress-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 680px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.progress-label {
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.progress-label svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-cyan);
}

.progress-number {
  font-weight: 700;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  position: relative;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========================================================
   Countdown Timer Section
   ======================================================== */
.countdown-card {
  background: linear-gradient(145deg, var(--bg-card), rgba(30, 41, 59, 0.4));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  text-align: center;
}

.countdown-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.countdown-sublabel {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.time-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.time-box:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.time-num {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.time-unit {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.countdown-expired-msg {
  display: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-emerald);
  padding: 1rem 0;
}

/* ========================================================
   Contact & Business Inquiries Card
   ======================================================== */
.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-bubble svg {
  width: 22px;
  height: 22px;
}

.contact-text-wrap h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.contact-text-wrap p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-email-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
  background: var(--border-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--border-strong);
  transform: translateY(-1px);
}

.btn svg {
  width: 15px;
  height: 15px;
}

/* ========================================================
   Links & Channel Grid
   ======================================================== */
.links-section {
  margin-bottom: 3.5rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  color: var(--text-tertiary);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: var(--transition-smooth);
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.link-card:hover::before {
  background: var(--accent-cyan);
}

.link-card.featured {
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(135deg, var(--bg-card), rgba(56, 189, 248, 0.05));
}

.link-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.link-card:hover .link-icon-wrap {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.link-icon-wrap svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.link-details {
  flex: 1;
  min-width: 0;
}

.link-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.link-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.link-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  color: var(--text-tertiary);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.link-card:hover .link-arrow {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ========================================================
   Footer
   ======================================================== */
.site-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-divider {
  color: var(--border-strong);
  font-size: 0.7rem;
}

.footer-copy {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.admin-access-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-subtle);
  transition: var(--transition-smooth);
}

.admin-access-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--border-subtle);
}

.admin-access-btn svg {
  width: 13px;
  height: 13px;
}

/* ========================================================
   Toast Notification
   ======================================================== */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-msg svg {
  width: 16px;
  height: 16px;
  color: var(--accent-emerald);
}

/* ========================================================
   Responsive Breakpoints
   ======================================================== */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem 1rem 3rem;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    gap: 0.5rem;
  }

  .time-box {
    padding: 0.65rem 0.35rem;
  }

  .contact-action-box {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-btn-group {
    justify-content: stretch;
  }

  .contact-btn-group .btn {
    flex: 1;
  }
}
