/**
 * Steamlytic - iframe埋め込みスタイル
 */

/* Steamlytic固有のヘッダー追加ボタン */
.steamlytic-header .tool-header-right {
  gap: 8px;
}

.steamlytic-fullscreen-btn,
.steamlytic-newwindow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.steamlytic-fullscreen-btn:hover,
.steamlytic-newwindow-btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* コンテナ */
.steamlytic-container {
  width: 100%;
  height: calc(100vh - 65px);
  background: #020617;
  position: relative;
}

.steamlytic-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

/* iframe */
.steamlytic-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* フルスクリーン時の閉じるボタン */
.steamlytic-container.fullscreen::before {
  content: '× ESCで閉じる';
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 10000;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.steamlytic-container.fullscreen:hover::before {
  opacity: 1;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .steamlytic-fullscreen-btn,
  .steamlytic-newwindow-btn {
    width: 32px;
    height: 32px;
  }
}
