/* ZX Docs - Frontend Styles - بهینه برای موبایل */

.zxdocs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
}

.zxdocs-search {
    margin-bottom: 30px;
    position: relative;
}

.zxdocs-search input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.zxdocs-search input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

#zxdocs-search-loader {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 13px;
}


.zxdocs-tile {
    display: block;
    text-decoration: none;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f6;
    overflow: hidden;
}

.zxdocs-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tile-img {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 12px;
}

.tile-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.zxdocs-tile:hover .tile-img img {
    transform: scale(1.05);
}

.zxdocs-tile h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.zxdocs-tile p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.no-docs {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    grid-column: 1 / -1;
}

/* ========== بهینه‌سازی برای تبلت ========== */
@media (max-width: 992px) {
    .zxdocs-container {
        padding: 15px;
    }
    
    .zxdocs-tiles {
        gap: 20px !important;
    }
    
    .zxdocs-tile {
        padding: 15px;
    }
    
    .zxdocs-tile h3 {
        font-size: 16px;
    }
    
    .zxdocs-tile p {
        font-size: 13px;
    }
}

/* ========== بهینه‌سازی برای موبایل ========== */
@media (max-width: 576px) {
    .zxdocs-container {
        padding: 12px;
    }
    
    .zxdocs-search input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .zxdocs-tiles {
        gap: 15px !important;
    }
    
    .zxdocs-tile {
        padding: 15px;
        display: flex;
        flex-direction: column;
    }
    
    .tile-img {
        margin-bottom: 12px;
    }
    
    .zxdocs-tile h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .zxdocs-tile p {
        font-size: 13px;
        line-height: 1.5;
    }
}