/* ============================================
   MEDIA TO PROMPT - DEDICATED STYLES
   ============================================ */

/* Logo Icon Override */
.logo-icon.media-icon {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.back-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* Feature Intro */
.feature-intro {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.intro-content h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-content p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.feature-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
}

.badge i {
    color: var(--accent-secondary);
}

/* Media Type Section */
.media-type-section {
    margin-bottom: 40px;
}

.media-type-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.media-type-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.media-type-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.media-type-card.active {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.08);
}

.type-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.type-icon.image-gradient {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.type-icon.video-gradient {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.type-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.type-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.type-check {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    color: var(--accent-primary);
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-normal);
}

.media-type-card.active .type-check {
    opacity: 1;
    transform: scale(1);
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-zone {
    display: none;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    min-height: 350px;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.upload-zone.active {
    display: block;
}

.upload-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.08);
    border-style: solid;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    cursor: pointer;
    text-align: center;
    min-height: 350px;
}

.upload-icon-large {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.upload-icon-large i {
    font-size: 48px;
    color: var(--accent-secondary);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.upload-icon-large.video i {
    color: #ec4899;
}

.upload-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

.upload-icon-large.video .upload-icon-bg {
    background: rgba(236, 72, 153, 0.15);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

.upload-content:hover .upload-icon-large i {
    transform: scale(1.1);
}

.upload-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.upload-link {
    color: var(--accent-secondary);
    text-decoration: underline;
    cursor: pointer;
}

.upload-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.upload-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Upload Preview */
.upload-preview {
    position: relative;
    padding: 30px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-preview.hidden {
    display: none;
}

.upload-preview img,
.upload-preview video {
    max-width: 100%;
    max-height: 280px;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: var(--shadow-lg);
}

.preview-overlay {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.preview-remove,
.preview-change {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.preview-remove {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.preview-remove:hover {
    background: #ef4444;
    color: white;
}

.preview-change {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.preview-change:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.file-info {
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

/* Options Section */
.options-section {
    margin-bottom: 30px;
}

.options-section.hidden {
    display: none;
}

.prompt-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.option-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.option-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.option-item select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--transition-normal);
}

.option-item select:hover,
.option-item select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

/* Analyze Button */
.analyze-btn {
    width: 100%;
    padding: 22px 40px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
    margin-bottom: 40px;
}

.analyze-btn.hidden {
    display: none;
}

.analyze-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.analyze-btn:hover::before {
    left: 100%;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
}

.analyze-btn.loading .btn-content {
    opacity: 0;
    visibility: hidden;
}

.analyze-btn.loading .btn-loader {
    opacity: 1;
    visibility: visible;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Results Section */
.results-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.5s ease;
}

.results-section.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.result-block.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.05));
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.block-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-secondary);
}

.result-block.featured .block-label {
    color: #ec4899;
}

.block-content {
    padding: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.action-btn.secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.action-btn.secondary:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.action-btn.primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: var(--shadow-glow);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .media-type-cards {
        grid-template-columns: 1fr;
    }

    .prompt-options {
        grid-template-columns: 1fr;
    }

    .result-actions {
        flex-direction: column;
    }

    .feature-intro {
        padding: 30px 20px;
    }

    .intro-content h2 {
        font-size: 20px;
    }
}