/* ============================================================
   Sharif Creative Center — Modal Component Styles
   Minimal, fits existing dark cinematic design.
   ============================================================ */

/* ---------- Modal shell ---------- */
.scc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.scc-modal[hidden] { display: none; }

/* Backdrop overlay */
.scc-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Dialog container */
.scc-modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scc-modal-in 200ms ease-out;
}

@keyframes scc-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Header ---------- */
.scc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.scc-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.3;
}

/* ---------- Close button ---------- */
.scc-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  padding: 0;
}
.scc-modal__close:hover,
.scc-modal__close:focus-visible {
  background: rgba(255, 77, 106, 0.12);
  border-color: rgba(255, 77, 106, 0.4);
  color: var(--color-danger);
}

/* ---------- Body ---------- */
.scc-modal__body {
  padding: var(--space-4) var(--space-5);
  overflow-y: auto;
  flex: 1 1 auto;
  color: var(--color-text);
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.scc-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5) var(--space-4);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .scc-modal { padding: var(--space-2); align-items: flex-end; }
  .scc-modal__dialog {
    max-width: none;
    max-height: 85vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .scc-modal__header { padding: var(--space-3) var(--space-4); }
  .scc-modal__body { padding: var(--space-3) var(--space-4); }
  .scc-modal__footer { padding: var(--space-2) var(--space-4) var(--space-3); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scc-modal__dialog { animation: none; }
}
