/* AI Alt Text Generator Frontend Styles */
.ai-alt-text-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-alt-text-header {
    text-align: center;
    margin-bottom: 24px;
}

.ai-alt-text-header h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.ai-alt-text-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Upload Area */
.ai-alt-text-upload-area {
    position: relative;
}

.upload-zone {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #007cba;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.upload-icon {
    color: #999;
    margin-bottom: 16px;
}

.upload-icon svg {
    display: block;
    margin: 0 auto;
}

.upload-text {
    font-size: 18px;
    color: #333;
    margin: 0 0 8px 0;
}

.browse-link {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
}

.browse-link:hover {
    color: #005a87;
}

.upload-info {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Progress Section */
.upload-progress {
    text-align: center;
    padding: 40px 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #00a0d2);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: #666;
    font-size: 16px;
    margin: 0;
}

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

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

.result-section {
    margin-bottom: 20px;
}

.result-section label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.alt-text-output,
.url-output {
    position: relative;
    display: flex;
    gap: 8px;
}

.alt-text-output textarea,
.url-output input {
    flex: 1;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.url-output input {
    min-height: auto;
}

.copy-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: fit-content;
}

.copy-button:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.copy-button.copied {
    background: #46b450;
}

.copy-button svg {
    flex-shrink: 0;
}

.result-media {
    margin: 20px 0;
    text-align: center;
}

.result-media img,
.result-media video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-media video {
    background: #000;
}

.reset-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.reset-button:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Error Section */
.ai-alt-text-error {
    text-align: center;
    padding: 20px;
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

.ai-alt-text-error p {
    color: #2d3436;
    margin: 0 0 16px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-alt-text-container {
        padding: 16px;
        margin: 10px 0;
    }
    
    .ai-alt-text-header h3 {
        font-size: 20px;
    }
    
    .upload-zone {
        padding: 30px 15px;
    }
    
    .upload-text {
        font-size: 16px;
    }
    
    .alt-text-output,
    .url-output {
        flex-direction: column;
    }
    
    .copy-button {
        align-self: flex-start;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ai-alt-text-container {
        padding: 12px;
    }
    
    .upload-zone {
        padding: 20px 10px;
    }
    
    .upload-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .upload-info {
        font-size: 12px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .ai-alt-text-container {
        background: #1e1e1e;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .ai-alt-text-header h3,
    .result-section label {
        color: #e0e0e0;
    }
    
    .ai-alt-text-header p,
    .progress-text,
    .upload-info {
        color: #b0b0b0;
    }
    
    .upload-zone {
        background: #2a2a2a;
        border-color: #505050;
    }
    
    .upload-zone:hover,
    .upload-zone.drag-over {
        background: #2a3a4a;
        border-color: #007cba;
    }
    
    .alt-text-output textarea,
    .url-output input {
        background: #2a2a2a;
        border-color: #505050;
        color: #e0e0e0;
    }
    
    .reset-button {
        background: #2a2a2a;
        border-color: #505050;
        color: #e0e0e0;
    }
    
    .reset-button:hover {
        background: #3a3a3a;
    }
}
