/* ===== Rasasho Base Styles ===== */
.rasasho-plugin .rasasho-container {
    padding: 20px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.rasasho-plugin .rasasho-container:hover,
.rasasho-plugin .rasasho-container:focus-within {
    border-color: #0073e6;
    box-shadow: 0 0 10px rgba(0,115,230,0.3);
}
.rasasho-plugin .rasasho-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}
.rasasho-plugin .rasasho-form input[type="text"],
.rasasho-plugin .rasasho-form textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
}
.rasasho-plugin .rasasho-form button:hover {
    background: #005177;
}

/* ===== Like System ===== */
.rasasho-like-widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.rasasho-like-widget-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.rasasho-like-widget-btn,
.rasasho-like-widget-btn *,
.rasasho-like-widget-btn:focus,
.rasasho-like-widget-btn:hover,
.rasasho-like-widget-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.rasasho-like-widget-heart path {
    fill: transparent;
    stroke: #999;
    transition: fill 0.2s ease, stroke 0.2s ease;
}
.rasasho-like-widget-btn.liked .rasasho-like-widget-heart path {
    fill: red;
    stroke: red;
}
.rasasho-like-widget-count {
    color: #999;
}

/* ===== Toast Notifications ===== */
.rasasho-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: #003049;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}
.rasasho-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.rasasho-toast.success { background: #2e7d32; }
.rasasho-toast.error   { background: #c62828; }
.rasasho-toast.info    { background: #1565c0; }

/* Dropzone واکنش‌گرا */
.rasasho-dropzone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    background: #fafafa;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
    max-width: 500px;  /* محدودیت برای زیبایی */
    margin: auto;
}

.rasasho-dropzone.dragover {
    border-color: #4caf50;
    background: #f0fff4;
}

.rasasho-dropzone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rasasho-dropzone-icon {
    font-size: 40px;
    margin-bottom: 6px;
    color: #888;
}

.rasasho-dropzone-text {
    font-size: 14px;
    color: #888;
}

/* پیش‌نمایش کنترل‌شده */
.rasasho-preview img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Progress Bar */
.rasasho-progress {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
    display: none;
}
.rasasho-progress-bar {
    height: 100%;
    width: 0%;
    background: #4caf50;
    transition: width 0.2s ease;
}

/* موبایل */
@media (max-width: 480px) {
    .rasasho-dropzone {
        padding: 15px;
    }
    .rasasho-dropzone-icon {
        font-size: 32px;
    }
    .rasasho-dropzone-text {
        font-size: 13px;
    }
}
/* ===== انیمیشن Spinner ===== */
.rasasho-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: rasasho-spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes rasasho-spin {
    to { transform: rotate(360deg); }
}

/* 📱 موبایل */
@media (max-width: 480px) {
    .rasasho-dropzone {
        padding: 15px;
        font-size: 14px;
    }
    .rasasho-dropzone-icon {
        font-size: 36px;
    }
    .rasasho-dropzone-text {
        font-size: 13px;
    }
    .rasasho-remove-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
        line-height: 30px;
    }
    .rasasho-toast {
        width: calc(100% - 40px);
        bottom: 10px;
        font-size: 13px;
    }
}
