/* ==========================================================================
   ステータスバナー - シンプル・ミニマム版
   ========================================================================== */

/* バナー基本スタイル */
.status-banner {
  display: none;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  box-shadow: 0 2px 12px rgba(74, 144, 226, 0.2);
  position: relative;
  z-index: 50;
  width: 100%;
  transition: all 0.3s ease;
}

.status-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><circle cx="100" cy="50" r="20"/><circle cx="400" cy="30" r="15"/><circle cx="700" cy="60" r="18"/><circle cx="900" cy="25" r="12"/></svg>');
  opacity: 0.4;
}

.status-banner .container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* ヘッダー */
.status-banner .status-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  outline: none;
  min-height: 60px;
  gap: 1rem;
  flex-wrap: nowrap;
}

.status-banner .status-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.status-banner .status-header:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.status-banner .status-header:focus:not(:focus-visible) {
  outline: 0;
}

.status-banner .status-header:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

/* ステータス情報 */
.status-banner .status-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.status-banner .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--status-scheduled);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.status-banner .status-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  line-break: auto;
}

.status-indicator {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-indicator.scheduled { background: var(--status-scheduled); color: white; }
.status-indicator.cancelled { background: var(--status-cancelled); color: white; }
.status-indicator.indoor { background: var(--status-indoor); color: white; }
.status-indicator.postponed { background: var(--status-postponed); color: white; }
.status-indicator.loading { background: var(--gray-400, #9ca3af); color: white; }
.status-indicator.error { background: var(--primary-red); color: white; }

/* トグルアイコン */
.status-banner .toggle-icon {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, background-color 0.2s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.status-banner .status-header:hover .toggle-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.status-banner[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.3);
}

/* コンテンツエリア */
.status-banner .status-content {
  display: none;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
  position: relative;
  z-index: 10;
}

.status-banner .status-content[hidden] {
  display: none !important;
}

.status-banner .status-content:not([hidden]) {
  display: block;
  opacity: 1;
  height: auto;
}

/* 詳細エリア */
.status-banner .status-details {
  background: var(--white);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--primary-blue);
}

.status-banner .status-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
  z-index: 1;
}

/* コース詳細 */
.status-banner .courses-detail {
  padding: 2rem;
  background: #ffffff;
}

.status-banner .courses-detail h4 {
  margin: 0 0 1.5rem 0;
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  line-break: auto;
}

.status-banner .courses-detail h4::before {
  content: '📅';
  font-size: 1.1rem;
}

/* コース一覧 */
.status-banner .courses-status {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* デスクトップ・大きなタブレット対応 */
@media (min-width: 768px) {
  .status-banner .status-header {
    padding: 1.2rem 1.75rem;
    min-height: 65px;
  }

  .status-banner .status-text {
    font-size: 1.25rem;
  }

  .status-indicator {
    font-size: 0.95rem;
    padding: 0.55rem 1.1rem;
  }

  .status-banner .courses-status {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* 中間サイズタブレット対応 */
@media (min-width: 481px) and (max-width: 767px) {
  .status-banner .status-header {
    padding: 1.1rem 1.4rem;
    min-height: 62px;
    gap: 0.8rem;
  }

  .status-banner .status-info {
    gap: 0.8rem;
  }

  .status-banner .status-text {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .status-indicator {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    min-width: 60px;
    flex-shrink: 0;
  }

  .status-banner .toggle-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
    flex-shrink: 0;
  }

  .status-banner .status-dot {
    width: 13px;
    height: 13px;
  }
}

/* コース項目 */
.status-banner .course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  gap: 1rem;
}

.status-banner .course-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--gray-border);
}

.status-banner .course-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.status-banner .course-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.3;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  line-break: auto;
}

.status-banner .time-display {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ステータスバッジ */
.status-banner .status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  text-align: center;
  min-width: 80px;
  align-self: flex-end;
}

.status-banner .status-badge.scheduled { background: var(--status-scheduled); color: white; }
.status-banner .status-badge.cancelled { background: var(--status-cancelled); color: white; }
.status-banner .status-badge.indoor { background: var(--status-indoor); color: white; }
.status-banner .status-badge.postponed { background: var(--status-postponed); color: white; }

/* ステータスメッセージ */
.status-banner .status-message {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem 2rem;
}

.status-banner .status-message .message-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  line-break: auto;
}

.status-banner .status-message .message-content i {
  color: #3b82f6;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ローディング・エラー状態 */
.status-banner .loading-status,
.status-banner .error-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--gray-600);
}

.status-banner .loading-status i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.status-banner .error-status i {
  font-size: 2rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* レスポンシブ対応 - タブレット */
@media (max-width: 767px) {
  .status-banner .status-header {
    padding: 1rem 1.25rem;
    gap: 0.8rem;
  }

  .status-banner .status-info {
    gap: 0.8rem;
  }

  .status-banner .status-text {
    font-size: 1rem;
    white-space: nowrap;
  }

  .status-indicator {
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
    min-width: 60px;
    flex-shrink: 0;
  }

  .status-banner .toggle-icon {
    flex-shrink: 0;
  }

  .status-banner .status-dot {
    width: 13px;
    height: 13px;
  }

  .status-banner .courses-status {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .status-banner .course-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  .status-banner .course-info {
    width: 100%;
  }

  .status-banner .status-badge {
    align-self: flex-end;
  }

  .status-banner .courses-detail {
    padding: 1.5rem;
  }

  .status-banner .status-message {
    padding: 1rem 1.5rem;
  }
}

/* モバイル対応 - スマートフォン */
@media (max-width: 480px) {
  .status-banner .status-header {
    padding: 1rem 1.2rem;
    gap: 0.6rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .status-banner .status-info {
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .status-banner .status-text {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .status-indicator {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    min-width: 55px;
    text-align: center;
    flex-shrink: 0;
  }

  .status-banner .toggle-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  .status-banner .courses-detail {
    padding: 1.25rem;
  }

  .status-banner .status-message {
    padding: 1rem 1.25rem;
  }

  .status-banner .course-item {
    padding: 1rem;
  }

  .status-banner .status-dot {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
}

/* 極小画面対応 */
@media (max-width: 375px) {
  .status-banner .status-header {
    padding: 0.9rem 1rem;
    min-height: 50px;
    gap: 0.5rem;
  }

  .status-banner .status-info {
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .status-banner .status-text {
    font-size: 0.85rem;
    white-space: nowrap;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .status-indicator {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    min-width: 45px;
    flex-shrink: 0;
  }

  .status-banner .toggle-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-left: 0.4rem;
    flex-shrink: 0;
  }

  .status-banner .status-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
  }
}

/* 横向きモバイル画面対応 */
@media (max-width: 667px) and (orientation: landscape) {
  .status-banner .status-header {
    padding: 0.7rem 1.1rem;
    min-height: 45px;
    gap: 0.5rem;
  }

  .status-banner .status-info {
    gap: 0.5rem;
  }

  .status-banner .status-text {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .status-indicator {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    min-width: 50px;
    flex-shrink: 0;
  }

  .status-banner .toggle-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .status-banner .status-dot {
    width: 10px;
    height: 10px;
  }
}

@media print {
  .status-banner {
    display: none !important;
  }
} 