@charset "UTF-8";

/**
 * Soolhanjan WebApp Hub - '심심할 때 딴짓' Stylesheet
 */

.play-hub-container,
.play-hub-container *,
.play-hub-container *::before,
.play-hub-container *::after {
  box-sizing: border-box;
}

.play-hub-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px 50px;
}

/* Hero Banner */
.play-hero {
  text-align: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #faf5ff 100%);
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
}

.play-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.08);
  margin-bottom: 12px;
}

.play-hero__title {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}

.play-hero__desc {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  max-width: 580px;
  margin: 0 auto;
  word-break: keep-all;
}

/* Tools Grid */
.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* Tool Card */
.play-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.play-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.play-card--featured {
  border: 2px solid #38bdf8;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 40%);
}

.play-card__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
}

.play-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.play-card__icon {
  font-size: 28px;
  line-height: 1;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.play-card__meta {
  flex: 1;
  min-width: 0;
}

.play-card__status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.status--active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.status--soon {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.status--suggest {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Sponsored Ad Card (Square Unit) */
.play-card--ad {
  background: #fafbfc;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 320px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.play-card--ad:hover {
  border-color: #94a3b8;
}

.play-card__ad-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  z-index: 2;
  pointer-events: none;
}

.play-ad-body {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.play-ad-body .google-adsense {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.play-inline-display-ad {
  width: 100% !important;
  max-width: 300px !important;
  min-height: 250px !important;
  margin: 0 auto !important;
  display: block !important;
}

.play-card__title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.35;
  word-break: keep-all;
}

.play-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
}

.play-tag {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  line-height: 1.3;
}

.play-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
  flex-grow: 1;
  margin: 14px 0 16px;
  word-break: keep-all;
}

.play-card__btn {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  max-width: 100% !important;
  margin: auto 0 0 0 !important;
  padding: 12px 18px !important;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  height: auto !important;
  min-height: 46px;
  text-decoration: none !important;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.play-card__btn--primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.play-card__btn--primary:hover {
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.45);
  transform: translateY(-1px);
}

.play-card__btn--disabled {
  background: #f1f5f9;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

.play-card__btn--outline {
  background: #ffffff;
  color: #3b82f6 !important;
  border: 1px solid #bfdbfe;
}

.play-card__btn--outline:hover {
  background: #f0f7ff;
}

/* Direct Access Redirect Notice Alert */
.play-redirect-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #eff6ff;
  border: 1.5px solid #60a5fa;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  animation: alertSlideDown 0.35s ease-out;
}

@keyframes alertSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.play-redirect-alert__icon {
  font-size: 26px;
  flex-shrink: 0;
}

.play-redirect-alert__body {
  flex-grow: 1;
}

.play-redirect-alert__title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 3px;
}

.play-redirect-alert__text {
  font-size: 13.5px;
  color: #2563eb;
  margin: 0;
  line-height: 1.45;
}

.play-redirect-alert__close {
  background: none;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.15s;
}

.play-redirect-alert__close:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

/* Highlight pulse for target card when redirected */
.play-card--highlight {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  animation: targetCardPulse 1.8s ease-in-out 3;
}

@keyframes targetCardPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@media (max-width: 600px) {
  .play-hero {
    padding: 24px 16px;
    border-radius: 20px;
  }
  .play-hero__title {
    font-size: 22px;
  }
  .play-grid {
    grid-template-columns: 1fr;
  }
}
