/**
 * Profile Comparison System - Styles
 *
 * @package DATAsoft_Escort_Core
 * @since 3.4.23
 */

/* ========================================
   Comparison Bar (Floating)
   ======================================== */

.ds-comparison-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.comparison-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.comparison-bar-content {
    font-weight: 600;
    font-size: 1rem;
}

.comparison-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 8px;
    font-weight: 700;
}

.comparison-bar-actions {
    display: flex;
    gap: 10px;
}

.ds-btn-compare,
.ds-btn-clear {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

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

.ds-btn-compare:hover:not(:disabled) {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.ds-btn-compare:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ds-btn-clear {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ds-btn-clear:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Comparison Modal
   ======================================== */

.ds-comparison-modal-content {
    max-width: 1400px !important;
    width: 95% !important;
    max-height: 90vh;
    overflow-y: auto;
}

.ds-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* ========================================
   Comparison Profile Card
   ======================================== */

.ds-comparison-profile {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.ds-comparison-profile:hover {
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.comparison-profile-header {
    position: relative;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.comparison-profile-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.comparison-profile-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #333;
}

.online-badge {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ds-comparison-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.ds-comparison-remove:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* ========================================
   Comparison Profile Body
   ======================================== */

.comparison-profile-body {
    padding: 20px;
}

.comparison-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comparison-section h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #667eea;
    font-weight: 700;
}

.comparison-section table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-section table tr {
    border-bottom: 1px solid #f0f0f0;
}

.comparison-section table tr:last-child {
    border-bottom: none;
}

.comparison-section table td {
    padding: 8px 0;
    font-size: 0.9rem;
}

.comparison-section table td:first-child {
    color: #666;
    font-weight: 600;
    width: 40%;
}

.comparison-section table td:last-child {
    color: #333;
    text-align: right;
}

/* Services List */
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Labels List */
.labels-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.label-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Trust Badge */
.trust-badge {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================
   Comparison Profile Footer
   ======================================== */

.comparison-profile-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: center;
}

.ds-btn-view-profile {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.ds-btn-view-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ========================================
   Loading & Error States
   ======================================== */

.ds-loading,
.ds-error {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #666;
}

.ds-error {
    color: #dc3545;
}

/* ========================================
   Notification Animation
   ======================================== */

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .ds-comparison-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .ds-comparison-bar {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        border-radius: 12px;
        padding: 12px 20px;
    }

    .comparison-bar-inner {
        flex-direction: column;
        gap: 10px;
    }

    .comparison-bar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .ds-btn-compare,
    .ds-btn-clear {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .ds-comparison-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ds-comparison-modal-content {
        width: 100% !important;
        max-height: 100vh;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .comparison-profile-header img {
        width: 100px;
        height: 100px;
    }

    .comparison-profile-header h3 {
        font-size: 1.1rem;
    }

    .comparison-section table td {
        font-size: 0.85rem;
    }

    .service-badge,
    .label-badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}


