/* ===== ROOT VARIABLES & RESET ===== */
:root {
  /* Ana renk paleti */
  --primary: #85354F;
  --primary-light: #a54566;
  --primary-dark: #652839;
  --primary-soft: #f4e8ec;

  /* Nötr renkler */
  --bg: #fafafa;
  --bg-secondary: #ffffff;
  --fg: #2d2d2d;
  --muted: #6b7280;
  --border: #e5e7eb;

  /* Durum renkleri */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Login gate renkleri - marka rengi */
  --login-primary: #85354F;
  --login-primary-hover: #652839;
  --login-secondary: #f4e8ec;
  --login-secondary-hover: #e5d1d8;
  --login-gradient: linear-gradient(135deg, #85354F 0%, #a54566 100%);

  /* Gölge ve efektler */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Geçişler */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: none;
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== ALERT WARNING ===== */
.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #92400e;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  animation: slideDown 0.5s ease-out;
}

.alert-icon {
  font-size: 24px;
  animation: pulse 2s infinite;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MAIN CONTAINER ===== */
main {
  flex: 1;
  padding: 24px 16px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

/* ===== CAMERA SECTION ===== */
.camera {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay ve Frame Guide */
.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 10;
}

.overlay canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, 
    transparent 35%, 
    rgba(0,0,0,0.1) 60%, 
    rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.frame-guide {
  width: 60%;
  height: 80%;
  border: 3px dashed rgba(133, 53, 79, 0.4);
  border-radius: 50% / 60%;
  z-index: 3;
  transition: var(--transition);
}

.frame-guide.ok {
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

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

/* ===== CONTROLS ===== */
.controls {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.controls-grid {
  display: grid;
 grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  justify-items: center;
}
.controls-grid > * { min-width: 0; }

/* ===== CONSENT GATE (MODAL) ===== */
.consent-blocked main,
.consent-blocked footer {
  display: none;
}

.intro-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  z-index: 9999;
}

.intro-modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  width: min(920px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.intro-modal-content h2 {
  margin-bottom: 12px;
  color: var(--primary);
}

.intro-desc { color: var(--muted); margin-bottom: 16px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.intro-checklist, .intro-steps { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.intro-checklist h3, .intro-steps h3 { font-size: 16px; margin-bottom: 8px; color: var(--fg); }
.intro-checklist ul { margin-left: 18px; display: grid; gap: 6px; }
.intro-checklist li { list-style: none; position: relative; }
.intro-checklist li::before { content: '•'; color: var(--primary); position: absolute; left: -16px; }

.steps { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; }
.step-icon { font-size: 22px; text-align: center; }
.step-body strong { display: block; }
.step-body span { color: var(--muted); font-size: 13px; }

.intro-privacy { margin-top: 8px; color: var(--muted); }

.consent-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.consent-row input { width: 18px; height: 18px; accent-color: var(--primary); }

.intro-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Auth modal layout */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.auth-card h3 { margin-bottom: 4px; }
.auth-card label { display: grid; gap: 6px; font-size: 14px; }
.auth-card input { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.auth-msg { min-height: 20px; font-size: 13px; color: var(--muted); }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.compare-panel { display: flex; gap: 12px; align-items: end; margin-top: 16px; }
.compare-panel label { display: grid; gap: 6px; font-size: 14px; }
.compare-panel select { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

@media (max-width: 720px) {
  .auth-grid { grid-template-columns: 1fr; }
}

.col-span-full {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}

button {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  width: 100%;
  max-width: 200px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-soft);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--muted);
  border: 2px solid var(--border);
}

.btn-outline:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ===== POSES SECTION ===== */
.poses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pose {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pose:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.pose .ph {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pose img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.pose img.empty {
  border: 2px dashed var(--border);
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pose img.empty::after {
  content: "📷";
  position: absolute;
  font-size: 32px;
  opacity: 0.3;
}

.pose .actions {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.pose .actions .danger {
  background: var(--danger);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.pose .actions .danger:hover {
  background: #dc2626;
}

/* ===== WARNINGS & OVERRIDE ===== */
.warnings {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  color: #92400e;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.warnings ul {
  margin: 8px 0 0 20px;
}

.warnings .ok {
  color: var(--success);
  font-weight: 600;
}

/* ===== ANALYZE SECTION ===== */
.analyze-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

/* Varsayılan: override gizli, JS gerektiğinde gösterir */
.override { display: none; }
.override span { color: var(--muted); font-size: 14px; }

.override input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-analyze {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  width: 100% !important;
  max-width: none !important;
  padding: 20px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.btn-analyze::after {
  content: "→";
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-analyze:hover:not(:disabled)::after {
  opacity: 1;
  right: 30px;
}

.btn-analyze:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-analyze:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-analyze:disabled {
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== PREVIEW SECTION ===== */
.preview {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

#snapshot {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#snapshot.empty {
  display: none;
}

.snapshot-ph {
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 3px dashed var(--border);
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.snapshot-ph::before {
  content: "📸";
  font-size: 48px;
  opacity: 0.5;
}

.snapshot-ph::after {
  content: "Önizleme Yok";
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

/* ===== RESULT SECTION ===== */
.result {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.result h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card.card-full { grid-column: 1 / -1; }

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.overall-score {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.overall-score .label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ===== METRICS ===== */
.metrics {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.metric .label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* Progress bar kaldırıldı */
.bar { display: none; }



.metric .val {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

/* ===== PRODUCT CARDS ===== */
.product-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.product-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: var(--transition);
}

.product-card:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
}

.product-name {
  font-weight: 600;
  color: var(--fg);
  font-size: 15px;
}

.product-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.product-actions a {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

.product-actions a:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

footer small {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
}

/* ===== UTILITY CLASSES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  margin: 12px 0;
  align-items: center;
}

.list {
  margin: 12px 0 0 20px;
  color: var(--fg);
  line-height: 1.8;
}

.disclaimer {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.muted {
  color: var(--muted);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  header h1 {
    font-size: 24px;
  }
  
  main {
    padding: 16px;
    gap: 16px;
  }
  
  .camera, .preview, .result {
    padding: 16px;
  }
  
  .controls { flex-direction: column; align-items: stretch; }
  .controls-grid { grid-template-columns: 1fr; }
  
  .hint {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .poses {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .metric {
    grid-template-columns: 100px 1fr 50px;
  }
}

/* Tablet dikey ve altı: tek sütun kontrol */
@media (max-width: 1024px) {
  .controls-grid { grid-template-columns: 1fr; }
}

/* Kamera seçici stil (masaüstünde gizli) */
.camera-facing { display: none; align-items: center; gap: 6px; }
.camera-facing select { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-secondary); color: var(--fg); }

/* Küçük ekranlarda önizlemeyi gizle, alt boşluk ekle */
@media (max-width: 680px) {
  .preview { display: none; }
  main { padding-bottom: 96px; }
}

/* Göster: tablet dikey ve altı için kamera seçici */
@media (max-width: 1024px) {
  .camera-facing { display: inline-flex; }
}

/* Modal responsive */
@media (max-width: 720px) {
  .intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .poses {
    grid-template-columns: 1fr;
  }
  
  .pose {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }
  
  .pose img {
    width: 150px;
    height: 150px;
  }
  
  button {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .pose, .product-card {
  animation: fadeIn 0.5s ease-out;
}

/* ===== LOADING STATE ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== FOCUS STYLES ===== */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

/* ===== PRODUCT RECOMMENDATIONS SECTION ===== */
.product-recommendations {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.product-recommendations h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-recommendations h3::before {
  content: "🛍️";
  font-size: 24px;
}

/* ===== PRODUCT LIST & CARDS ===== */
.product-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  
}

@media (max-width: 769px) {
  .product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

.product-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
  border-color: var(--primary-light);
}

.product-image {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fdf5f7 0%, #f4e8ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--primary-light);
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 16px;
}

.product-info {
  flex: 1;
  min-width: 200px;
}

.product-name {
  font-weight: 700;
  color: var(--fg);
  font-size: 20px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-brand {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.product-price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  text-decoration: line-through;
  margin-left: 8px;
}

.product-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.product-feature {
  padding: 8px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--primary-light);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.product-actions a,
.product-actions button {
  flex: 1;
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-actions a::before,
.product-actions button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.product-actions a:hover::before,
.product-actions button:hover::before {
  width: 300px;
  height: 300px;
}

.product-actions a:hover,
.product-actions button:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.product-actions .secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.product-actions .secondary:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

/* ===== LOGIN GATE MODAL ===== */
.login-gate-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.login-gate-content {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.4s ease-out;
}

.login-gate-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--login-gradient);
}

.login-gate-header {
  margin-bottom: 32px;
}

.login-gate-icon {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  background: var(--login-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
}

.login-gate-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.login-gate-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  background: var(--login-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-gate-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.login-gate-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
}

.benefit-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.login-gate-actions {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}

.login-btn-primary,
.login-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.login-btn-primary {
  background: var(--login-gradient);
  color: white;
  box-shadow: var(--shadow-lg);
}

.login-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.05);
}

.login-btn-secondary {
  background: var(--login-secondary);
  color: var(--fg);
  border: 2px solid var(--border);
}

.login-btn-secondary:hover {
  background: var(--login-secondary-hover);
  border-color: var(--login-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-icon {
  font-size: 18px;
}

.login-gate-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.login-gate-footer p {
  font-size: 14px;
  color: var(--success);
  font-weight: 500;
  margin-bottom: 8px;
}

.login-gate-footer small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

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

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

/* Responsive tasarım */
@media (max-width: 480px) {
  .login-gate-content {
    padding: 32px 24px;
    margin: 16px;
  }

  .login-gate-content h2 {
    font-size: 24px;
  }

  .login-gate-desc {
    font-size: 15px;
  }

  .login-btn-primary,
  .login-btn-secondary {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  header, footer, .controls, .poses, .preview {
    display: none;
  }

  .result {
    box-shadow: none;
    border: 1px solid var(--border);
  }
}
