/* YouTube Email Finder Specific Styles */

.process-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.step-container {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.step-container.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
}

.step-container.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    opacity: 0.7;
}

.step-container.hidden {
    display: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-container.completed .step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.step-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.youtube-input {
    font-size: 14px !important;
    padding: 12px 16px !important;
}

.domain-result,
.channel-result,
.no-domain-result,
.domains-result {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.domains-result {
    flex-direction: column;
    align-items: stretch;
}

.domains-list {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.domain-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.domain-option:hover {
    border-color: #3b82f6;
    background: #f8faff;
}

.domain-option.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
}

.selection-indicator {
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.1rem;
}

.channel-result {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 20%);
    border-color: #f59e0b;
}

.no-domain-result {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #f87171;
}

.domain-highlight {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.1rem;
}

.channel-highlight {
    font-weight: 700;
    color: #d97706;
    font-size: 1.1rem;
}

.info-message {
    color: #dc2626;
    font-weight: 600;
    margin: 0;
}

.extraction-result {
    margin-bottom: 1.5rem;
}

.extraction-result > div:not(:last-child) {
    margin-bottom: 1rem;
}

.edit-domain-btn {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.edit-domain-btn:hover {
    background: #3b82f6;
    color: white;
}

.step-description {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* How it Works Section */
.how-it-works-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.how-it-works-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.step-card p {
    color: #64748b;
    line-height: 1.6;
}

/* YouTube Brand Colors */
#youtube-email-finder-main .main-title {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.youtube-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .youtube-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .process-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .step-container {
        padding: 1.5rem;
    }
    
    .domain-result,
    .channel-result,
    .no-domain-result,
    .domains-result {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .domain-option {
        padding: 1rem;
    }
    
    .youtube-input {
        font-size: 12px !important;
    }
    
    .how-it-works-section {
        padding: 2rem 1rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Loading States */
.search-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-button.loading {
    position: relative;
}

.search-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s ease infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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