/* s4m-register.css */

.s4m-form-group {
  margin-bottom: 16px !important;
  color: #121212 !important;
}

.s4m-form-group label {
  display: block !important;
  margin-bottom: 6px !important;

  font-family: var(--e-global-typography-primary-font-family) !important;
  font-size: var(--e-global-typography-primary-font-size) !important;
  font-weight: var(--e-global-typography-primary-font-weight) !important;
  color: var(--e-global-color-text, #333) !important;
}

.s4m-input {
  width: 100% !important;
  padding: 10px 12px !important;

  font-family: var(--e-global-typography-text-font-family) !important;
  font-size: var(--e-global-typography-text-font-size) !important;
  font-weight: var(--e-global-typography-text-font-weight) !important;

  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  background-color: var(--e-global-color-background, #fff) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.s4m-input:focus {
  border-color: var(--e-global-color-primary, #1E40AF) !important;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2) !important;
  outline: none !important;
}

.s4m-btn1 {
  display: inline-block !important;
  padding: 0.625rem 1.25rem !important;
  border: none !important;
  border-radius: 0.5rem !important;

  font-family: var(--e-global-typography-text-font-family) !important;
  font-size: var(--e-global-typography-text-font-size) !important;
  font-weight: var(--e-global-typography-text-font-weight) !important;

  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  background-color: var(--e-global-color-primary, #1E40AF) !important;
  color: var(--e-global-color-text, #fff) !important;
}

.s4m-btn1:hover {
  background-color: var(--e-global-color-secondary, #111) !important;
  color: var(--e-global-color-text, #fff) !important;
  transform: translateY(2px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

/* BTN 2 */
.s4m-btn2 {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    background: linear-gradient(
        135deg, 
        rgba(29, 185, 84, 0.7), 
        rgba(30, 215, 96, 0.7)
    );
    background: linear-gradient(
        135deg, 
        color-mix(in srgb, var(--e-global-color-primary, #1DB954) 70%, transparent),
        color-mix(in srgb, var(--e-global-color-accent, #1ed760) 70%, transparent)
    );
    border: none;
    border-radius: 14px;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    user-select: none;
}

.s4m-btn2:hover {
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.s4m-btn2:active {
    transform: scale(0.97);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.s4m-btn2:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.4);
}

/* Edith Profile • فرم وویرایش پروفایل */
.s4m-form {
    width: 100%;
    max-width: 720px;
    margin: 3rem auto;
    padding: 1.5rem;
    background-color: #191414;
    border-radius: 1rem;
    border: 1px solid #1DB954;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #fff;
    transition: all 0.3s ease;
}

/* Input fields */
.s4m-form input,
.s4m-form textarea,
.s4m-form select {
    padding: 0.75rem 1rem;
    margin-bottom: 1.2rem;
    border: none;
    border-radius: 0.6rem;
    background-color: #282828;
    color: #fff;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.s4m-form input:focus,
.s4m-form textarea:focus,
.s4m-form select:focus {
    background-color: #1DB954;
    color: #191414;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.4);
}

/* Labels */
.s4m-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1DB954;
}

/* Button */
.s4m-form button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1DB954;
    color: #191414;
    border: none;
    border-radius: 0.6rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.s4m-form button:hover {
    background-color: #17a74a;
    transform: scale(1.05);
}

/* ==========================================================
   v5.0 — نوار اجتماعی پروفایل (پیشه / فالو / پیام / ایمیل)
   ========================================================== */
.s4m-social-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 16px auto;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.s4m-profession-badge {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
}
.s4m-follow-counts {
    font-size: 13px;
    color: #ccc;
}
.s4m-follow-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    transition: background .2s;
}
.s4m-follow-btn.is-following {
    background: #444;
}
.s4m-follow-btn:hover {
    background: #005d87;
}
.s4m-message-btn {
    background: #6a3fd1;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
}
/* دکمه ایمیل عمداً رنگ/سبک متفاوتی دارد تا از لینک‌های شبکه اجتماعی متمایز باشد */
.s4m-email-btn {
    background: #1e8e3e;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
}
.s4m-unread-badge {
    background: #e0245e;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 7px;
    margin-inline-start: 4px;
}

/* ==========================================================
   v5.0 — دایرکتوری هنرمندان
   ========================================================== */
.s4m-directory-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
.s4m-directory-controls {
    margin-bottom: 20px;
}
#s4m-directory-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 14px;
}
.s4m-directory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.s4m-tab {
    background: #eee;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
.s4m-tab.is-active {
    background: #0073aa;
    color: #fff;
}
.s4m-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.s4m-directory-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 14px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,0.03);
    transition: background .2s;
}
.s4m-directory-card a:hover {
    background: rgba(0,0,0,0.08);
}
.s4m-directory-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}
.s4m-directory-card strong {
    font-size: 14px;
    margin-bottom: 4px;
}
.s4m-load-more-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}
.s4m-directory-empty {
    text-align: center;
    color: #888;
    margin-top: 20px;
}

/* ==========================================================
   v5.0 — پیام خصوصی
   ========================================================== */
.s4m-conversations {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
.s4m-conversation-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.s4m-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 6px;
    background: rgba(0,0,0,0.03);
}
.s4m-conversation-item:hover {
    background: rgba(0,0,0,0.08);
}
.s4m-conversation-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.s4m-conversation-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.s4m-conversation-preview {
    font-size: 12px;
    color: #888;
}
.s4m-thread {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
.s4m-thread-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 16px;
}
.s4m-thread-header img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.s4m-thread-messages {
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 12px;
}
.s4m-msg {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}
.s4m-msg-mine {
    align-self: flex-end;
    background: #0073aa;
    color: #fff;
}
.s4m-msg-theirs {
    align-self: flex-start;
    background: #eee;
    color: #222;
}
.s4m-thread-form {
    display: flex;
    gap: 8px;
}
.s4m-thread-form textarea {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: none;
}
.s4m-thread-form button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* ==========================================================
   v5.1 — بلاک / گزارش / اعلان‌ها
   ========================================================== */
.s4m-mod-controls {
    display: inline-flex;
    gap: 6px;
}
.s4m-block-btn, .s4m-report-btn {
    background: transparent;
    border: 1px solid #999;
    color: #999;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
}
.s4m-block-btn.is-blocked {
    background: #e0245e;
    border-color: #e0245e;
    color: #fff;
}
.s4m-block-btn:hover, .s4m-report-btn:hover {
    border-color: #e0245e;
    color: #e0245e;
}

.s4m-notifications {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
.s4m-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.s4m-notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: rgba(0,0,0,0.03);
}
.s4m-notification-item.is-unread {
    background: rgba(0,115,170,0.1);
    border-inline-start: 3px solid #0073aa;
}
.s4m-notification-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.s4m-notification-text {
    font-size: 14px;
    line-height: 1.6;
}
.s4m-notification-time {
    display: block;
    font-size: 11px;
    color: #999;
}

/* ==========================================================
   v5.2 — حذف پیام + حریم خصوصی پیام
   ========================================================== */
.s4m-notice {
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #666;
    margin: 10px 0;
}
.s4m-msg {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}
.s4m-msg-text {
    white-space: pre-wrap;
    word-break: break-word;
}
.s4m-msg.is-deleted .s4m-msg-text {
    font-style: italic;
    opacity: 0.7;
}
.s4m-msg-delete {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0 2px;
}
.s4m-msg-delete:hover {
    opacity: 1;
}
