/**
 * Email List Cleaner - Frontend Styles
 * Path: assets/css/frontend-style.css
 */

.elc-frontend-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.elc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.elc-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    text-align: center;
}

.elc-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
}

/* Upload Area */
.elc-upload-area {
    border: 3px dashed #d0d0d0;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: #fafafa;
}

.elc-upload-area:hover,
.elc-upload-area.drag-over {
    border-color: #4f46e5;
    background: #f0f4ff;
    transform: scale(1.01);
}

.elc-upload-icon {
    margin-bottom: 20px;
}

.elc-upload-icon svg {
    color: #4f46e5;
    opacity: 0.8;
}

.elc-upload-area h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 15px 0 10px;
    font-weight: 600;
}

.elc-upload-area p {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
}

.elc-file-info {
    margin-top: 20px !important;
    font-weight: 600;
    color: #4f46e5;
    font-size: 15px !important;
}

/* Buttons */
.elc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.elc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.elc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.elc-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63407d 100%);
    color: #fff;
}

.elc-btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: #fff;
}

.elc-btn-success:hover {
    background: linear-gradient(135deg, #4a9428 0%, #8ec653 100%);
    color: #fff;
}

.elc-btn-secondary {
    background: #f3f4f6;
    color: #1a1a1a;
}

.elc-btn-secondary:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.elc-btn-large {
    padding: 16px 40px;
    font-size: 17px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: flex;
}

.elc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.elc-btn svg {
    flex-shrink: 0;
}

/* Notice */
.elc-notice {
    background: #fff9e6;
    border-left: 4px solid #fbbf24;
    padding: 14px 18px;
    margin: 25px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #92400e;
}

.elc-notice svg {
    color: #f59e0b;
    flex-shrink: 0;
}

/* Loader */
.elc-loader {
    text-align: center;
    padding: 40px 20px;
}

.elc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.elc-loader p {
    color: #666;
    font-size: 15px;
}

/* Stats Grid */
.elc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.elc-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.elc-stat-card:hover {
    transform: translateY(-5px);
}

.elc-stat-card.elc-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.elc-stat-card.elc-valid {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.elc-stat-card.elc-invalid {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.elc-stat-card.elc-duplicates {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
}

.elc-stat-icon {
    font-size: 36px;
    line-height: 1;
    opacity: 0.9;
}

.elc-stat-info h3 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.elc-stat-info p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.95;
    color: #fff;
    font-weight: 500;
}

/* Download Section */
.elc-download-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.elc-download-section h3 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
}

.elc-download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .elc-frontend-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .elc-card {
        padding: 25px 20px;
    }
    
    .elc-title {
        font-size: 24px;
    }
    
    .elc-subtitle {
        font-size: 14px;
    }
    
    .elc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .elc-upload-area {
        padding: 40px 15px;
    }
    
    .elc-download-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .elc-download-buttons .elc-btn {
        width: 100%;
    }
    
    .elc-btn-large {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .elc-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .elc-stat-info h3 {
        font-size: 28px;
    }
}