/* =========================================
   Notice Banner (お知らせバナー) — 汎用・任意ページ再利用
   info-schedule の coming-soon の外観を踏襲（特定ページ非依存）

   Specificity note:
   親テーマ系の ui-framework.css に `#douyu-wrapper * { padding/margin/border: 0 }`
   という id スコープのリセット (specificity 1,0,0) があり、素の `.ships-notice`
   (0,1,0) では負けて padding 等が潰れる。
   `:is(#douyu-wrapper, body)` を前置して id 相当の specificity (1,1,0) を借りる。
   body は常に祖先なので #douyu-wrapper の有無に関わらず任意ページで適用される。
   ========================================= */

:is(#douyu-wrapper, body) .ships-notice {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid var(--ui-primary);
  border-radius: var(--ui-radius-lg);
  padding: var(--ui-spacing-xl);
  margin: var(--ui-spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

:is(#douyu-wrapper, body) .ships-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ui-primary) 0%, var(--ui-primary-light) 100%);
}

:is(#douyu-wrapper, body) .ships-notice__icon {
  font-size: 48px;
  color: var(--ui-primary);
  margin-bottom: var(--ui-spacing-lg);
  animation: ships-notice-pulse 2s ease-in-out infinite;
}

@keyframes ships-notice-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

:is(#douyu-wrapper, body) .ships-notice__title {
  font-family: var(--ui-font-family-secondary);
  font-size: 24px;
  font-weight: 700;
  color: var(--ui-text-primary);
  margin: 0 0 var(--ui-spacing-lg) 0;
  line-height: 1.4;
}

:is(#douyu-wrapper, body) .ships-notice__description {
  font-family: var(--ui-font-family-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ui-text-secondary);
  margin: 0;
}

:is(#douyu-wrapper, body) .ships-notice__note {
  font-family: var(--ui-font-family-main);
  font-size: 13px;
  color: var(--ui-text-secondary);
  margin: var(--ui-spacing-md) 0 0 0;
}

/* 本文 / 注記の揃え（スタイル既定の text-align を任意で上書き） */
:is(#douyu-wrapper, body) .ships-notice .ships-notice__align--left {
  text-align: left;
}

:is(#douyu-wrapper, body) .ships-notice .ships-notice__align--center {
  text-align: center;
}

:is(#douyu-wrapper, body) .ships-notice .ships-notice__align--right {
  text-align: right;
}

/* 複数バナーのスタック間隔 */
:is(#douyu-wrapper, body) .ships-notice + .ships-notice {
  margin-top: var(--ui-spacing-lg);
}

/* =========================================
   Alert variant（左寄せ・注意喚起）— 旧ログインノティスの外観
   ========================================= */

:is(#douyu-wrapper, body) .ships-notice--alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: #fff8e1;
  border: 1px solid #ffc107;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0 0 18px 0;
  color: #5c4500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: visible;
}

:is(#douyu-wrapper, body) .ships-notice--alert::before {
  display: none;
}

:is(#douyu-wrapper, body) .ships-notice--alert .ships-notice__icon {
  font-size: 20px;
  color: #b58300;
  margin: 2px 0 0 0;
  flex-shrink: 0;
  animation: none;
}

:is(#douyu-wrapper, body) .ships-notice--alert .ships-notice__body {
  flex: 1;
  min-width: 0;
}

:is(#douyu-wrapper, body) .ships-notice--alert .ships-notice__title {
  font-family: var(--ui-font-family-main);
  font-size: 15px;
  font-weight: 700;
  color: #4a3700;
  margin: 0 0 6px 0;
  line-height: 1.5;
}

:is(#douyu-wrapper, body) .ships-notice--alert .ships-notice__description {
  font-size: 14px;
  line-height: 1.65;
  color: #5c4500;
  margin: 0;
}

:is(#douyu-wrapper, body) .ships-notice--alert .ships-notice__note {
  margin: 6px 0 0 0;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 193, 7, 0.6);
  font-size: 12.5px;
  color: #6b5500;
}

/* Responsive */
@media (max-width: 768px) {
  :is(#douyu-wrapper, body) .ships-notice {
    padding: var(--ui-spacing-lg);
    margin: var(--ui-spacing-lg) 0;
  }

  :is(#douyu-wrapper, body) .ships-notice__icon {
    font-size: 36px;
    margin-bottom: var(--ui-spacing-md);
  }

  :is(#douyu-wrapper, body) .ships-notice__title {
    font-size: 20px;
    margin-bottom: var(--ui-spacing-md);
  }

  :is(#douyu-wrapper, body) .ships-notice__description {
    font-size: 14px;
    line-height: 1.7;
  }

  :is(#douyu-wrapper, body) .ships-notice--alert {
    padding: 12px 14px;
    gap: 10px;
  }

  :is(#douyu-wrapper, body) .ships-notice--alert .ships-notice__title {
    font-size: 14px;
  }

  :is(#douyu-wrapper, body) .ships-notice--alert .ships-notice__description {
    font-size: 13px;
  }
}
