/**
 * profile-grid-v5 Styles
 * 
 * @package DATAsoft_Escort_Core
 * @version 5.0.3
 */

.ds-profile-grid-v5 {
    flex: 1;
}

.ds-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.ds-grid-info h2 {
    margin: 0;
    font-size: 24px;
    color: #2d3748;
}

.ds-grid-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ds-grid-sort {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.ds-grid-view {
    display: flex;
    gap: 5px;
}

.ds-grid-view button {
    padding: 10px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ds-grid-view button.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.ds-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.ds-grid-container[data-view="list"] {
    grid-template-columns: 1fr;
}

.ds-profile-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.ds-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ds-card-image {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
}

.ds-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ds-profile-card:hover .ds-card-image img {
    transform: scale(1.05);
}

.ds-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ds-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.ds-badge-online {
    color: #f56565;
}

.ds-badge-verified {
    color: #48bb78;
}

.ds-badge-premium {
    color: #ed8936;
}

.ds-badge-video {
    color: #667eea;
}

.ds-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.ds-profile-card:hover .ds-card-actions {
    opacity: 1;
}

.ds-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-action-btn:hover {
    background: #667eea;
    color: #fff;
}

.ds-card-content {
    padding: 20px;
}

.ds-card-title {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.ds-card-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.ds-card-title a:hover {
    color: #667eea;
}

.ds-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #718096;
}

.ds-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ds-price-label {
    font-size: 14px;
    color: #718096;
}

.ds-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.ds-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.ds-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.ds-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.ds-no-results-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.ds-no-results h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #2d3748;
}

.ds-no-results p {
    font-size: 16px;
    color: #718096;
    margin: 0 0 30px 0;
}

.ds-grid-pagination {
    margin-top: 40px;
    text-align: center;
}

.ds-grid-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s;
}

.ds-grid-pagination .page-numbers.current,
.ds-grid-pagination .page-numbers:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .ds-grid-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .ds-grid-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .ds-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}