/* ==========================================================================
   Voice of Minab - Plugin Styles
   ========================================================================== */

/* استایل کانتینر اصلی و متغیرهای اختصاصی افزونه */
.global-voices-section {
    --bg-color: #080808;
    --surface-color: #121212;
    --text-color: #e8e8e8;
    --text-muted: #888888;
    --accent-color: #c5a059;
    --primary-font: 'Playfair Display', serif;
    --secondary-font: 'Montserrat', sans-serif;
    
    padding: 80px 30px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--secondary-font);
    color: var(--text-color);
}
#vom_message::placeholder,
#vom_country::placeholder {
    font-size: 0.95rem; /* سایز پیش‌فرض برای دسکتاپ */
    color: #888;
    opacity: 1; /* برای نمایش بهتر رنگ در فایرفاکس */
}
@media (max-width: 768px) {
    #vom_message::placeholder,
    #vom_country::placeholder {
        font-size: 0.8rem; /* ← سایز کوچکتر برای موبایل */
        line-height: 1.4; /* فاصله خطوط کمتر برای صرفه‌جویی در فضا */
    }
}
#vom_message::placeholder {
    white-space: pre-line; 
}
/* --- Section Headers --- */
.global-voices-section .section-header {
    text-align: center;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.global-voices-section .section-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.global-voices-section .section-title {
    font-family: var(--primary-font);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-color);
}

.global-voices-section .accent-text { 
    color: var(--accent-color); 
    font-size: 1.5rem; 
    font-family: var(--primary-font); 
}

/* --- Global Voices & Map --- */
.candle-counter { text-align: center; margin-bottom: 50px; }
.candle-icon { filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.5)); }

.voices-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) { 
    .voices-container { grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: stretch;} 
}

.form-container h3 { 
    font-family: var(--primary-font); 
    font-size: 2rem; 
    margin-bottom: 30px; 
    font-weight: 400; 
}

.form-group { margin-bottom: 30px; }

/* فرم مینیمال */
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: var(--text-color);
    font-family: var(--secondary-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid #333;
    font-family: var(--secondary-font);
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}

.submit-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }

/* --- Map Container --- */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #222;
    position: relative;
    z-index: 1;
}

#vom-map {
    width: 100%;
    height: 100%;
    background: #080808;
    position: absolute;
    top: 0;
    left: 0;
}

/* حل مشکل پخش و پلا شدن کاشی‌های نقشه */
.leaflet-container img.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    width: 256px !important;
    height: 256px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.leaflet-container { font-family: var(--secondary-font); background: #080808; }
.leaflet-popup-content-wrapper { background: var(--surface-color); color: var(--text-color); border: 1px solid var(--accent-color); border-radius: 2px; }
.leaflet-popup-tip { background: var(--surface-color); }

/* --- Animations --- */
.global-voices-section .reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.global-voices-section .reveal.active { opacity: 1; transform: translateY(0); }

/* --- Mobile Order --- */
@media (max-width: 991px) {
    .form-container { order: 2; }
    .map-container { order: 1; margin-bottom: 20px; }
}
/* ==========================================================================
   Minimalist Tweet Cards & Angel Animation
   ========================================================================== */

.vom-tweet-card {
    position: relative;
    background: rgba(18, 18, 18, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.vom-tweet-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* رنگ نوار کناری بر اساس وضعیت */
.vom-tweet-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    border-radius: 4px 0 0 4px;
}
.vom-tweet-card.status-approved::before { background-color: #4caf50; }
.vom-tweet-card.status-pending::before { background-color: #ff9800; box-shadow: 0 0 8px rgba(255, 152, 0, 0.3); }

/* ساختار هدر توییت */
.vom-tweet-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;padding: 15px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2; 
    
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.vom-tweet-icon svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.4));
}

.vom-tweet-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vom-meta-name {
    font-family: var(--primary-font);
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.2;
}

.vom-meta-loc {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.5px;
}

.vom-meta-status {
    font-size: 0.7rem;
    font-weight: 600;
}
.status-approved .vom-meta-status { color: #4caf50; }
.status-pending .vom-meta-status { color: #ff9800; }

/* بدنه و تاریخ توییت */
/* اصلاح تراز متن و اینترها برای بدنه پیام */
.vom-tweet-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ddd;
    margin: 15px 0;
    padding:15px;
    white-space: pre-wrap; /* حفظ اینترهای کاربر */
    text-align: left;      /* اجبار به چپ‌چین بودن */
    word-break: break-word; /* جلوگیری از بیرون زدن کلمات طولانی */
}

/* در صورتی که نیاز است متن در موبایل کوچکتر باشد */
@media (max-width: 768px) {
    .vom-tweet-body { font-size: 0.85rem; }
}

.vom-tweet-footer {
    font-size: 0.75rem;
    color: #666;
    margin-top: 15px;
    text-align: right;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
}
/* ==========================================================================
   Minimalist Modal & Skeleton Loader (On-Demand Loading)
   ========================================================================== */
.vom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.vom-modal-overlay.active { opacity: 1; visibility: visible; }

.vom-modal-box {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(197, 160, 89, 0.2);
    width: 90%; max-width: 500px; max-height: 85vh; border-radius: 12px;
    display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.vom-modal-overlay.active .vom-modal-box { transform: translateY(0); }

/* هدر مودال */
.vom-modal-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 20px 25px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vom-modal-user-info { display: flex; align-items: center; gap: 12px; }
.vom-modal-icon svg { width: 28px; height: 28px; color: var(--accent-color); filter: drop-shadow(0 0 5px rgba(197,160,89,0.4)); }
.vom-modal-text-group { display: flex; flex-direction: column; }
.vom-modal-name { font-family: var(--primary-font); font-size: 1.2rem; color: #fff; line-height: 1.2; }
.vom-modal-loc { font-size: 0.8rem; color: #999; }

.vom-modal-close {
    background: none; border: none; color: #888; font-size: 1.8rem;
    cursor: pointer; transition: color 0.3s; line-height: 1; padding: 0; margin-top: -5px;
}
.vom-modal-close:hover { color: #fff; }

/* بدنه مودال (اسکرول دار) */
.vom-modal-body {
    padding: 25px; overflow-y: auto; font-size: 1rem; color: #ddd;
    line-height: 1.8; 
    /*white-space: pre-wrap; */
    font-family: var(--secondary-font);
}

/* ------------------------------------------------
   لودینگ اسکلتی خطی (Skeleton Loader)
   ------------------------------------------------ */
.vom-skeleton-wrapper { display: flex; flex-direction: column; gap: 12px; padding: 10px 0; }
.vom-skeleton-line {
    height: 14px; background: rgba(255,255,255,0.05); border-radius: 4px;
    position: relative; overflow: hidden;
}
.vom-skeleton-line::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: skeleton-loading 1.2s infinite;
}
.vom-skeleton-line:nth-child(1) { width: 100%; }
.vom-skeleton-line:nth-child(2) { width: 90%; }
.vom-skeleton-line:nth-child(3) { width: 80%; }
.vom-skeleton-line:nth-child(4) { width: 40%; }

@keyframes skeleton-loading { 100% { left: 100%; } }
/* ==========================================================================
   Feed Page Layout (Full Width Map & Timeline)
   ========================================================================== */
.vom-feed-page-wrapper {
    width: 100%;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--secondary-font);
}

/* نقشه تمام عرض بالا */
.vom-feed-map-container {
    width: 100%;
    height: 65vh; /* 65 درصد از ارتفاع مانیتور را می‌گیرد */
    min-height: 450px;
    border-bottom: 2px solid var(--accent-color);
    position: relative;
    z-index: 1;
}

.vom-feed-map-container #vom-map {
    width: 100%;
    height: 100%;
}

/* کانتینر مرکزی برای فرم و توییت‌ها */
.vom-feed-content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

/* دیزاین شیک فرم در حالت فید */
.vom-feed-form-box {
    background: rgba(18, 18, 18, 0.6);
    padding:20px;
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* عنوان لیست توییت‌ها */
.vom-all-tweets-feed .feed-title {
    font-family: var(--primary-font);
    font-size: 2.5rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px; 
    font-weight: 400;
}

/* لیست توییت‌ها زیر هم */
.feed-tweets-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* واکنش‌گرایی موبایل */
@media (max-width: 768px) {
    .vom-feed-map-container { height: 50vh; min-height: 350px; }
    .vom-feed-form-box { padding:15px; }
    .vom-all-tweets-feed .feed-title { font-size: 2rem; }
}
/* ==========================================================================
   Feed Page - Minimal Tweet Cards
   ========================================================================== */
.vom-feed-tweet-card {
    position: relative;
    background: rgba(18, 18, 18, 0.45);
    /*border: 1px solid var(--accent-color);*/
    border:1px solid rgba(197, 160, 89, 0.2); 
    
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vom-feed-tweet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.1);
}

.vom-read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-family: var(--secondary-font);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    text-decoration: underline;
    display: inline-block;
}
/* ==========================================================================
   Animated Loading Dots for Submit Button
   ========================================================================== *

/* حالت غیرفعال واقعی دکمه */
.submit-btn:disabled,
.submit-btn.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none; /* جلوگیری از هرگونه کلیک */
    position: relative;
}

.submit-btn:disabled::before,
.submit-btn.btn-loading::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2);
    border-radius: inherit;
    z-index: 1;
}

.submit-btn:disabled > *,
.submit-btn.btn-loading > * {
    position: relative;
    z-index: 2;
}
/* انیمیشن لرزش برای هشدار بصری */
@keyframes vomShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

.vom-input-locked {
    animation: vomShake 0.3s ease-in-out;
    border-bottom-color: #c5a059 !important;
}