/* Generator Tabs */
.generator-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    flex: 0 1 auto;
    min-width: 160px;
    max-width: 200px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    white-space: nowrap;
    text-align: center;
}

.tab-btn.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    color: #475569;
    background: rgba(255, 255, 255, 0.5);
}

.premium-indicator {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Image Generator Section */
.image-generator-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.image-gen-header {
    text-align: center;
    margin-bottom: 24px;
}

.image-gen-header .form-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.premium-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-gen-description {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.image-gen-form {
    margin-bottom: 24px;
}

/* Image Results */
.image-results {
    margin-top: 24px;
    text-align: center;
}

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

.image-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.image-card .image-container {
    position: relative;
    background: transparent;
    padding: 0;
    margin: 0;
}

.image-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-card:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fee2e2;
    border: 2px dashed #fca5a5;
    border-radius: 8px;
    color: #dc2626;
    text-align: center;
    min-height: 150px;
}

.image-error i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #ef4444;
}

.image-error p {
    margin: 4px 0;
    font-weight: 500;
}

.image-error small {
    font-size: 11px;
    color: #991b1b;
    word-break: break-all;
    margin-top: 4px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.image-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.image-generate-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.image-generate-btn:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
}

/* Mobile Responsive for Image Generator */
@media (max-width: 768px) {
    .generator-tabs {
        flex-wrap: wrap;
        gap: 4px;
        padding: 4px;
        justify-content: center;
    }
    
    .tab-btn {
        flex: 0 1 calc(50% - 2px);
        min-width: 140px;
        max-width: none;
        padding: 10px 8px;
        font-size: 12px;
        gap: 4px;
    }
    
    .image-generator-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .image-gen-header .form-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .premium-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .image-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .generator-tabs {
        flex-direction: column;
        padding: 4px;
        gap: 3px;
        justify-content: center;
    }
    
    .tab-btn {
        flex: none;
        min-width: auto;
        max-width: none;
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .premium-indicator {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .image-generator-section {
        padding: 12px;
    }
    
    .image-gen-header .form-title {
        font-size: 1.1rem;
    }
}