/* ReviewWidget管理システム - カスタムCSS */

/* 基本スタイル */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* フォーム要素のスタイル改善 */
input[type="text"], 
input[type="url"], 
input[type="email"], 
input[type="tel"], 
input[type="number"],
input[type="color"],
select, 
textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus, 
input[type="url"]:focus, 
input[type="email"]:focus, 
input[type="tel"]:focus, 
input[type="number"]:focus,
select:focus, 
textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* カラーピッカーの特別スタイル */
input[type="color"] {
  padding: 4px;
  width: 100%;
  height: 40px;
  cursor: pointer;
}

/* ボタンホバーエフェクト改善 */
button {
  transition: all 0.2s ease-in-out;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* 統計カードのアニメーション */
.stats-card {
  transition: transform 0.2s ease-in-out;
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* プレビューエリアのスタイル */
#widget-preview {
  background: linear-gradient(45deg, #f8fafc 25%, transparent 25%), 
              linear-gradient(-45deg, #f8fafc 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #f8fafc 75%), 
              linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ローディングアニメーション */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* 通知アニメーション */
.notification {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .max-w-7xl {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .grid-cols-1.md\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .grid-cols-1.md\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .flex-col.sm\\:flex-row {
    flex-direction: column;
  }
  
  .hidden.md\\:flex {
    display: none !important;
  }
}

/* ダークモード対応（将来的な拡張用） */
@media (prefers-color-scheme: dark) {
  /* ダークモードのスタイルは将来的に追加 */
}

/* Widget特有のスタイル */
.review-widget {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

.review-widget .stars {
  color: #fbbf24;
  font-size: 14px;
}

.review-widget .review-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}

.review-widget .review-item:last-child {
  border-bottom: none;
}

/* アクセシビリティ改善 */
button:focus,
input:focus,
select:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* 印刷用スタイル */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}