/* Email List Converter - Frontend Styles */

.email-converter-frontend {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.email-converter-frontend .email-converter-container {
    background: transparent;
}

/* Header for frontend */
.email-converter-frontend .email-converter-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: #fff;
}

.email-converter-frontend .email-converter-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.email-converter-frontend .email-converter-header .subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.4;
}

/* Content area */
.email-converter-frontend .email-converter-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 40px;
}

/* Upload Section */
.upload-section {
    text-align: center;
}

.upload-box {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.upload-box:hover {
    border-color: #764ba2;
    background: linear-gradient(135deg, #e0e7ff 0%, #c3cfe2 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon .icon-upload {
    font-size: 80px;
    display: inline-block;
}

.upload-box h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
}

.upload-box p {
    color: #666;
    font-size: 16px;
    margin: 0 0 20px 0;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.button-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.button-secondary {
    background: #e0e7ff;
    color: #667eea;
}

.button-secondary:hover {
    background: #c3cfe2;
}

.button-large {
    padding: 12px 30px;
    font-size: 16px;
}

.button-hero {
    padding: 15px 40px;
    font-size: 18px;
}

.button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    color: #666;
}

/* File Info */
.file-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-details .icon-file {
    font-size: 40px;
}

.file-name-size strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.file-name-size span {
    color: #666;
    font-size: 14px;
}

/* Conversion Options */
.conversion-options {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.conversion-options h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
}

.option-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-label:last-child {
    margin-bottom: 0;
}

/* Convert Button */
#convertBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#convertBtn .icon-convert {
    display: inline-block;
    font-size: 20px;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.5s ease;
}

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

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header .success-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.results-header h2 {
    color: #333;
    font-size: 28px;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Download Section */
.download-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.download-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.download-btn .icon-download {
    font-size: 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 16px;
    color: #333;
    margin: 0;
}

/* Info Section */
.email-converter-frontend .email-converter-info {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.email-converter-frontend .email-converter-info h3 {
    font-size: 22px;
    color: #333;
    margin: 0 0 20px 0;
}

.email-converter-frontend .email-converter-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.email-converter-frontend .email-converter-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
}

.email-converter-frontend .email-converter-info li:last-child {
    margin-bottom: 0;
}

.email-converter-frontend .email-converter-info li .checkmark {
    color: #10b981;
    font-weight: 700;
    font-size: 18px;
}

/* SEO Content Section */
.email-converter-seo-content {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.email-converter-seo-content h2 {
    font-size: 32px;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.email-converter-seo-content h3 {
    font-size: 24px;
    color: #667eea;
    margin: 30px 0 15px 0;
}

.email-converter-seo-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 20px 0;
}

.email-converter-seo-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.email-converter-seo-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.email-converter-seo-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

.email-converter-seo-content li strong {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .email-converter-frontend {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .email-converter-frontend .email-converter-header {
        padding: 30px 15px;
    }
    
    .email-converter-frontend .email-converter-header h1 {
        font-size: 28px;
    }
    
    .email-converter-frontend .email-converter-header .subtitle {
        font-size: 16px;
    }
    
    .email-converter-frontend .email-converter-content {
        padding: 25px 20px;
    }
    
    .upload-box {
        padding: 40px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .file-info {
        flex-direction: column;
    }
    
    .email-converter-seo-content {
        padding: 25px 20px;
    }
    
    .email-converter-seo-content h2 {
        font-size: 24px;
    }
    
    .email-converter-seo-content h3 {
        font-size: 20px;
    }
}
