/* src/static_sanshirou/css/ticket.css */
/* ============================================
   チケットセクション（幻想的な薄紫トーン）
   RoleVerse 共通スタイル（common.css）の CSS 変数を使用
   ============================================ */

   .ticket-section {
    max-width: 800px;
    margin: var(--space-md) auto 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-lg);
    box-shadow: 0 2px 12px rgba(36, 26, 46, 0.06);
    border: 1px solid var(--color-border);
  }
  
  /* ============================
     ヘッダー
     ============================ */
  .ticket-section .ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  
  .ticket-section .ticket-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  
  /* ============================
     ステータスバッジ（薄紫トーン）
     ============================ */
  .ticket-section .ticket-status {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.4;
  }
  
  /* 利用中：菫色 */
  .ticket-status.active {
    background: #e0d4f0;
    color: #3d2a5c;
  }
  
  /* 未購入：暗い紅 */
  .ticket-status.inactive {
    background: #edd6e0;
    color: #6b2a45;
  }
  
  /* 期限間近：琥珀 */
  .ticket-status.expiring {
    background: #f0e4d4;
    color: #6b4a20;
  }
  
  /* 期限切れ：暗い紅 */
  .ticket-status.expired {
    background: #e8d0d8;
    color: #6b2a45;
  }
  
  /* 開発モード：青藤 */
  .ticket-status.development {
    background: #d4ddf0;
    color: #2a3d6b;
  }
  
  /* ============================
     ボタン（薄紫トーン）
     ============================ */
  .ticket-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
  }
  
  .ticket-buttons .btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  /* 購入ボタン：菫色 */
  .btn-ticket-buy {
    background: var(--color-primary);
    color: #fff;
  }
  .btn-ticket-buy:hover {
    background: var(--color-primary-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 74, 143, 0.25);
  }
  
  /* 有効化ボタン：幻想の光（薄菫） */
  .btn-ticket-activate {
    background: var(--color-accent);
    color: #fff;
  }
  .btn-ticket-activate:hover {
    background: #b39ed0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(164, 139, 196, 0.3);
  }
  .btn-ticket-activate:disabled {
    background: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
  }
  
  /* ============================
     メッセージ
     ============================ */
  .ticket-info {
    margin-top: var(--space-md);
    padding: 10px 14px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.6;
  }
  
  /* ============================
     レスポンシブ
     ============================ */
  @media (max-width: 768px) {
    .ticket-section {
      padding: var(--space-md) var(--space-md);
    }
    .ticket-buttons {
      flex-direction: column;
    }
    .ticket-buttons .btn {
      width: 100%;
      justify-content: center;
    }
    .ticket-section .ticket-header {
      flex-direction: column;
      align-items: stretch;
    }
  }
