/* Authors Grid */
.shopino-authors-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.shopino-author-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}


.author-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    margin: 15px 0 5px;
    padding: 0 15px;
    font-size: 1.5em;
    color: #333;
}

.author-position {
    padding: 0 15px;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.author-excerpt {
    padding: 0 15px 15px;
    color: #666;
    line-height: 1.6;
}

.author-link {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 8px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.author-link:hover {
    background: #09b563;
    color: #fff;
}

/* Author Details Page */
.shopino-author-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

.author-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.author-header .author-image {
    height: 300px;
}


.author-bio {
    margin: 20px 0;
    line-height: 1.8;
    color: #444;
}

.author-social {
    margin-top: 20px;
}

.author-social a {
    display: inline-block;
    margin-right: 15px;
    color: #0073aa;
    text-decoration: none;
}

.author-social a:hover {
    text-decoration: underline;
}

/* Posts Section */
.author-posts {
    margin-top: 40px;
}

.posts-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.posts-filter select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-title {
    margin: 15px;
    font-size: 1.2em;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #09b563;
}

.post-excerpt {
    padding: 0 15px;
    color: #666;
    line-height: 1.6;
}

.post-meta {
    padding: 15px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9em;
}

.post-meta span {
    margin-right: 15px;
}

/* Pagination */
.shopino-pagination,
.posts-pagination {
    margin: 30px 0;
    text-align: center;
}

.shopino-pagination .page-numbers,
.posts-pagination .page-numbers {
    display: inline-block;
    padding: 6px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
}

.shopino-pagination .page-numbers.current,
.posts-pagination .page-numbers.current {
    background: #F5F7FA;
    color: #525866;
    border-color: #F5F7FA;
}

/* Responsive Design */
@media (max-width: 768px) {

    .author-info{
        width: 100%;
        display: flex;
        gap: 16px;
    }
    
    }
    .author-header {
        grid-template-columns: 1fr;
    }

    .author-header .author-image {
        height: 250px;
    }

    .posts-filter {
        flex-direction: column;
    }

    .posts-filter select {
        width: 100%;
    }
} 

.filter-and-contex-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* --- Search Results Styles --- */
.shopino-search-results,
.shopino-author-posts {
    max-width: 1143px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'IRANSansX', sans-serif;
}

#shopino-search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

#shopino-search-input {
    display: none!important;
    font-family: IRANSansX;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: right;
    color: #99A0AE;
    border-color: #E1E4EA;
    width: 300px;
    height: 40px;
    gap: 8px;
    border-radius: 8px;
    border-width: 1px;
    padding-top: 8px;
    padding-right: 8px;
    padding-bottom: 8px;
    padding-left: 10px;

}

#shopino-search-input:focus {
    outline: none;
    border-color: #236608;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

/* Filter Button and Panel */
.shopino-filter-container {
    position: relative;
    flex: 0 0 auto;
}



.filter-icon {
    font-size: 14px;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: #dc3545;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    padding: 0 6px;
}

.shopino-filter-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.shopino-filter-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #e9ecef;
}

.filter-panel-header h4 {
    margin: 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.close-filter-panel {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-filter-panel:hover {
    background: #09b563;
    color: #fff;
}

.filter-sections {
    max-height: 400px;
    overflow-y: auto;
}

.filter-section {
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h5 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
    font-size: 14px;
    color: #495057;
    transition: color 0.2s ease;
}

.filter-option:hover {
    color: #09b563;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: #09b563;
    border-color: #09b563;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.filter-panel-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.apply-filters {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filters:hover {
    background: #09b563
}

.clear-filters {
    padding: 10px 16px;
    background: #09b563;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.shopino-filter-btn:hover{
    transition: 200ms;
    background-color: #09b563!important;
    color: #fff;
}

.clear-filters:hover {
    background: #09b563;
}

#shopino-search-form button {
    display: flex;
    gap: 4px;
    border-radius: 8px;
    border-width: 1px;
    padding: 8px;

    font-family: IRANSansX;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.6%;
    vertical-align: middle;
    color: #525866;
    border-color: #E1E4EA;

    border-radius: var(--radius-8, 8px);
    border: 1px solid var(--stroke-soft-200, #E1E4EA);
    background: var(--bg-white-0, #FFF);
    /* regular-shadow/x-small */
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 20, 0.03);

}

/* Active Filters Section */
.shopino-active-filters {
    display: none!important;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.shopino-active-filters h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.shopino-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.shopino-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #90caf9;
    transition: all 0.3s ease;
}

.shopino-filter-tag.category-filter {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
    border-color: #81c784;
}

.shopino-filter-tag.tag-filter {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
    color: #f57c00;
    border-color: #ffb74d;
}

.shopino-filter-tag:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.remove-filter {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-filter:hover {
    background: #09b563;
    transform: scale(1.1);
}

.clear-all-filters {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-all-filters:hover {
    background: #09b563;
    box-shadow: 0 2px 8px rgba(198,40,40,0.3);
}


.shopino-result-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.shopino-card-image-container {
    position: relative;
}

.shopino-card-image {
    width: 100%;
    aspect-ratio: 1.7/1;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    display: block;
}

.shopino-card-meta {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    align-items: center;
    pointer-events: none;
}

.shopino-card-date {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.shopino-card-author {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 14px;
    pointer-events: auto;
}

.shopino-card-author-avatar {
    margin-left: 6px;
    object-fit: cover;
    width: 17.7px;
    height: 17.7px;
    border-radius: 3.64px;

}

.shopino-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    padding: 18px 16px 16px 16px;
    text-align: right;
}

.shopino-card-title a {
    color: inherit;
    text-decoration: none;
}

.shopino-result-content {
    margin-top: 12px;
}

.shopino-result-title {
    font-family: IRANSansX;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: right;
    vertical-align: middle;
    color: #0E121B;
}

.shopino-result-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.shopino-result-title a:hover {
    color: #09b563;
}

.shopino-result-meta {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    flex-direction: row;
}

.shopino-result-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shopino-result-author a{
    text-decoration: none;
    color: #0E121B;
}

.shopino-result-author-avatar {
    margin-left: 6px;
    object-fit: cover;
    width: 17.7px;
    height: 17.7px;
    border-radius: 3.64px;
}

.shopino-result-author span {
    color: #0E121B;
    font-family: IRANSansX;
    font-weight: 500;
    font-size: 12px;
    line-height: 14.22px;
    letter-spacing: 0%;
    text-align: right;

}
.shopino-result-date{
    font-family: IRANSansX;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
    color: #99A0AE;
}

.shopino-result-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.shopino-result-view {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

.shopino-result-view:hover {
    background: #09b563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.4);
    color: #fff;
}

.shopino-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.shopino-pagination .page-numbers {
    display: inline-block;
    padding: 6px;
    margin: 0 4px;
    background: #fff;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.shopino-pagination .page-numbers:hover {
    background: #09b563;
    color: #fff;
    border-color: #09b563;
}

.shopino-pagination .current {
    background: #F5F7FA;
    color: #525866;
    border-color: #F5F7FA;
}

.shopino-pagination .prev,
.shopino-pagination .next,
.shopino-pagination .first,
.shopino-pagination .last {
    border: none!important;
    font-weight: 500;
    font-size: 14px;
}

.shopino-pagination .prev:hover,
.shopino-pagination .next:hover,
.shopino-pagination .first:hover,
.shopino-pagination .last:hover {
    border: none!important;
    background: unset!important;

    color: #09b563;
}

.shopino-result-thumbnail img{
    width: 100%;
    background-size: cover;
    height: 188px;
    border-radius: 12px;

}

.shopino-filter-btn-mobile{
    display: none!important;
}

.shopino-filter-btn{
    display: flex!important;
}

#shopino-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #shopino-results-grid{
        grid-template-columns: repeat(2, 1fr);

    }
    .shopino-result-thumbnail img{
        height: 100px;
    }
    .shopino-filter-btn-mobile{
        display: flex!important;
    }

    .shopino-filter-btn{
        display: none!important;
    }

    .shopino-search-results {
        padding: 0 15px;
    }
    
    #shopino-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
   
    
    .shopino-filter-panel {
        left: 0;
        
    }
    
    .shopino-filter-tags {
        gap: 8px;
    }
    
    .shopino-filter-tag {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    
    
    .shopino-result-content {
        margin-top: 12px;
    }
    
    .shopino-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .shopino-pagination .page-numbers {
        padding: 6px;
        font-size: 14px;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    
    
    .shopino-result-content {
        margin-top: 12px;
    }
    
    .shopino-result-title a {
        font-size: 16px;
    }
    
    .shopino-pagination .page-numbers {
        padding: 6px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .shopino-filter-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-sections {
        max-height: 300px;
    }
} 

