/**
 * SF Advertiser Manager - Elementor Widgets Styles
 */

/* =====================================================
   SEE MORE FROM WIDGET
   ===================================================== */

.sfam-see-more-wrapper {
    margin: 20px 0;
}

.sfam-see-more-header {
    margin-bottom: 20px;
}

.sfam-see-more-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.sfam-see-more-header a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.sfam-see-more-header a:hover {
    color: #ff4757;
}

/* Grid Layout */
.sfam-see-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sfam-layout-list .sfam-see-more-grid {
    grid-template-columns: 1fr;
}

.sfam-layout-list .sfam-see-more-item {
    display: flex;
    gap: 20px;
}

.sfam-layout-list .sfam-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

/* Item */
.sfam-see-more-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sfam-see-more-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Thumbnail */
.sfam-thumbnail {
    position: relative;
    overflow: hidden;
}

.sfam-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sfam-see-more-item:hover .sfam-thumbnail img {
    transform: scale(1.05);
}

/* Aspect Ratios */
.sfam-aspect-1-1 {
    aspect-ratio: 1 / 1;
}

.sfam-aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.sfam-aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.sfam-aspect-21-9 {
    aspect-ratio: 21 / 9;
}

/* Type Badge */



/* Duration Overlay */
.sfam-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

/* Image Count */
.sfam-image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

/* Content */
.sfam-item-content {
    padding: 15px;
}

.sfam-item-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.sfam-item-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.sfam-item-title a:hover {
    color: #ff4757;
}

/* Meta */
.sfam-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.sfam-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sfam-meta-icon {
    font-size: 14px;
}

/* View All Button */
.sfam-see-more-footer {
    margin-top: 20px;
    text-align: center;
}

.sfam-view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sfam-view-all-btn:hover {
    background: #ff4757;
    color: #fff;
    transform: translateY(-2px);
}

/* =====================================================
   MODEL PROFILE WIDGET
   ===================================================== */

.sfam-model-profile {
    display: flex;
    gap: 30px;
}

.sfam-layout-vertical {
    flex-direction: column;
    align-items: center;
}

.sfam-layout-horizontal-reverse {
    flex-direction: row-reverse;
}

.sfam-layout-card {
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sfam-layout-overlay {
    position: relative;
    padding: 0;
}

.sfam-layout-overlay .sfam-profile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

/* Profile Image */
.sfam-profile-image {
    flex-shrink: 0;
}

.sfam-profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sfam-layout-vertical .sfam-profile-image {
    max-width: 250px;
}

/* Profile Content */
.sfam-profile-content {
    flex: 1;
}

.sfam-profile-name {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
}

.sfam-profile-aliases {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.sfam-profile-like {
    margin: 15px 0;
}

/* Stats */
.sfam-profile-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.sfam-stat {
    text-align: center;
}

.sfam-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.sfam-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.sfam-profile-bio {
    margin-top: 20px;
    line-height: 1.7;
    color: #444;
}

.sfam-profile-external {
    margin-top: 20px;
}

.sfam-profile-external a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff4757;
    text-decoration: none;
    font-weight: 500;
}

.sfam-profile-external a:hover {
    text-decoration: underline;
}

/* =====================================================
   MODEL DIRECTORY WIDGET
   ===================================================== */

.sfam-model-directory {
    padding: 20px 0;
}

/* Toolbar */
.sfam-directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.sfam-search-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.sfam-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sfam-search-input:focus {
    outline: none;
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.sfam-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
}

.sfam-sort-wrapper {
    min-width: 150px;
}

.sfam-sort-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.sfam-results-count {
    font-size: 14px;
    color: #666;
}

/* Alphabet Filter */
.sfam-alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
}

.sfam-alphabet-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sfam-alphabet-filter a:hover {
    background: #f0f0f0;
    color: #333;
}

.sfam-alphabet-filter a.active {
    background: #ff4757;
    color: #fff;
}

/* Directory Grid */
.sfam-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Hover Effects */
.sfam-hover-zoom .sfam-model-image img {
    transition: transform 0.3s ease;
}

.sfam-hover-zoom .sfam-model-card:hover .sfam-model-image img {
    transform: scale(1.08);
}

.sfam-hover-brightness .sfam-model-image img {
    transition: filter 0.3s ease;
}

.sfam-hover-brightness .sfam-model-card:hover .sfam-model-image img {
    filter: brightness(1.1);
}

.sfam-hover-grayscale .sfam-model-image img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.sfam-hover-grayscale .sfam-model-card:hover .sfam-model-image img {
    filter: grayscale(0%);
}

/* No Results */
.sfam-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Pagination */
.sfam-pagination {
    margin-top: 30px;
    text-align: center;
}

.sfam-pagination a,
.sfam-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    text-decoration: none;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sfam-pagination a:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.sfam-pagination .current {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757;
}

/* Load More */
.sfam-load-more-wrapper {
    margin-top: 30px;
    text-align: center;
}

.sfam-load-more-btn {
    padding: 14px 40px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sfam-load-more-btn:hover {
    background: #ff4757;
    transform: translateY(-2px);
}

.sfam-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .sfam-see-more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sfam-directory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sfam-model-profile {
        flex-direction: column;
    }
    
    .sfam-layout-horizontal-reverse {
        flex-direction: column;
    }
    
    .sfam-profile-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .sfam-directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sfam-alphabet-filter a {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sfam-see-more-grid {
        grid-template-columns: 1fr;
    }
    
    .sfam-directory-toolbar {
        flex-direction: column;
    }
    
    .sfam-search-wrapper {
        width: 100%;
    }
    
    .sfam-sort-wrapper {
        width: 100%;
    }
}

/* Content Type Badges - Matching See More Style */



/* Post Media Shortcode Styles */






.sfam-image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.sfam-no-image {
    background: #333;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Video Media - Full Size with Aspect Ratio */







.sfam-media-video:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}


/* Hide video shortcode output on gallery posts */
.ee-post.type-gallery .sfam-media-video,
article.type-gallery .sfam-media-video {
    display: none !important;
}


/* Hide gallery widget on video posts, show shortcode media instead */
.ee-post.type-video .elementor-widget-ucaddon_uc_image_default_theme,
.ee-post.type-video .elementor-widget-unlimited-elements-compact-gallery {
    display: none !important;
}

/* Hide shortcode media on gallery posts (gallery widget shows for galleries) */
.ee-post.type-gallery .sfam-media-wrap {
    display: none !important;
}

/* More specific selector for hiding gallery on videos */
.ee-post.type-video .elementor-element-31e4ad6,
article.type-video .elementor-element-31e4ad6,
.type-video .elementor-widget-ucaddon_uc_image_default_theme {
    display: none !important;
}

