/* Social Radar v2 — Devlog */

/* ========================================
   Developer Journal Page (dl-*)
   ======================================== */

.dl-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.dl-section {
  margin-bottom: 48px;
}

.dl-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.dl-section-desc {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.dl-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px;
}


/* ========================================
   Section 1: Stats Grid
   ======================================== */
.dl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dl-stat-card {
  background: rgba(26, 31, 46, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dl-stat-card:hover {
  transform: translateY(-4px);
  background: rgba(36, 43, 61, 0.5);
  border-color: var(--color-border);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.06);
}

/* Icon box inside stat card */
.dl-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.dl-stat-card:hover .dl-stat-icon {
  transform: scale(1.1);
}

.dl-stat-icon-version {
  color: var(--color-signal);
}

.dl-stat-icon-sources {
  color: var(--color-accent-text);
}

.dl-stat-icon-articles {
  color: var(--color-ok-green);
}

.dl-stat-icon-stage {
  color: #a78bfa;
}

.dl-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dl-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ========================================
   Section 2: Roadmap Phases
   ======================================== */
.dl-roadmap-phases {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dl-phase-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 130px;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Done state */
.dl-phase-card.dl-phase-done {
  opacity: 0.7;
  border-color: var(--color-border);
}

/* Active / current state */
.dl-phase-card.dl-phase-current {
  border-color: var(--color-signal);
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.15);
  background: rgba(36, 43, 61, 0.6);
  transform: scale(1.05);
  z-index: 1;
}

/* Planned state */
.dl-phase-card.dl-phase-planned {
  opacity: 0.5;
  border-style: dashed;
  border-color: var(--color-border);
  background: var(--color-bg);
}

/* Badge base */
.dl-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  border: 1px solid;
}

/* Badge states */
.dl-badge-done {
  background: rgba(74, 153, 104, 0.1);
  color: var(--color-ok-green);
  border-color: rgba(74, 153, 104, 0.2);
}

.dl-badge-progress {
  background: rgba(212, 168, 67, 0.1);
  color: var(--color-signal);
  border-color: rgba(212, 168, 67, 0.2);
}

.dl-badge-planned {
  background: rgba(139, 148, 158, 0.1);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.dl-phase-version {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.dl-phase-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.dl-phase-current .dl-phase-title {
  color: #fff;
}

.dl-phase-arrow {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.dl-phase-arrow-dim {
  color: var(--color-border);
}


/* ========================================
   Section 3: Developer Profile Card
   ======================================== */
.dl-developer-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(36, 43, 61, 0.8), rgba(26, 31, 46, 0.8));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 16px;
  padding: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dl-developer-card:hover {
  border-color: rgba(48, 54, 61, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Decorative background glow */
.dl-dev-glow {
  position: absolute;
  top: -64px;
  right: -64px;
  width: 256px;
  height: 256px;
  background: radial-gradient(circle, rgba(77, 240, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dl-dev-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
}

/* Avatar */
.dl-dev-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dl-dev-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
}

/* Online status dot */
.dl-dev-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--color-ok-green);
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-dev-status-pulse {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: dl-pulse 2s ease-in-out infinite;
}

@keyframes dl-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.dl-dev-info {
  flex: 1;
  min-width: 0;
}

.dl-dev-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.dl-dev-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.dl-dev-role-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(48, 54, 61, 0.8);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.dl-dev-bio {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* ========================================
   Section 4: Contact Links Grid
   ======================================== */
.dl-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dl-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(26, 31, 46, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.dl-contact-card:hover {
  transform: translateY(-3px);
}

/* Icon box */
.dl-contact-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(48, 54, 61, 0.8);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.dl-contact-text {
  min-width: 0;
}

.dl-contact-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  transition: color 0.3s ease;
}

.dl-contact-subtitle {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

/* GitHub hover */
.dl-contact-github:hover {
  border-color: var(--color-text-secondary);
  background: rgba(139, 148, 158, 0.08);
}

.dl-contact-github:hover .dl-contact-icon-box {
  color: #fff;
}

.dl-contact-github:hover .dl-contact-title {
  color: #fff;
}

/* LINE hover */
.dl-contact-line:hover {
  border-color: rgba(6, 199, 85, 0.5);
  background: rgba(6, 199, 85, 0.08);
}

.dl-contact-line:hover .dl-contact-icon-box {
  color: #06C755;
}

.dl-contact-line:hover .dl-contact-title {
  color: #fff;
}

/* Email hover */
.dl-contact-email:hover {
  border-color: rgba(77, 240, 255, 0.5);
  background: rgba(77, 240, 255, 0.08);
}

.dl-contact-email:hover .dl-contact-icon-box {
  color: var(--color-accent-text);
}

.dl-contact-email:hover .dl-contact-title {
  color: #fff;
}

/* Share hover */
.dl-contact-share:hover {
  border-color: rgba(138, 43, 226, 0.5);
  background: rgba(138, 43, 226, 0.08);
}

.dl-contact-share:hover .dl-contact-icon-box {
  color: #a78bfa;
}

.dl-contact-share:hover .dl-contact-title {
  color: #fff;
}


/* ========================================
   Section 5: Tech Stack Pills
   ======================================== */
.dl-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(26, 31, 46, 0.6);
  border: 1px solid rgba(48, 54, 61, 0.8);
  color: var(--color-text-secondary);
  cursor: default;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dl-tech-pill:hover {
  color: var(--color-text);
  background: rgba(36, 43, 61, 0.8);
  border-color: rgba(77, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(77, 240, 255, 0.1);
}
