/* ============================================================
   MODAL / POPUP STİLLERİ
   ============================================================ */

/* ── Modal Overlay ── */
.sk-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.sk-modal[hidden] {
  display: none !important;
}

.sk-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: sk-fade-in 0.3s ease;
  cursor: pointer;
}

/* ── Modal Kutusu ── */
.sk-modal__box {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,215,0,0.05);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: sk-scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.sk-modal__box--wide {
  max-width: 900px;
}

.sk-modal__box--auth {
  max-width: 520px;
}

/* Scrollbar - modal içi */
.sk-modal__box::-webkit-scrollbar {
  width: 4px;
}

/* ── Kapatma Butonu ── */
.sk-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
  flex-shrink: 0;
}

.sk-modal__close:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--text-on-yellow);
  transform: rotate(90deg);
}

/* ── Modal Sekmeleri ── */
.sk-modal__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.sk-modal__tab {
  flex: 1;
  padding: 16px var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  position: relative;
}

.sk-modal__tab:hover {
  color: var(--text-primary);
  background-color: var(--yellow-alpha-10);
}

.sk-modal__tab--active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  background-color: transparent;
}

/* ── Modal Panel ── */
.sk-modal__panel {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  display: none;
}

.sk-modal__panel[hidden] {
  display: none !important;
}

.sk-modal__panel--active {
  display: block;
  animation: sk-fade-in 0.2s ease;
}

/* ── Modal Başlık ── */
.sk-modal__header {
  margin-bottom: var(--space-lg);
}

.sk-modal__header h2 {
  font-size: var(--font-size-lg);
  color: var(--text-white);
  margin-bottom: var(--space-xs);
}

.sk-modal__header p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   FORM STİLLERİ (Modal + Genel)
   ============================================================ */

.sk-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sk-form-row {
  display: flex;
  gap: var(--space-md);
}

.sk-form-row--2col {
  grid-template-columns: 1fr 1fr;
  display: grid;
}

.sk-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sk-form-group--inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.sk-form-group label,
.sk-admin-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.sk-form-group label .required {
  color: var(--yellow);
  margin-left: 2px;
}

/* ── Input Stilleri ── */
.sk-input,
.sk-admin-input,
.sk-admin-textarea,
.sk-admin-select {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  padding: 10px 12px;
  width: 100%;
  transition: all var(--transition-fast);
  outline: none;
}

.sk-input:hover,
.sk-admin-input:hover {
  border-color: rgba(255,215,0,0.3);
}

.sk-input:focus,
.sk-admin-input:focus,
.sk-admin-textarea:focus,
.sk-admin-select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-alpha-10);
}

.sk-input::placeholder,
.sk-admin-input::placeholder {
  color: var(--text-muted);
}

.sk-admin-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Checkbox Label ── */
.sk-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.sk-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--yellow);
  cursor: pointer;
}

/* ── Şifremi Unuttum ── */
.sk-form-forgot {
  font-size: var(--font-size-xs);
  color: var(--yellow);
  text-decoration: none;
}

.sk-form-forgot:hover {
  text-decoration: underline;
  color: var(--yellow-hover);
}

/* ── Form Hataları ── */
.sk-form-errors {
  background-color: rgba(198, 40, 40, 0.1);
  border: 1px solid rgba(198, 40, 40, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  color: #EF9A9A;
  font-size: var(--font-size-sm);
}

.sk-form-errors ul {
  margin: 0;
  padding-left: var(--space-md);
  list-style: disc;
}

/* ── Disclaimer ── */
.sk-form-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.sk-form-disclaimer a {
  color: var(--yellow);
}

/* ── Kayıt Modal Başarı Durumu ── */
.sk-register-success {
  text-align: center;
  padding: var(--space-xl);
}

.sk-register-success__icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.sk-register-success h3 {
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.sk-register-success p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ── WooCommerce Login Formu Override ── */
.sk-modal__panel .woocommerce-form-login,
.sk-modal__panel .woocommerce-form-register {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sk-modal__panel .woocommerce-form__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
}

.sk-modal__panel .woocommerce-form__input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  padding: 10px 12px;
  width: 100%;
  outline: none;
}

.sk-modal__panel .woocommerce-form__input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-alpha-10);
}

.sk-modal__panel .woocommerce-Button,
.sk-modal__panel .woocommerce-form-login__submit {
  background-color: var(--yellow) !important;
  color: var(--text-on-yellow) !important;
  border: 2px solid var(--yellow) !important;
  border-radius: var(--radius-btn) !important;
  font-family: var(--font-sans) !important;
  font-weight: var(--font-weight-semibold) !important;
  padding: 12px var(--space-md) !important;
  cursor: pointer !important;
  transition: all var(--transition-base) !important;
  width: 100% !important;
  font-size: var(--font-size-base) !important;
}

.sk-modal__panel .woocommerce-Button:hover {
  background-color: var(--yellow-hover) !important;
  border-color: var(--yellow-hover) !important;
}

/* ============================================================
   RESPONSIVE - MODAL
   ============================================================ */
@media (max-width: 768px) {
  .sk-modal {
    align-items: flex-end;
    padding: 0;
  }
  
  .sk-modal__box {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh;
    max-width: 100%;
  }
  
  .sk-modal__panel {
    padding: var(--space-md);
  }
  
  .sk-form-row--2col {
    grid-template-columns: 1fr;
  }
}
