/* extensions-desktop.css - extensions.html デスクトップ版スタイル */

/* 拡張機能ページ特有のスタイル */
.tool-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  margin-bottom: 3rem;
}

main.tool-container {
  padding: 2rem 1.5rem;
}

/* 拡張機能紹介セクション */
.extensions-intro {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(42, 45, 45, 0.6), rgba(30, 33, 33, 0.7));
  border-radius: 16px;
  border: 1px solid rgba(129, 212, 250, 0.2);
  position: relative;
  overflow: hidden;
}

.extensions-intro::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(129, 212, 250, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.extensions-intro h3 {
  font-size: 2rem;
  color: var(--clr-accent);
  margin: 0 0 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.extensions-intro p {
  font-size: 1.1rem;
  color: rgba(235, 246, 255, 0.9);
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 拡張機能グリッド */
.extensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* 拡張機能カード */
.extension-card {
  background: rgba(25, 29, 35, 0.9);
  border: 1px solid rgba(129, 212, 250, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  height: auto;
  position: relative;
  overflow: hidden;
}

.extension-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.extension-card:hover::before {
  opacity: 1;
}

.extension-card:hover {
  transform: translateY(-8px);
  border-color: rgba(129, 212, 250, 0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* 拡張機能コンテンツ */
.extension-content {
  flex: 1;
  margin-bottom: 1.5rem;
}

.extension-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.extension-description {
  color: rgba(235, 246, 255, 0.9);
  line-height: 1.6;
  margin: 0 0 1rem;
  font-size: 1rem;
}

/* 拡張機能アクション */
.extension-actions {
  margin-top: 1rem;
  justify-content: flex-start;
}

.extension-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: var(--clr-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(129, 212, 250, 0.3);
}

.extension-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 212, 250, 0.5);
  background: linear-gradient(135deg, #5a9bd5, #a0d2f7);
}

.extension-btn.primary {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.extension-btn.primary:hover {
  background: linear-gradient(135deg, #45a049, #5cb85c);
}

/* 注意書きセクション */
.extensions-note {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(42, 45, 45, 0.8));
  border: 2px solid rgba(255, 152, 0, 0.3);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.note-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(255, 152, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ff9800;
}

.note-content h4 {
  font-size: 1.4rem;
  color: #ff9800;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.note-content p {
  color: rgba(235, 246, 255, 0.9);
  margin: 0 0 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

.note-content h5 {
  font-size: 1.2rem;
  color: #ff9800;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.note-content h6 {
  font-size: 1.1rem;
  color: #ff9800;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.note-content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.note-content li {
  color: rgba(235, 246, 255, 0.9);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.note-content li a {
  color: #81d4fa;
  text-decoration: none;
}

.note-content li a:hover {
  text-decoration: underline;
}

.install-panels {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
  gap: 1rem;
  margin-top: 1rem;
}

.install-panel {
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid rgba(129, 212, 250, 0.25);
  border-radius: 12px;
  padding: 1rem;
}

.install-panel h5,
.install-panel h6 {
  margin: 0 0 0.5rem;
  color: #fcd34d;
}

.install-panel ol {
  margin: 0;
  padding-left: 1.2rem;
}

.install-panel li {
  margin-bottom: 0.3rem;
}

/* タブスタイル */
.install-tabs {
  margin-top: 1rem;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(129, 212, 250, 0.2);
}

.tab-btn {
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid rgba(129, 212, 250, 0.25);
  color: rgba(235, 246, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
}

.tab-btn.active {
  background: rgba(129, 212, 250, 0.1);
  border-bottom-color: var(--clr-accent);
  color: var(--clr-accent);
}

.tab-btn:hover {
  background: rgba(129, 212, 250, 0.2);
  color: #ffffff;
}

.tab-content {
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid rgba(129, 212, 250, 0.25);
  border-radius: 0 12px 12px 12px;
  padding: 1rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h5,
.tab-panel h6 {
  margin: 0 0 0.5rem;
  color: #fcd34d;
}

.tab-panel ol {
  margin: 0;
  padding-left: 1.2rem;
}

.tab-panel li {
  margin-bottom: 0.3rem;
}

/* ツールセクション */
.tool-section {
  animation: fadeIn 0.4s ease-out;
  display: block;
}

.tool-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 古い拡張機能リスト（後方互換用） */
.extensions-list {
  display: none;
}

.extension-item {
  display: none;
}

.extension-item[open] .extension-icon {
  color: var(--clr-accent);
  transform: scale(1.1);
}

/* 拡張機能タイトル */
.extension-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--clr-text);
  font-family: var(--font-heading);
  transition: all 0.3s ease;
}

/* トグルアイコン */
.extension-toggle {
  font-size: 1.2rem;
  color: var(--clr-primary);
  transition: all 0.3s ease;
  min-width: 30px;
  text-align: center;
}

.extension-item[open] .extension-toggle {
  color: var(--clr-accent);
  transform: rotate(180deg);
}

/* 詳細コンテンツ */
.extension-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.extension-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
