/* ===== Musicstan Comment Modal - Fresh & Compact ===== */

.musicstan-modal-open{
  overflow:hidden;
}

/* modal container */
.musicstan-comment-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  font-family:inherit;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:20px;

  visibility:hidden;
  opacity:0;
  pointer-events:none;

  transition:opacity .2s ease,visibility .2s ease;
}

.musicstan-comment-modal.is-open{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}

/* backdrop */
.musicstan-comment-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(3px);
}

/* dialog */
.musicstan-comment-dialog{
  position:relative;
  width:min(470px,100%);
  background:#ffffff;
  color:#111;
  border-radius:18px;
  box-shadow:0 25px 70px rgba(0,0,0,.25);
  padding:18px 16px 14px;
  direction:rtl;

  max-height:calc(100dvh - 40px);
  overflow:auto;

  transform:translateY(12px);
  transition:transform .2s ease;
}

.musicstan-comment-modal.is-open .musicstan-comment-dialog{
  transform:translateY(0);
}

/* close */
.musicstan-comment-close{
  position:absolute;
  top:12px;
  left:12px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:0;
  background:#ffecec;
  color:#ff4d4f;
  font-size:20px;
  line-height:34px;
  cursor:pointer;
}

/* title */
.musicstan-comment-title{
  margin:28px 0 6px; /* فاصله بیشتر از بالا */
  font-size:18px;
  font-weight:800;
  text-align:center;
  line-height:1.8;
  color:#6a4cff;
}

.musicstan-comment-subtitle{
  margin:0 0 12px;
  font-size:13px;
  color:#666;
  text-align:center;
}

/* poster */
.musicstan-media-row{
  display:flex;
  justify-content:center;
  margin:8px 0 16px;
}

.musicstan-modal-poster{
  width:72px;
  height:72px;
  border-radius:14px;
  object-fit:cover;
  box-shadow:0 8px 18px rgba(124,92,255,.25);
}

/* fields */
.musicstan-comment-form .musicstan-field{
  margin-bottom:8px;
}

.musicstan-fields-row{
  display:flex;
  gap:8px;
  margin-bottom:8px;
}

.musicstan-fields-row .musicstan-field{
  flex:1;
}

@media (max-width:640px){
  .musicstan-fields-row{
    flex-direction:column;
  }
}

/* labels */
.musicstan-comment-form label{
  display:block;
  font-size:12.5px;
  margin-bottom:5px;
  color:#444;
}

.musicstan-req{
  color:#ff4d4f;
}

/* inputs */
.musicstan-comment-form input,
.musicstan-comment-form textarea{
  width:100%;
  border:1px solid #e6e6ff;
  border-radius:12px;
  padding:8px 10px;
  font-size:14px;
  background:#fafaff;
  transition:all .2s ease;
}

.musicstan-comment-form textarea{
  resize:none;
  min-height:30px; /* کوتاه‌تر */
  line-height:1.2;
}

.musicstan-comment-form input:focus,
.musicstan-comment-form textarea:focus{
  border-color:#7c5cff;
  background:#fff;
  box-shadow:0 0 0 3px rgba(124,92,255,.15);
}

/* buttons */
.musicstan-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.musicstan-submit{
  flex:1;
  border:0;
  border-radius:12px;
  padding:10px;
  background:linear-gradient(135deg,#7c5cff,#ff4d9d);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease;
}

.musicstan-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(255,77,157,.35);
}

.musicstan-submit:disabled{
  opacity:.7;
  cursor:not-allowed;
}

.musicstan-later{
  border:1px solid #e6e6e6;
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  color:#555;
  cursor:pointer;
}

/* message */
.musicstan-comment-msg{
  margin-top:8px;
  font-size:12.5px;
  line-height:1.6;
  display:none;
  padding:8px 10px;
  border-radius:10px;
}

.musicstan-comment-msg.is-ok{
  display:block;
  background:#eafff3;
  border:1px solid #b8f5d3;
  color:#0a6b22;
}

.musicstan-comment-msg.is-err{
  display:block;
  background:#fff0f0;
  border:1px solid #ffd0d0;
  color:#a40000;
}

/* small mobile */
@media (max-width:420px){

  .musicstan-comment-modal{
    padding:12px;
  }

  .musicstan-comment-dialog{
    padding:16px 12px 12px;
  }

  .musicstan-comment-title{
    font-size:16px;
  }

  .musicstan-modal-poster{
    width:60px;
    height:60px;
  }

  .musicstan-comment-form textarea{
    min-height:26px;
  }

}

.musicstan-song-title{
  display:block;
  margin-top:6px;
  font-weight:700;
  color:#000;
  font-size:15px;
}

.musicstan-comment-form textarea{
  font-weight: 500;
  caret-color: #2b7cff;
}


.mf-toast {
  /* --- استایل‌های عمومی (برای همه اندازه‌ها) --- */
  position: fixed;
  z-index: 2147483647;
  min-width: 260px; /* حداقل عرض */
  max-width: 420px; /* حداکثر عرض */
  width: 90%; /* عرض پیش‌فرض برای موبایل */

  padding: 16px 20px; /* کمی padding بیشتر */
  border-radius: 14px;

  color: #fff;
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 12px 35px rgba(0,0,0,.25);

  font-size: 14px;
  line-height: 1.9;

  opacity: 0;
  transform: translate(-50%, -50%); /* این همیشه‌ باید باشه برای مرکزیت */
  pointer-events: none;

  transition: all .25s ease;
  display: none;
  text-align: center; /* متن وسط‌چین */

  /* --- موقعیت‌دهی مرکزی (توسط CSS تعیین میشه) --- */
  top: 50%;
  left: 50%;
  /* margin-top و margin-left اینجا لازم نیست چون transform کار رو انجام میده */
}

.mf-toast.is-show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%); /* اطمینان از اعمال transform */
}

.mf-toast.is-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.mf-toast.is-error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* --- Media Queries برای تنظیمات دقیق‌تر --- */

/* استایل‌ها برای دسکتاپ (عرض‌های بزرگتر) */
@media (min-width: 768px) {
  .mf-toast {
    /* در حالت دسکتاپ، max-width رو اعمال می‌کنیم */
    max-width: 420px;
    width: auto; /* عرض خودکار بر اساس محتوا، تا max-width */
  }
}

/* استایل‌ها برای موبایل (عرض‌های کوچکتر) */
@media (max-width: 767px) {
  .mf-toast {
    /* در حالت موبایل، عرض رو محدود می‌کنیم که وسط صفحه قرار بگیره */
    width: 90%; /* عرض 90% صفحه */
    max-width: 420px; /* ولی بیشتر از 420 پیکسل نشه */
    /* top: 50% و left: 50% و transform: translate(-50%, -50%) در اینجا هم اعمال میشن */
  }
}

/* =========================
   Elegant Responsive Footer
========================= */

.site-footer {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(135, 49, 103, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(212, 166, 108, 0.07), transparent 28%),
    linear-gradient(180deg, #101826 0%, #0b1220 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 38px 0 28px;
  overflow: hidden;
  color: #c8c8cf;
}


.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

.footer-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top-line {
  width: 100%;
  height: 1px;
  margin-bottom: 28px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 166, 108, 0.18) 20%,
    rgba(135, 49, 103, 0.5) 50%,
    rgba(212, 166, 108, 0.18) 80%,
    transparent 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px minmax(280px, 1fr) 320px;
  align-items: center;
  gap: 28px;
}

/* Blocks */
.footer-block {
  min-width: 0;
}

.footer-block-action {
  display: flex;
  justify-content: flex-start;
}

.footer-block-center {
  text-align: center;
}

.footer-block-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* Scroll Button */
.scroll-top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  color: #f4f4f6;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: 0.35s ease;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.scroll-top-button:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 166, 108, 0.35);
  background: linear-gradient(135deg, rgba(135, 49, 103, 0.35), rgba(255, 255, 255, 0.06));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(212, 166, 108, 0.06) inset;
}

.scroll-top-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #a5487f 0%, #7b2e5d 100%);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(135, 49, 103, 0.35);
}

.scroll-top-text {
  white-space: nowrap;
}

/* Center Text */
.footer-copy-text {
  margin: 0;
  color: #b7b7c2;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.1px;
}

.footer-brand-link {
  display: inline-block;
  margin: 0 4px;
  color: #f1d0a1;
  text-decoration: none;
  font-weight: 800;
  transition: 0.3s ease;
  position: relative;
}

.footer-brand-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 166, 108, 0), rgba(212, 166, 108, 0.9), rgba(212, 166, 108, 0));
  transform: scaleX(0.65);
  opacity: 0.75;
  transition: 0.3s ease;
}

.footer-brand-link:hover {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(212, 166, 108, 0.2);
}

.footer-brand-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Contact Button */
.footer-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #8b356a 0%, #5e1f46 100%);
  box-shadow:
    0 12px 24px rgba(94, 31, 70, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: 0.35s ease;
}

.footer-contact-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 30px rgba(94, 31, 70, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  filter: brightness(1.05);
}

/* Stats */
.footer-stats {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-stat-box {
  min-width: 130px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  text-align: center;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: 0.3s ease;
}

.footer-stat-box:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 166, 108, 0.2);
}

.footer-stat-title {
  display: block;
  margin-bottom: 6px;
  color: #8a8a95;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.footer-stat-number {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

/* =========================
   Responsive
========================= */

/* Large desktop */
@media screen and (min-width: 1600px) {
  .footer-wrapper {
    max-width: 1480px;
  }

  .footer-grid {
    grid-template-columns: 240px minmax(320px, 1fr) 360px;
  }
}

/* Standard desktop / laptop */
@media screen and (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: 200px minmax(260px, 1fr) 280px;
    gap: 22px;
  }

  .footer-copy-text {
    font-size: 13px;
  }
}

/* Small desktop / tablet landscape */
@media screen and (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-block-center {
    grid-column: 1 / -1;
    order: 3;
    padding-top: 4px;
  }

  .footer-block-action {
    justify-content: flex-start;
  }

  .footer-block-info {
    align-items: flex-end;
  }
}

/* Tablet / large mobile */
@media screen and (max-width: 768px) {
  .site-footer {
    padding: 34px 0 24px;
  }

  .footer-top-line {
    margin-bottom: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .footer-block-action,
  .footer-block-center,
  .footer-block-info {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-block-center {
    order: 2;
  }

  .footer-block-info {
    order: 1;
  }

  .footer-block-action {
    order: 3;
  }

  .footer-stats {
    justify-content: center;
  }
}

/* Mobile */
@media screen and (max-width: 480px) {
  .footer-wrapper {
    padding: 0 16px;
  }

  .site-footer {
    padding: 28px 0 22px;
  }

  .scroll-top-button,
  .footer-contact-button {
    width: 100%;
    max-width: 280px;
  }

  .footer-copy-text {
    font-size: 13px;
    line-height: 1.9;
  }

  .footer-stats {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .footer-stat-box {
    width: 100%;
    min-width: 0;
    text-align: right;
    padding: 12px 14px;
  }

  .footer-stat-title,
  .footer-stat-number {
    text-align: center;
  }
}

/* Extra small mobile */
@media screen and (max-width: 360px) {
  .scroll-top-button {
    min-height: 46px;
    border-radius: 14px;
    padding: 0 14px;
  }

  .footer-contact-button {
    min-height: 40px;
    padding: 0 14px;
  }

  .footer-stat-box {
    padding: 11px 12px;
  }
}


