/* bot-mobile.css - bot.html モバイル版スタイル (max-width: 768px) */

/* ページタイトルセクション */

/* モード選択セクション */
.mode-selection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding: 0.75rem 0.75rem 0.5rem;
}

.mode-card {
  background: linear-gradient(135deg, rgba(42, 45, 45, 0.8), rgba(30, 33, 33, 0.9));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: auto;
  padding: 0;

  border: 2px solid rgba(129, 212, 250, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.mode-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 212, 250, 0.8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.external-card {
  background: linear-gradient(135deg, rgba(74, 124, 176, 0.2), rgba(42, 45, 45, 0.8));
}

.external-card:hover {
  background: linear-gradient(135deg, rgba(74, 124, 176, 0.4), rgba(42, 45, 45, 0.9));
}

.nuke-card {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), rgba(42, 45, 45, 0.8));
}

.nuke-card:hover {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.4), rgba(42, 45, 45, 0.9));
}

.mode-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.mode-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(129, 212, 250, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--clr-accent);
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.mode-card:hover .mode-icon {
  background: rgba(129, 212, 250, 0.2);
  transform: scale(1.1);
}

.external-card .mode-icon {
  color: #81d4fa;
}

.nuke-card .mode-icon {
  color: #ef5350;
}

.mode-content {
  flex: 1;
  min-width: 0;
}

.mode-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.mode-description {
  margin: 0 0 0.8rem;
  color: rgba(235, 246, 255, 0.95);
  line-height: 1.4;
  font-size: 0.88rem;
  word-break: break-word;
}

.mode-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-start;
}

.feature-tag {
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: rgba(129, 212, 250, 0.6);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.mode-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature-tag {
  background: rgba(129, 212, 250, 0.2);
  color: #81d4fa;
  padding: 0.25rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(129, 212, 250, 0.3);
  transition: all 0.3s ease;
}

.mode-card:hover .feature-tag {
  background: rgba(129, 212, 250, 0.3);
  border-color: rgba(129, 212, 250, 0.6);
}

.mode-arrow {
  flex-shrink: 0;
  margin-left: 0.5rem;
  color: rgba(129, 212, 250, 0.6);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.mode-card:hover .mode-arrow {
  color: var(--clr-accent);
  transform: translateX(3px);
}

/* モバイルではホバーエフェクトを抑制して安定表示 */
@media (hover: none), (pointer: coarse) {
  .mode-card:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border-color: rgba(129, 212, 250, 0.35);
  }

  .mode-card:hover .mode-icon,
  .mode-card:hover .feature-tag,
  .mode-card:hover .mode-arrow {
    transform: none;
    background: none;
    color: inherit;
  }
}

/* スマホ超小型画面の微調整 */
@media (max-width: 520px) {
  .mode-selection {
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.6rem;
  }

  .mode-card {
    border-radius: 14px;
    padding: 0.1rem;
  }

  .mode-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem;
  }

  .mode-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    margin-right: 0;
  }

  .mode-title {
    font-size: 1.18rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
  }

  .mode-description {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .mode-arrow {
    margin-left: 0;
    position: relative;
    top: 0;
    right: 0;
    transform: none;
    font-size: 1.05rem;
  }

  .mode-features {
    gap: 0.3rem;
    margin-top: 0.35rem;
  }

  .feature-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* 古いモードリストスタイル（後方互換用） */
.mode-list {
  display: none;
}

.mode-item {
  display: none;
}

/* コマンド比較セクション */
.commands-comparison {
  display: block;
  width: 100%;
  margin-top: var(--spacing-md);
}

.mode-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.mode-item {
  background: linear-gradient(135deg, rgba(42, 45, 45, 0.45), rgba(30, 33, 33, 0.7));
  border: 1px solid rgba(129, 212, 250, 0.3);
  border-radius: 12px;
  padding: 0.8rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.mode-item:hover,
.mode-item.active {
  background: linear-gradient(135deg, rgba(74, 124, 176, 0.5), rgba(69, 130, 184, 0.7));
  border-color: rgba(129, 212, 250, 0.6);
  color: #ffffff;
}

.page-title-section,
.command-tabs {
  display: none !important;
}

.command-card {
  background: var(--clr-card);
  border: 1px solid rgba(129, 212, 250, 0.4); /* 元の太さに戻す */
  border-radius: var(--radius);
  margin: 0.75rem -0.75rem;
  padding: 1.35rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  width: calc(100% + 1.5rem);
}

.command-card-header {
  border-bottom: 1px solid rgba(129, 212, 250, 0.25);
  padding-bottom: 0.6rem;
  margin-bottom: 0.65rem;
}

.command-card-header h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--clr-accent);
}

.command-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.command-list li {
  padding: 0.75rem 0;
  border-bottom: none;
}

.command-list li:last-child {
  border-bottom: none;
}

.command-item {
  cursor: default;
  transition: none;
  position: relative;
  padding-right: 2rem;
}

.detail-toggle {
  position: absolute;
  right: 0.5rem;
  top: 0.55rem;
  transform: none;
  color: #81d4fa;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.detail-toggle:hover,
.detail-toggle:focus,
.detail-toggle:active {
  color: #81d4fa; /* 和久く保つ */
}

.detail-toggle i {
  transition: transform 0.3s ease;
}

.command-detail {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(42, 45, 45, 0.5);
  border-left: 3px solid var(--clr-accent);
  border-radius: 4px;
}

.command-detail p {
  margin: 0;
  color: rgba(235, 246, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
}

.command-list strong {
  display: block;
  font-size: 1rem;
  color: #e0f7ff;
  margin-bottom: 0.3rem;
}

.command-overview {
  margin-bottom: 0.9rem;
  padding: 0.9rem;
  background: rgba(22, 25, 29, 0.65);
  border: 1px solid rgba(129, 212, 250, 0.15);
  border-radius: 0.7rem;
}

.command-overview p {
  margin: 0 0 0.65rem;
  color: rgba(235, 246, 255, 0.95);
  line-height: 1.5;
}

.command-overview ul {
  margin: 0;
  padding-left: 1rem;
}

.command-overview li {
  margin-bottom: 0.45rem;
  color: rgba(232, 248, 255, 0.9);
}

.command-list-wrap {
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(10, 18, 28, 0.45);
  border: 1px solid rgba(85, 190, 255, 0.25);
  border-radius: 0.75rem;
}

.command-list-wrap h4 {
  margin: 0 0 0.65rem;
  color: #9ee4ff;
  border-bottom: 1px solid rgba(129, 212, 250, 0.22);
  padding-bottom: 0.4rem;
}

.install-guide {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: rgba(23, 33, 45, 0.55);
  border: 1px solid rgba(102, 196, 255, 0.25);
  border-radius: 0.7rem;
}

.install-guide h4 {
  margin: 0 0 0.55rem;
  color: #81d4fa;
}

.install-guide ol {
  margin: 0 0 0.7rem 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}

.install-guide p {
  margin: 0;
  color: rgba(220, 242, 255, 0.92);
}

.install-note {
  margin: 0.75rem 0 0;
  color: rgba(181, 228, 255, 0.95);
  font-size: 0.93rem;
}

.install-link {
  color: #b7f1ff;
  text-decoration: underline;
  font-weight: bold;
}

.install-link:hover {
  color: #ffffff;
}


.command-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

/* タブ切り替えボタン（モバイル時のみ表示） */
.command-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(129, 212, 250, 0.1);
}

.command-tabs .tab {
  padding: 0.65rem 1.4rem;
  background: rgba(42, 45, 45, 0.6);
  border: 2px solid rgba(129, 212, 250, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.command-tabs .tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(129, 212, 250, 0.2), transparent);
  transition: left 0.5s ease;
}

.command-tabs .tab:hover {
  background: rgba(90, 143, 192, 0.25);
  color: var(--clr-text);
  border-color: rgba(129, 212, 250, 0.4);
  transform: translateY(-2px);
}

.command-tabs .tab:hover::before {
  left: 100%;
}

.command-tabs .tab.active {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: var(--clr-bg);
  border-color: var(--clr-accent);
  box-shadow:
    0 6px 20px rgba(90, 143, 192, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.command-section {
  display: none;
  margin-bottom: var(--spacing-lg);
  padding: 1rem;
  border: none;
  background: none;
  border-radius: 20px;
  animation: fadeIn 0.3s ease-out;
}

/* Nuke版専用スタイル（赤系統） */
.bot-nuke .command-card {
  border-color: rgba(211, 47, 47, 0.6);
}

.bot-nuke .command-card-header {
  border-bottom-color: rgba(211, 47, 47, 0.4);
}

.bot-nuke .command-card-header h3 {
  color: #ef5350;
}

.bot-nuke .detail-toggle {
  color: #ef5350;
}

.bot-nuke .detail-toggle:hover,
.bot-nuke .detail-toggle:focus,
.bot-nuke .detail-toggle:active {
  color: #ef5350;
}

.bot-nuke .command-detail {
  border-left-color: #ef5350;
}

.bot-nuke .command-list-wrap {
  border-color: rgba(211, 47, 47, 0.4);
}

.bot-nuke .command-list-wrap h4 {
  color: #ef5350;
  border-bottom-color: rgba(211, 47, 47, 0.3);
}

.bot-nuke .install-guide {
  border-color: rgba(211, 47, 47, 0.4);
}

.bot-nuke .install-guide h4 {
  color: #ef5350;
}

.bot-nuke .install-link {
  color: #ef5350;
}

.bot-nuke .install-link:hover {
  color: #ffffff;
}

@media (max-width: 420px) {
  .mode-selection {
    padding: 0.6rem 0.6rem 0.5rem;
  }

  .mode-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem;
  }

  .mode-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-right: 0;
  }

  .mode-arrow {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
  }

  .mode-title {
    font-size: 1.15rem;
  }

  .mode-description {
    font-size: 0.84rem;
  }
}

.command-section.active {
  display: block;
}

.command-section:hover {
  background: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.section-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.section-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 100%;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* 外部アプリコマンド */
.external-commands .section-header h3 {
  color: var(--clr-accent);
}

/* Nukeコマンド */
.nuke-commands .section-header h3 {
  color: #66bb6a;
}

/* ページモード別表示 */
.bot-external .nuke-commands,
.bot-nuke .external-commands {
  display: none !important;
}

.bot-external .command-tabs,
.bot-nuke .command-tabs {
  display: none !important;
}

.bot-external .commands-comparison,
.bot-nuke .commands-comparison {
  display: block;
}

/* モード選択後は見出し非表示 */
.bot-external .page-title-section,
.bot-nuke .page-title-section,
.bot-external .section-header,
.bot-nuke .section-header {
  display: none;
}


/* 戻るナビ */
.back-nav {
  margin-bottom: 1rem;
  text-align: left;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(30, 45, 60, 0.6);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(129, 212, 250, 0.3);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(30, 45, 60, 0.85);
  border-color: rgba(129, 212, 250, 0.8);
}
