/**
 * Advanced Features Styles
 *
 * @package DCM_Profile_Membership_Pro
 * @since 1.0.0
 */

















/* Analytics Dashboard */
.dcm-pmp-analytics-dashboard {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.dcm-pmp-analytics-header {
    margin-bottom: 20px;
    text-align: center;
}

.dcm-pmp-analytics-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.dcm-pmp-analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dcm-pmp-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.dcm-pmp-stat-card:hover {
    transform: translateY(-5px);
}

.dcm-pmp-stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.dcm-pmp-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.dcm-pmp-analytics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dcm-pmp-chart-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.dcm-pmp-chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.dcm-pmp-chart-canvas {
    width: 100%;
    height: 300px;
}

.dcm-pmp-analytics-table {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.dcm-pmp-table-header {
    background: #007cba;
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
}

.dcm-pmp-table-content {
    max-height: 400px;
    overflow-y: auto;
}

.dcm-pmp-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.dcm-pmp-table-row:hover {
    background-color: #f0f0f0;
}

.dcm-pmp-table-row:last-child {
    border-bottom: none;
}

.dcm-pmp-table-cell {
    font-size: 14px;
    color: #333;
}

.dcm-pmp-table-cell.bold {
    font-weight: 600;
}

.dcm-pmp-table-cell.center {
    text-align: center;
}

/* Social Integration */
.dcm-pmp-social-integration {
    margin-top: 20px;
}

.dcm-pmp-social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.dcm-pmp-social-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dcm-pmp-social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dcm-pmp-social-button.facebook {
    background: #1877f2;
    color: #fff;
}

.dcm-pmp-social-button.google {
    background: #db4437;
    color: #fff;
}

.dcm-pmp-social-button.linkedin {
    background: #0077b5;
    color: #fff;
}


.dcm-pmp-social-share {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.dcm-pmp-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.dcm-pmp-share-button:hover {
    transform: scale(1.1);
}

.dcm-pmp-share-button.facebook {
    background: #1877f2;
}


.dcm-pmp-share-button.linkedin {
    background: #0077b5;
}

.dcm-pmp-share-button.whatsapp {
    background: #25d366;
}

.dcm-pmp-share-button.email {
    background: #666;
}

/* Notifications */
.dcm-pmp-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.dcm-pmp-notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid #007cba;
    animation: slideInRight 0.3s ease;
}

.dcm-pmp-notification.success {
    border-left-color: #28a745;
}

.dcm-pmp-notification.error {
    border-left-color: #dc3545;
}

.dcm-pmp-notification.warning {
    border-left-color: #ffc107;
}

.dcm-pmp-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dcm-pmp-notification-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dcm-pmp-notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dcm-pmp-notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Loading States */
.dcm-pmp-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.dcm-pmp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: dcm-pmp-spin 1s linear infinite;
}

@keyframes dcm-pmp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    
    .dcm-pmp-result-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .dcm-pmp-result-actions {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .dcm-pmp-analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dcm-pmp-analytics-charts {
        grid-template-columns: 1fr;
    }
    
    .dcm-pmp-table-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .dcm-pmp-social-login {
        flex-direction: column;
    }
    
    .dcm-pmp-notifications {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {

    
    .dcm-pmp-result-item {
        padding: 15px;
    }
    
    .dcm-pmp-analytics-stats {
        grid-template-columns: 1fr;
    }
    
    .dcm-pmp-stat-card {
        padding: 15px;
    }
    
    .dcm-pmp-stat-number {
        font-size: 24px;
    }
}

/* Print Styles */
@media print {
    .dcm-pmp-result-actions,
    .dcm-pmp-social-integration {
        display: none;
    }
    
    .dcm-pmp-result-item {
        border: 1px solid #000;
        margin-bottom: 10px;
        page-break-inside: avoid;
    }
} 