/**
 * Frontend styles for Directorist Social Enhancer
 *
 * @package DirectoristSocialEnhancer
 * @since 1.0.0
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.dse-container {
    /* Base container styles will be added here */
}

/* ==========================================================================
   Listing Favorites and Views Count Display
   ========================================================================== */

.dse-listing-favorites,
.dse-listing-views {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    background: transparent;
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    color: #495057;
    font-size: 13px;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.dse-listing-favorites:hover,
.dse-listing-views:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.dse-listing-favorites i,
.dse-listing-views i {
    font-size: 14px;
    color: #6c757d;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
    margin-right: 2px;
}

.dse-listing-favorites .directorist-favorites-count,
.dse-listing-views .directorist-views-count {
    font-weight: 600;
    color: #495057;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
}

/* ==========================================================================
   Report Button Container Styles
   ========================================================================== */

.dse-favorites-report-container {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 10px !important;
}

.dse-favorites-report-container .dse-listing-favorites,
.dse-favorites-report-container .dse-listing-views {
    margin-right: 8px;
    background: transparent;
    border: none;
}

/* Heart icon specific styling */
.dse-listing-favorites i.fa-heart {
    color: #e74c3c;
}

/* Eye icon specific styling */
.dse-listing-views i.fa-eye {
    color: #3498db;
}

/* Integration with Directorist meta styles */
.directorist-listing-meta .dse-listing-favorites,
.directorist-listing-meta .dse-listing-views,
.directorist-listing-meta-list .dse-listing-favorites,
.directorist-listing-meta-list .dse-listing-views {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 20px;
}

.directorist-single-listing-meta .dse-listing-favorites {
    margin-right: 15px;
}

/* Custom meta list created by DSE */
.dse-created.directorist-listing-meta-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.dse-created.directorist-listing-meta-list .dse-listing-favorites,
.dse-created.directorist-listing-meta-list .dse-listing-views {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid #e9ecef;
}

/* Tags-like container styles */
.dse-favorites-tags-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.dse-favorites-tags-container .dse-listing-favorites {
    background: #e8f4fd;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Meta container styles */
.dse-favorites-meta-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

/* Fallback styles */
.dse-favorites-fallback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 15px;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.directorist-dark-theme .directorist-listing-meta.dse-created {
    border-top-color: #444;
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

.dse-component {
    /* Component styles will be added here */
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .dse-container {
        /* Mobile styles will be added here */
    }
    
    .dse-listing-favorites {
        font-size: 13px;
    }
    
    .dse-listing-favorites i {
        font-size: 14px;
    }
}

/* ==========================================================================
   Dark Theme Support
   ========================================================================== */

.directorist-dark-theme .dse-listing-favorites {
    color: #ccc;
}