/* ============================
   AppLink Tool Page Styles
   ============================ */

.applink-tool {
  font-family: system-ui, -apple-system, sans-serif;
}

.applink-tool h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.applink-tool h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

/* 検索セクション */
.applink-search-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.applink-search-section label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 検索結果グリッド */
.applink-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.applink-result-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}

.applink-result-card:hover {
  border-color: #90caf9;
  background: #f5f9ff;
}

.applink-result-card.-selected {
  border-color: #1a73e8;
  background: #e8f0fe;
}

/* 生成ボタン */
#generateBtn:hover {
  opacity: 0.9;
}

/* コピーボタン */
#copyBtn {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

#copyBtn:hover {
  background: #e0e0e0;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .applink-search-section {
    flex-direction: column;
    align-items: stretch;
  }

  .applink-search-section input[type="text"] {
    width: 100% !important;
  }

  .applink-results-grid {
    grid-template-columns: 1fr;
  }
}
