/* styleV3.css - V3専用スタイル */

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #6c757d;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.nav-link:hover {
  background: #f8f9fa;
  color: #495057;
}

.nav-link i {
  font-size: 16px;
}

@media (max-width: 768px) {
  .header-nav .nav-link span {
    display: none;
  }
  
  .nav-link {
    padding: 8px;
  }
}

/* エラートースト */
.error-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #dc3545;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  z-index: 1000;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-content i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.error-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.error-close:hover {
  opacity: 0.8;
}

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

/* ログイン状態でもauth-toggleアイコンを表示（削除） */
/* .v3-app.logged-in #auth-toggle {
  display: none;
} */

/* 未ログイン状態でuser-info-containerを隠す */
.v3-app.not-logged-in #user-info-container {
  display: none !important;
}

/* ユーザー情報パネル（ログイン済み） */
.user-info-panel {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-info-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.user-info-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  color: #6c757d;
  font-size: 1.5rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-weight: 600;
  color: #343a40;
  font-size: 0.95rem;
}

.user-status {
  font-size: 0.8rem;
  color: #28a745;
  font-weight: 500;
}

.logout-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.logout-btn:hover {
  background-color: #fff5f5;
}

/* 入力エリアの状況表示（文字数・レート制限） */
.input-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 0.85rem;
  color: #666;
}

.input-status-left {
  display: flex;
  align-items: center;
}

.input-status-right {
  display: flex;
  align-items: center;
}

.char-count-display {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 500;
}

.char-unit {
  font-size: 0.8rem;
  color: #888;
}

.rate-limit-ok {
  color: #28a745;
  font-weight: 500;
}

.rate-limit-exceeded {
  color: #dc3545;
  font-weight: 500;
}

/* SNSログインボタン */
.sns-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sns-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.sns-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Google */
.google-btn {
  background-color: #4285f4;
  color: white;
}

.google-btn:hover {
  background-color: #3367d6;
}

/* X (Twitter) - 黒ベース */
.twitter-btn {
  background-color: #000000;
  color: white;
}

.twitter-btn:hover {
  background-color: #333333;
}

/* Apple - シルバー */
.apple-btn {
  background-color: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
}

.apple-btn:hover {
  background-color: #e8e8ed;
  border-color: #b0b0b0;
}

/* V3専用：利用規約同意文言 */
.terms-consent {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

.terms-consent a {
  color: #2196F3;
  text-decoration: none;
}

.terms-consent a:hover {
  text-decoration: underline;
}

/* V3専用：設定メニューからLLM選択を非表示 */
.v3-app .ai-engine-option,
.v3-app .setting-option:has(#link-check-switch),
.v3-app .setting-option:has(#legal-check-switch) {
  display: none !important;
}

/* V3専用：未ログイン時はチェッカー機能を非表示（削除 - テストで必要）*/
/* .v3-app.not-logged-in #checker-container,
.v3-app.not-logged-in #action-bar {
  display: none !important;
} */

/* V3専用：画像添付機能を非表示 */
.v3-app #image-attach-section {
  display: none !important;
}

/* メール認証ユーザー向け通知 */
.email-user-notification {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  margin: 20px 0;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.notification-icon {
  flex-shrink: 0;
  color: #856404;
  font-size: 1.5rem;
  margin-top: 2px;
}

.notification-text {
  flex: 1;
}

.notification-text h3 {
  margin: 0 0 8px 0;
  color: #856404;
  font-size: 1.1rem;
  font-weight: 600;
}

.notification-text p {
  margin: 0;
  color: #856404;
  line-height: 1.5;
  font-size: 0.95rem;
}

.notification-actions {
  flex-shrink: 0;
  margin-top: 8px;
}

.sns-login-prompt-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sns-login-prompt-btn:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.sns-login-prompt-btn:active {
  transform: translateY(0);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .sns-login-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .notification-content {
    flex-direction: column;
    gap: 12px;
  }
  
  .notification-actions {
    margin-top: 4px;
  }
  
  .sns-login-prompt-btn {
    width: 100%;
    justify-content: center;
  }
}