/* ==========================================================================
   Google reCAPTCHA v2 Görsel ve İnteraktif Doğrulama Bileşeni
   ========================================================================== */

.recaptcha-widget-wrap {
  margin: 12px 0 16px;
  display: block;
}

.recaptcha-box {
  width: 304px;
  max-width: 100%;
  height: 78px;
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  box-sizing: border-box;
  font-family: Roboto, helvetica, arial, sans-serif;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.recaptcha-box.has-error {
  border-color: #d93025 !important;
  box-shadow: 0 0 6px 1px rgba(217, 48, 37, 0.45) !important;
  animation: recaptchaShake 0.35s ease;
}

@keyframes recaptchaShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.recaptcha-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1;
}

.recaptcha-checkbox {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: #ffffff;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.recaptcha-checkbox:hover {
  border-color: #a6a6a6;
}

/* Spinner Animasyonu */
.recaptcha-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid #e0e0e0;
  border-top-color: #1a73e8;
  border-radius: 50%;
  box-sizing: border-box;
  animation: recaptchaSpin 0.65s linear infinite;
}

@keyframes recaptchaSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.recaptcha-checkbox.is-loading {
  border-color: transparent !important;
  background: transparent !important;
}

.recaptcha-checkbox.is-loading .recaptcha-spinner {
  display: block;
}

/* Onaylandı (Verified) Tik İkonu */
.recaptcha-check-icon {
  display: none;
  width: 24px;
  height: 24px;
  transform: scale(0.6);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.recaptcha-checkbox.is-verified {
  border-color: transparent !important;
  background: transparent !important;
}

.recaptcha-checkbox.is-verified .recaptcha-check-icon {
  display: block;
  transform: scale(1);
}

.recaptcha-label {
  font-size: 14px;
  font-weight: 500;
  color: #282828;
  line-height: 1.2;
  cursor: pointer;
}

.recaptcha-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 65px;
  padding-left: 6px;
}

.recaptcha-logo-icon {
  line-height: 1;
}

.recaptcha-brand-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #555555;
  letter-spacing: 0.2px;
  margin-top: 2px;
  line-height: 1;
}

.recaptcha-legal-text {
  font-size: 8px;
  color: #555555;
  margin-top: 2px;
  line-height: 1;
}

.recaptcha-legal-text a {
  color: #555555;
  text-decoration: none;
}

.recaptcha-legal-text a:hover {
  text-decoration: underline;
}

.recaptcha-error-msg {
  color: #d93025;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Karanlık Mod Uyumu */
[data-theme="dark"] .recaptcha-box {
  background-color: #222222;
  border-color: #444444;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .recaptcha-checkbox {
  background: #333333;
  border-color: #666666;
}

[data-theme="dark"] .recaptcha-label {
  color: #f1f5f9;
}

[data-theme="dark"] .recaptcha-brand-title {
  color: #94a3b8;
}

[data-theme="dark"] .recaptcha-legal-text,
[data-theme="dark"] .recaptcha-legal-text a {
  color: #94a3b8;
}

/* Arama ve Yorum Sayfası Özel Düzenleri */
.search-recaptcha-container {
  margin: 14px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Yorum Butonu Hizalama */
.koroglu-comment-form .btn-submit-koroglu {
  margin-top: 4px;
  display: inline-block;
}
