/* صفحه اول - ۵ دایره */
.smc-landing {
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
    padding: 20px;
    direction: rtl;
}

.smc-landing-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.smc-landing-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.smc-categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.smc-category-card {
    text-decoration: none;
    display: block;
    text-align: center;
    transition: transform 0.3s ease;
}

.smc-category-card:hover {
    transform: translateY(-10px);
}

.smc-category-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #0073aa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.smc-category-card:hover .smc-category-circle {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

.smc-category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smc-category-icon {
    font-size: 48px;
}

.smc-category-name {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* صفحه دوم - لیست فیلم‌ها */
.smc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

.smc-back-button {
    margin-bottom: 20px;
}

.smc-back-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

.smc-back-btn:hover {
    background: #e0e0e0;
    color: #000;
}

.smc-current-category {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.smc-current-category h2 {
    font-size: 24px;
    color: #0073aa;
    margin: 0;
}

.smc-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.smc-filter-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.smc-filter-btn:hover {
    background: #e0e0e0;
}

.smc-filter-btn.active {
    background: #0073aa;
    color: white;
}

.smc-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 992px) {
    .smc-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .smc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .smc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .smc-category-circle {
        width: 90px;
        height: 90px;
    }
    
    .smc-category-icon {
        font-size: 36px;
    }
    
    .smc-category-name {
        font-size: 13px;
    }
}

.smc-movie-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.smc-movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.smc-movie-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.smc-movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.smc-genre-badge {
    background: #0073aa;
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 11px;
}

.smc-no-movies {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.smc-movie-item {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* استایل منوی کشویی ژانرها */
.smc-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.smc-genre-select {
    padding: 12px 24px;
    font-size: 16px;
    font-family: inherit;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
    direction: rtl;
    outline: none;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,115,170,0.3);
    transition: all 0.3s ease;
}

.smc-genre-select:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,115,170,0.4);
}

.smc-genre-select option {
    background: white;
    color: #333;
    padding: 8px;
}

/* =========================================== */
/* بخش اصلاح شده عکس فیلم‌ها - مهم! */
/* =========================================== */
.smc-movie-image {
    width: 100%;
    aspect-ratio: 1 / 1;  /* این خط باعث می‌شود عکس مربع شود */
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f5f5f5;
}

.smc-movie-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.smc-movie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.smc-movie-card:hover .smc-movie-image img {
    transform: scale(1.05);
}

.smc-no-image {
    font-size: 48px;
    color: #ccc;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* تنظیمات موبایل - مربع می‌ماند */
@media (max-width: 767px) {
    .smc-movie-image {
        aspect-ratio: 1 / 1;  /* در موبایل هم مربع */
    }
}

/* =========================================== */
/* استایل باکس جستجو */
/* =========================================== */
.smc-search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.smc-search-input {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    min-width: 250px;
    flex: 1;
    max-width: 400px;
    direction: rtl;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.smc-search-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.smc-search-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.smc-search-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.3);
}

.smc-clear-search {
    padding: 12px 20px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.smc-clear-search:hover {
    background: #e0e0e0;
    color: #333;
}

/* تنظیمات موبایل */
@media (max-width: 550px) {
    .smc-search-box {
        flex-direction: column;
        align-items: center;
    }
    
    .smc-search-input {
        max-width: 100%;
        width: 100%;
    }
    
    .smc-search-btn,
    .smc-clear-search {
        width: 100%;
        max-width: 200px;
    }
}

/* =========================================== */
/* استایل دکمه افزودن به درخواست */
/* =========================================== */
.smc-add-to-request {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.smc-add-to-request:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155d27 100%);
    transform: translateY(-2px);
}

/* =========================================== */
/* استایل آیکون سبد خرید */
/* =========================================== */
.smc-request-cart {
    display: inline-block;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.smc-request-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.3);
}

.smc-cart-icon {
    font-size: 18px;
    margin-left: 5px;
}

.smc-cart-count {
    background: #ff5722;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    margin: 0 8px;
}

.smc-cart-text {
    font-size: 14px;
}

/* =========================================== */
/* استایل مودال */
/* =========================================== */
#smc-request-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.smc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.smc-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    z-index: 1000000;
    direction: rtl;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.smc-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smc-modal-header h3 {
    margin: 0;
    color: #333;
}

.smc-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.smc-modal-close:hover {
    color: #333;
}

.smc-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.smc-request-list ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.smc-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 8px;
}

.smc-request-title {
    font-size: 14px;
    color: #333;
}

.smc-remove-from-request {
    background: #dc3232;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 12px;
}

.smc-remove-from-request:hover {
    background: #b52727;
}

.smc-request-name {
    margin-top: 20px;
}

.smc-request-name label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.smc-request-name input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    direction: rtl;
}

.smc-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.smc-submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
}

.smc-cancel-btn {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
}

.smc-cancel-btn:hover {
    background: #e0e0e0;
}

/* نسخه شناور در بالای صفحه */
.smc-request-cart {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    /* بقیه استایل‌ها همانند بالا */
}
/* =========================================== */
/* استایل فیلد توضیحات */
/* =========================================== */
.smc-request-description {
    margin-top: 15px;
}

.smc-request-description label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.smc-request-description textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    direction: rtl;
    resize: vertical;
    font-family: inherit;
}

.smc-description-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* =========================================== */
/* اصلاح فاصله و راست‌چینی فیلدهای مودال */
/* =========================================== */

/* فیلد نام کاربر */
.smc-request-name input,
.smc-request-description textarea {
    text-align: right;
    direction: rtl;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
}

/* برچسب‌ها (label) نیز راست‌چین شوند */
.smc-request-name label,
.smc-request-description label {
    display: block;
    text-align: right;
    margin-bottom: 8px;
}

/* کل مودال راست‌چین */
.smc-modal-content,
.smc-modal-body,
.smc-request-list,
.smc-request-list p,
.smc-request-name,
.smc-request-description {
    text-align: right;
    direction: rtl;
}

/* تنظیم placeholder (متن راهنما) برای راست‌چین */
.smc-request-name input::placeholder,
.smc-request-description textarea::placeholder {
    text-align: right;
    direction: rtl;
}

/* اطمینان از راست‌چین بودن کل مودال */
#smc-request-modal * {
    text-align: right;
}

/* لیست فیلم‌ها نیز راست‌چین */
.smc-request-item {
    text-align: right;
    direction: rtl;
}

.smc-request-title {
    text-align: right;
    flex-grow: 1;
}
/* =========================================== */
/* کوچک کردن دکمه افزودن به لیست در موبایل */
/* =========================================== */

@media (max-width: 768px) {
    .smc-add-to-request {
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 20px;
    }
}

@media (max-width: 550px) {
    .smc-add-to-request {
        padding: 4px 6px;
        font-size: 10px;
        border-radius: 18px;
    }
}

/* آیکون نام کاربر با CSS (بدون تصویر خارجی) */
.smc-user-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #FFFFFF;
    border-radius: 50%;
    margin-left: 5px;
    position: relative;
    top: 2px;
}

.smc-user-icon::before {
    content: "👤";
    font-size: 15px;
    position: absolute;
    top: -2px;
    left: 2px;
}

.smc-desc-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border-radius: 2px;
    margin-left: 5px;
    position: relative;
}

.smc-desc-icon::before {
    content: "📝";
    font-size: 15px;
    position: absolute;
    top: 0;
    left: 1px;
}
/* آیکون فیلم جایگزین 🎬 */
.smc-movie-icon {
    display: inline-block;
    position: relative;
}

.smc-movie-icon::before {
    content: "🎬";
    font-size: inherit;
}

/* اگر در بخش no-image است */
.smc-no-image {
    position: relative;
}

.smc-no-image::before {
    content: "🎬";
    font-size: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* حذف span قبلی اگر داخل no-image است */
.smc-no-image span {
    display: none;
}

/* مخفی کردن هدر و فوتر در صفحات فیلم و سریال */
body.page .site-header,
body.page .site-footer,
body.page header,
body.page footer,
body.page .main-header,
body.page .main-footer {
    display: none !important;
}

/* تنظیم فاصله صفحه برای جبران حذف هدر و فوتر */
body.page .smc-container {
    margin-top: 0;
    padding-top: 20px;
}

/* تغییر پس‌زمینه صفحه فیلم و سریال */
body:has(.smc-landing),
body:has(.smc-container) {
background: linear-gradient(135deg, #00b4db, #0083b0, #00b4db) !important;    background-attachment: fixed !important;
    min-height: 100vh;
}

/* تنظیم رنگ متن برای خوانایی */
.smc-landing *,
.smc-container * {
    color: white !important;
}

/* استثنا برای رنگ‌های خاص */
.smc-genre-badge,
.smc-add-to-request {
    color: white !important;
}
/* فقط متن مشکی */
.smc-back-btn {
    color: #000000 !important;
}
/* فقط عنوان فیلم مشکی */
.smc-movie-title {
    color: #000000 !important;
}
/* =========================================== */
/* تغییر رنگ دکمه‌ها به سبز */
/* =========================================== */

/* دکمه لیست درخواست من */
.smc-request-cart {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.smc-request-cart:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155d27 100%) !important;
}

/* دکمه همه ژانرها (کشویی) */
.smc-genre-select {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.smc-genre-select:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155d27 100%) !important;
}

/* دکمه جستجو */
.smc-search-btn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.smc-search-btn:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155d27 100%) !important;
}

/* دکمه پاک کردن جستجو */
.smc-clear-search {
    background: #6c757d !important;
    color: white !important;
}

.smc-clear-search:hover {
    background: #5a6268 !important;
}
