/* ========================================
   プライバシー警告モーダル専用スタイル
   ======================================== */

/* モーダルオーバーレイ */
.privacy-warning-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.privacy-warning-modal.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* モーダルコンテンツ */
.privacy-warning-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヘッダー */
.warning-header {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  padding: 25px;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.warning-header i {
  font-size: 48px;
  margin-bottom: 10px;
  display: block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.warning-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

/* ボディ */
.warning-body {
  padding: 25px;
}

/* リスク項目 */
.risk-item {
  background: #fff3e0;
  border-left: 4px solid #f39c12;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.risk-item.high {
  background: #ffebee;
  border-left-color: #e74c3c;
}

.risk-item.medium {
  background: #fff3e0;
  border-left-color: #f39c12;
}

.risk-item strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.risk-item small {
  display: block;
  color: #666;
  font-size: 13px;
}

/* ヒント */
.warning-tips {
  background: #e3f2fd;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.warning-tips h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #1976d2;
}

.warning-tips ul {
  margin: 0;
  padding-left: 20px;
}

.warning-tips li {
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

/* アクションボタン */
.warning-actions {
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f0f0f0;
}

.warning-actions button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-warning {
  background: #f39c12;
  color: white;
}

.btn-warning:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* 二次的なボタン（戻る、理解して公開） */
.warning-actions .btn-secondary {
  background: #95a5a6;
  color: white;
}

.warning-actions .btn-secondary:hover {
  background: #7f8c8d;
}

.warning-actions .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.warning-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 「今後警告しない」チェックボックス */
.dont-show-again {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 25px;
  border-top: 1px solid #f0f0f0;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: background 0.2s;
}

.dont-show-again:hover {
  background: #f8f9fa;
}

.dont-show-again input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* 初回ガイドモーダル */
.privacy-guide-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.privacy-guide-modal.show {
  display: flex;
}

.privacy-guide-content {
  background: white;
  border-radius: 20px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.guide-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.guide-header i {
  font-size: 60px;
  margin-bottom: 15px;
  display: block;
}

.guide-header h2 {
  margin: 0;
  font-size: 24px;
}

.guide-body {
  padding: 30px;
}

.guide-section {
  margin-bottom: 25px;
}

.guide-section h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-list li {
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.guide-list li i {
  color: #667eea;
  margin-top: 3px;
}

.guide-actions {
  padding: 20px 30px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .privacy-warning-content,
  .privacy-guide-content {
    max-width: 100%;
    border-radius: 15px;
    max-height: 95vh;
  }

  .warning-header,
  .guide-header {
    padding: 20px;
    border-radius: 15px 15px 0 0;
  }

  .warning-header h3 {
    font-size: 18px;
  }

  .warning-header i {
    font-size: 40px;
  }

  .warning-body,
  .guide-body {
    padding: 20px;
  }

  .warning-tips {
    padding: 15px;
  }

  .warning-actions {
    padding: 15px 20px;
  }

  .warning-actions button {
    padding: 12px;
    font-size: 14px;
  }

  .risk-item {
    padding: 12px;
    font-size: 14px;
  }
}

/* 非公開自動設定通知 */
.auto-private-notice {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.auto-private-notice i {
  font-size: 24px;
}

.auto-private-notice strong {
  display: block;
  margin-bottom: 3px;
}