/* CSS pour la page des fonctionnalités avancées */
.advanced-features-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.advanced-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.advanced-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.advanced-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: '✓';
    color: #48bb78;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.feature-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-feature {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Configuration panels */
.config-panel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.config-panel.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.config-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.config-title {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.config-subtitle {
    color: #718096;
}

.config-section {
    margin-bottom: 2rem;
}

.config-section-title {
    color: #4a5568;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.provider-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.provider-card:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.provider-card.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.provider-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.provider-description {
    color: #718096;
    font-size: 0.9rem;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-connected {
    background: #48bb78;
}

.status-disconnected {
    background: #f56565;
}

.status-testing {
    background: #ed8936;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Team management styles */
.team-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.role-admin {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.role-manager {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.role-analyst {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.role-writer {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    color: white;
}

.role-client {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.role-guest {
    background: linear-gradient(135deg, #a0aec0, #718096);
    color: white;
}

.role-observer {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    color: #4a5568;
}

/* Analytics styles */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: #718096;
    font-size: 0.9rem;
}

/* Email campaign styles */
.campaign-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.campaign-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.campaign-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.campaign-info h4 {
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.campaign-info p {
    color: #718096;
    font-size: 0.9rem;
}

.campaign-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

.stat-value {
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.8rem;
    color: #718096;
}

/* Responsive design */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advanced-header h1 {
        font-size: 2rem;
    }
    
    .feature-actions {
        justify-content: center;
    }
    
    .provider-grid {
        grid-template-columns: 1fr;
    }
    
    .team-roles {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}